Git Product home page Git Product logo

artsyml's Introduction

ArtsyML

What is this?

This repository provides the code for a real time video stream which blends any people in the image with a biological image. The result can look sotheing like the example below:

[add a GIF here] e.g. Alt Text

Installation:

The code has been implemented using Python 3.7. To install the necessary packages for this framework with conda run:

conda env create -f environment.yaml

How to run?

To start the video stream, simply open a terminal and type:

python video_stream.py

To stop the video stream at any time the user can press the 'q' key on the keyboard. If no other argument is provided the script uses by default pocimage.jpg as the style image. To provide a different style image, add it as an argument, e.g.:

python video_stream.py --style_img tryout.jpg [rename these images]

How does this work?

The main script of this repository is video_stream.py. In this script the webcam of the user is accessed and the webacam's frames are successively processed and displayed. The processing involves three steps:

  1. The current frame is blended with a style image, using the approach suggested in Neural style transfer.
  2. The current frame is segmented using deeplabv3_resnet101 and the output masks is then converted to binary where only humans in the image are segmented.
  3. The outputs of the two previous steps are merged so that the output of the style net (step 1) is only aplied on the detected humans (from step 2).

artsyml's People

Contributors

christinab12 avatar dotha avatar ruolinsss avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.