Skip to content

michaeleh/colorized-video-masking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Masking in a ( RGB, B&W and recolorized) Video

The Pipeline:

  • using tensorflow framework and opencv for video manipulations and Python 3.6.8
  1. extract frames from the video
  2. convert them to black and white [optional]
  3. recolor the frames using transfer learning on VGG16 [optional]
  4. run object masking with Mask RCNN
  5. collect the frames to a video

How To Use

  1. model.py -- the main. specify the models to use. run it with video path as an argument
python model.py ./myVideo.mp4
  1. Colorize -- directory for recolor black and white models
  2. Framer -- directory to convert frames to video and vice versa
  3. Mask_RCNN -- directory of Mask RCNN model and code
  4. requirements.txt -- requirement for this project. NOTE: some requirement can't be installed with pip alone. there are comments in this file read them!

Futue Work and How You Can Contribute!

  • better model for colorization, as vgg16 accept low resolution images
  • faster detection algorithm to support live stection, maybe mot masking only detection
  • improve preformance without scaling the GPU
  • run model on a live video with minimal latency
  • ???

Demo

for this demo i only wanted to look for:

  • person, bicycle, car, motorcycle, bus, train, truck, traffic light, stop sign
  • you can have much more labels

RGB

Black and White

Recolored

Thank You

  1. Mask RCNN model
  2. Colorize Model
  3. Video for demo (0:25 ~ 0:35)

Releases

No releases published

Packages

No packages published

Languages