Color Filtering - OpenCV with Python for Image and Video Analysis 7

Channel:
Subscribers:
1,410,000
Published on ● Video Link: https://www.youtube.com/watch?v=CCOXg75HkvM



Duration: 11:50
163,079 views
1,731


In this OpenCV with Python tutorial, we're going to cover how to create a sort of filter, revisiting the bitwise operations, where we will filter for specifically a certain color, attempting to just show it. Alternatively, you could also specifically filter out a specific color, and then replace it with a scene, like we did with replacing a ROI (region of image) with something else, much like how a green screen works.

In order to filter like this you have a few options. Generally, you are probably going to convert your colors to HSV, which is "Hue Saturation Value." This can help you actually pinpoint a more specific color, based on hue and saturation ranges, with a variance of value, for example. If you wanted, you could actually produce filters based on BGR values, but this would be a bit more difficult. If you're having a hard time visualizing HSV, don't feel silly, check out the Wikipedia page on HSV, there is a very useful graphic there for you to visualize it. Hue for color, saturation for the strength of the color, and value for light is how I would best describe it personally. Now let's hop in.

http://pythonprogramming.net
https://twitter.com/sentdex




Other Videos By sentdex


2016-01-11Making your own Haar Cascade Intro - OpenCV with Python for Image and Video Analysis 17
2016-01-10Haar Cascade Object Detection Face & Eye - OpenCV with Python for Image and Video Analysis 16
2016-01-09MOG Background Reduction - OpenCV with Python for Image and Video Analysis 15
2016-01-08Feature Matching (Homography) Brute Force - OpenCV with Python for Image and Video Analysis 14
2016-01-07Corner Detection - OpenCV with Python for Image and Video Analysis 13
2016-01-04GrabCut Foreground Extraction - OpenCV with Python for Image and Video Analysis 12
2016-01-02Template Matching - OpenCV with Python for Image and Video Analysis 11
2015-12-31Edge Detection and Gradients - OpenCV with Python for Image and Video Analysis 10
2015-12-29Morphological Transformations - OpenCV with Python for Image and Video Analysis 9
2015-12-28Blurring and Smoothing - OpenCV with Python for Image and Video Analysis 8
2015-12-27Color Filtering - OpenCV with Python for Image and Video Analysis 7
2015-12-22Thresholding - OpenCV with Python for Image and Video Analysis 6
2015-12-20Image arithmetics and Logic - OpenCV with Python for Image and Video Analysis 5
2015-12-19Image Operations - OpenCV with Python for Image and Video Analysis 4
2015-12-18Drawing and Writing on Image - OpenCV with Python for Image and Video Analysis 3
2015-12-17Loading Video Source - OpenCV with Python for Image and Video Analysis 2
2015-12-16Intro and loading Images - OpenCV with Python for Image and Video Analysis 1
2015-12-13Integrating Paypal with Flask - Flask Web Development with Python 34
2015-12-11Pygal SVG embedded Graphs - Flask Web Development with Python 33
2015-12-08jQuery with Flask - Flask Web Development with Python 32
2015-12-06Protected directories and Files - Flask Web Development with Python 31



Tags:
Python (Programming Language)
OpenCV (Software)
Image Analysis (Field Of Study)
color
filter
video analysis