sample_detection2.cpp

Dear Noriyuki Shimpuku:

I found a bug in the line 54
cv::inRange(image, lower, upper, binalized);

I think you want to binalized the HSV space image instead of RGB one in this sample code, right?

You have just convert the image color into HSV space, and save in the Mat hsv.
But your inRange function is binalized the RGB space image.

Best regards,
Henry Yu