Ask Your Question

ognamdik's profile - activity

2020-10-28 03:17:20 -0600 received badge  Good Question (source)
2017-08-08 14:21:57 -0600 received badge  Notable Question (source)
2015-04-02 16:36:22 -0600 received badge  Famous Question (source)
2014-09-15 15:45:30 -0600 received badge  Popular Question (source)
2014-08-16 13:34:32 -0600 received badge  Nice Question (source)
2014-03-09 00:19:09 -0600 received badge  Notable Question (source)
2013-12-02 06:05:11 -0600 received badge  Popular Question (source)
2012-10-29 12:00:26 -0600 commented answer OpenCV Color Detection

thank you!

2012-10-21 22:52:03 -0600 asked a question OpenCV Color Detection

I am making an OpenCV program that is able to detect 10 different colors and be able to differentiate between them. What are 10 different colors that OpenCV is able to detect easily?

How limited is OpenCV in detecting colors? If 8-bit colors are used, how many colors can OpenCV detect easily?

2012-10-21 22:50:35 -0600 received badge  Scholar (source)
2012-10-21 22:50:32 -0600 received badge  Supporter (source)
2012-10-19 02:07:49 -0600 commented question Skin detection

@Tina123 added the output image to the post above.

2012-10-19 01:45:41 -0600 received badge  Student (source)
2012-10-18 23:15:06 -0600 received badge  Editor (source)
2012-10-18 23:14:05 -0600 asked a question Skin detection

From the image below, I want the input (left image) to have an output (right image). image description

I've tried adaptive threshold, canny, skin detection, blurring, dilating and eroding, finding contours then floodfilling it, and approxPolyDP but still can't get the right output. I can not floodfill right because there are many contours. what am I doing wrong?

Here's a sample of the SkinDetection code:

#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
Mat src;
int main(){
    src = imread("open_1a.jpg");
    if (src.empty())
        return -1;
    blur( src, src, Size(3,3) );
    Mat hsv;
    cvtColor(src, hsv, CV_BGR2HSV);
    Mat bw;
    //inRange(hsv, Scalar(0, 40, 60), Scalar(20, 150, 255), bw);
    inRange(hsv, Scalar(0, 10, 60), Scalar(20, 150, 255), bw);
    imshow("src", src);
    imshow("dst", bw);
    waitKey(0);
    return 0;
}

here's the input and the output of the code above: image description