std::string outText, imPath = "image.jpeg"; cv::Mat im = cv::imread(imPath, cv::IMREAD_GRAYSCALE); cv::bitwise_not(im, im); tesseract::TessBaseAPI* ocr = new tesseract::TessBaseAPI(); ocr->Init(NULL, "eng", tesseract::OEM_DEFAULT) ocr->SetImage(im.data, im.cols, im.rows, 1, im.step); outText = std::string(ocr->GetUTF8Text()); ocr->End();
Anybody got any idea how to fix this issue? -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-ocr+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/205fedd4-235c-4810-8e49-5edc1fecd2c1n%40googlegroups.com.