mirror of
https://github.com/opencv/opencv_contrib.git
synced 2025-10-18 08:44:11 +08:00
Comment out direct print statements during tesseract run invocations
This statement interferes with regular logging on the client side where the OpenCV library's outputs cannot be managed by the user and forcefully print out in the client code. For instance, this is observed when OpenCV is used as a python library where it is expected to provide optional loggers instead of direct writes to stdout.
This commit is contained in:
@@ -116,7 +116,7 @@ CV_WRAP String OCRTesseract::run(InputArray image, InputArray mask, int min_conf
|
||||
run(image_m, mask_m, output1, NULL, &component_texts, &component_confidences, component_level);
|
||||
for(unsigned int i = 0; i < component_texts.size(); i++)
|
||||
{
|
||||
cout << "confidence: " << component_confidences[i] << " text:" << component_texts[i] << endl;
|
||||
// cout << "confidence: " << component_confidences[i] << " text:" << component_texts[i] << endl;
|
||||
|
||||
if(component_confidences[i] > min_confidence)
|
||||
{
|
||||
|
Reference in New Issue
Block a user