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

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…

Contents