Thresholding - OpenCV with Python for Image and Video Analysis 6

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



Duration: 9:15
123,705 views
1,335


Welcome to another OpenCV tutorial. In this tutorial, we'll be covering thresholding for image and video analysis. The idea of thresholding is to further-simplify visual data for analysis. First, you may convert to gray-scale, but then you have to consider that grayscale still has at least 255 values. What thresholding can do, at the most basic level, is convert everything to white or black, based on a threshold value. Let's say we want the threshold to be 125 (out of 255), then everything that was 125 and under would be converted to 0, or black, and everything above 125 would be converted to 255, or white. If you convert to grayscale as you normally will, you will get white and black. If you do not convert to grayscale, you will get thresholded pictures, but there will be color.

While that sounds good enough, it often isn't. We will be covering multiple examples and different types of thresholding here to illustrate this.

Sample code and text-based tutorial: https://pythonprogramming.net/thresholding-image-analysis-python-opencv-tutorial/

https://pythonprogramming.net
https://twitter.com/sentdex
https://www.facebook.com/pythonprogramming.net/
https://plus.google.com/+sentdex




Other Videos By sentdex


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
2015-11-30Return Files with send_file - Flask Web Development with Python 30



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