From the course: OpenCV for Python Developers
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Skin detection
From the course: OpenCV for Python Developers
Skin detection
- [Instructor] With an understanding of the different thresholding types, we can apply the use case of detecting and segmenting of skin tones from an image. This will also cover the use of composite filtering to improve the result if no single threshold will work on its own. Taking a look at the faces.jpeg file in the Chapter 3 Module 4 folder, we can see that there are a variety of skin tones to account for. We would find that no single threshold, or adapted threshold would do the job on its own. Therefore, we need to combine multiple together. Now let's jump into our Chapter 3, module four Python file, noting we already have loaded in the faces.jpeg image in full color. The first step is we actually want to split this into an HSV file format. To do this we'll type hsv equals cv2 dot cvt color, where the C is capitalized in color. Then we'll pass in our image followed by cv2 dot and capitalize color…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Segmentation and binary images1m 38s
-
(Locked)
Simple thresholding6m 34s
-
(Locked)
Adaptive thresholding4m 38s
-
(Locked)
Skin detection6m 31s
-
(Locked)
Introduction to contours1m 38s
-
(Locked)
Contour object detection6m 56s
-
(Locked)
Area, perimeter, center, and curvature8m 19s
-
(Locked)
Canny edge detection8m 1s
-
(Locked)
Object detection overview1m 59s
-
(Locked)
Challenge: Assign object ID and attributes50s
-
(Locked)
Solution: Assign object ID and attributes10m 5s
-
-
-