supermonteserrat.com.br

How to make edges of OpenCV skin detection output “smooth

4.6 (610) · $ 34.50 · In stock

I did skin detection with OpenCV, it is based on HSV color space: cvtColor(src, hsv, CV_BGR2HSV); inRange(hsv, Scalar(0, 48, 80), Scalar(20, 255, 255), bw); vector<vector<Point>> contours; vector<Vec4i> hierarchy; findContours(bw, contours, hierarchy, CV_RETR_TREE, CV_CHAIN_APPROX_SIMPLE, Point(0, 0)); int s = findBiggestContour(contours); Mat output = Mat::zeros(src.size(), CV_8UC1); drawContours(output, contours, s, Scalar(255), -1, 8, hierarchy, 0, Point()); It finds the contour of the skin correctly, however, the edge of the output is not "smooth". Is there a way I can smooth the output contour (Please note "contours" is a vector of coordinates of the contour)? I want to "smooth" the output based on coordinates or black/white image, not by means of algorithms like "image blur". Any suggestions? It'll be kind if you show me some OpenCV codes.

Python OpenCV - Smoothing and Blurring - GeeksforGeeks

Age Detection using Haar Cascades on Flo Edge One - Flo Mobility

Cartoonify an Image with OpenCV in Python - DataFlair

Frontiers Toward efficient deep learning system for in-situ plankton image recognition

How to make edges of OpenCV skin detection output “smooth”? - OpenCV Q&A Forum

What is OpenCV? The Complete Guide (2024)

opencv - Smooth the edges of binary images (Face) using Python and Open CV - Stack Overflow

Edge detection – OpenCV 3.4 with python 3 Tutorial 18

Image Enhancement Techniques using OpenCV - Python - GeeksforGeeks

Tutorial: Skin Detection Example using Python and OpenCV

Multi-template matching with OpenCV - GeeksforGeeks

Opencv Quick and Dirty Tutorial: Introduction To Perception and Robotics - Ipr 2011

Using OpenCV with Python for Computer Vision. (Face Detection, Edge Detection & More), by Lyron Foster