c++ - I want use tesseract in qt -


my program in qt:

const char* white_list = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789-"; auto ocr = cv::text::ocrtesseract::create("/usr/share/tesseract-ocr/tessdata/","eng", white_list); ocr->run(gray2, text, &boxes, &words, &confidences); text.erase(remove_if(text.begin(),text.end(),::isspace),text.end()); temp = qstring::fromstdstring(text); ui->textbrowser->append(temp.toupper()); 

when executed prints:

ocrtesseract(33): tesseract not found. /usr/share/tesseract-ocr/tessdata/

eng

abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789-

ocrtesseract(00): tesseract not found.

how can fix it?


Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -