Commit c21fd589 authored by Nisarg Thakkar's avatar Nisarg Thakkar

Fix for Bug 4074. Both conditions of if are same

parent ac5ffe31
......@@ -59,7 +59,7 @@ void OCRTesseract::run(Mat& image, string& output_text, vector<Rect>* component_
vector<string>* component_texts, vector<float>* component_confidences,
int component_level)
{
CV_Assert( (image.type() == CV_8UC1) || (image.type() == CV_8UC1) );
CV_Assert( (image.type() == CV_8UC1) || (image.type() == CV_8UC3) );
CV_Assert( (component_level == OCR_LEVEL_TEXTLINE) || (component_level == OCR_LEVEL_WORD) );
output_text.clear();
if (component_rects != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment