Giter VIP home page Giter VIP logo

live-cam-video-filter's Introduction

live-cam-video-filter

Apply basic filters to video in real time.

features and GIFs

Edge Detection: Variations of Canny, Sobel, and Laplacian (click to see example)

Face Detection: Uses face and eye detection to apply wearable mask filters that adjust size and position to cover the target.

Color Filters: Hue Saturation Value (HSV), L\*a\*b\*, Gray Scale, Red, Green, and Blue

Blur: Averages neighboring pixels to blur the image. Kernel size is adjustable.

Foreground Scenery: Add opaque or transparent foreground images to the video.

Geometric Transformations: Translate the video along the x or y axis, rotate the video about it's center or increase / decrease the scale of the video.

controls

ctrl + c: copy current frame to clipboard
ctrl + s: save current frame
q: quit
f: on / off face detection
h: Cycle the thickness of the face detection ring (none, 1, 3, 5, solid)
g: on / off for foreground opacity
r: resets all modifications to initial state
left / right-arrow: Change between features
up / down-arrow: Change the current feature's settings

stackable filters

The filters are applied sequentially to the video frame such that filteres of different types can be used together.

For example, an eye mask filter that uses face detection can be used at the same time as an image rotation and a Canny edge detection filter are applied:



Or a color filter can be applied on top of a Laplacian edge detection filter with moderate image blur:



credits

Please read the LICENSE file as well as the Intel licence located in the header of video_editor.py

The latter is included because the haar_cascade face and eye classifiers were obtained here: https://github.com/opencv/opencv/tree/master/data

All images were labeled free for personal use and the original artists are listed in images/artist_credits.txt.

live-cam-video-filter's People

Contributors

lprowe 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.