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
Post a Comment