Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

grey no so light. try CV_THRESH_OTSU

grey gray no so light. try CV_THRESH_OTSU

gray Gray no so light. try CV_THRESH_OTSUCV_THRESH_OTSU or cv::threshold(imgH, imgH, 150, 255, CV_THRESH_TRUNC);

Gray is no so light. try CV_THRESH_OTSU or cv::threshold(imgH, imgH, 150, 255, CV_THRESH_TRUNC);

Gray is no not so light. bright. try CV_THRESH_OTSU or cv::threshold(imgH, imgH, 150, 255, CV_THRESH_TRUNC);

Gray is not so bright. try CV_THRESH_OTSU bright, as you suggested at comment. Try CV_THRESH_OTSU or cv::threshold(imgH, imgH, 150, 255, CV_THRESH_TRUNC);CV_THRESH_TRUNC), it's enough for that kind of images.