[tesseract-ocr] Tesseract works in debug, but not release build

2020-12-31 Thread Minseok Kim
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

Re: [tesseract-ocr] Tesseract works in debug, but not release build

2020-12-31 Thread Minseok Kim
not post code snittpet - provide full testing case for easy > replication > 2. Provide details: which OS, which compiler, how did build/get tesseract, > which version... etc. > > Zdenko > > > št 31. 12. 2020 o 20:53 Minseok Kim napísal(a): > >> std::string outText, i

[tesseract-ocr] Tesseract works in debug, but fails in release

2020-12-31 Thread Minseok Kim
#include #include #include #include #include using namespace std; using namespace cv; int main() { string outText = "", imPath = "image.jpeg"; Mat im = cv::imread(imPath, cv::IMREAD_GRAYSCALE); cv::bitwise_not(im, im); cv::imwrite("image_inverted.jpeg", im); tesseract::T

Re: [tesseract-ocr] Tesseract works in debug, but fails in release

2020-12-31 Thread Minseok Kim
t; cl /EHsc tess_cv.cpp /If:\win64_msvc_min\include > /If:\opencv2\opencv\build\include /link /LIBPATH:F:/WIN64_MSVC_MIN/LIB > /LIBPATH:F:/WIN64_MSVC_MIN/LIB > /LIBPATH:f:\opencv2\opencv\build\x64\vc15\lib\ tesseract50.lib > leptonica-1.81.0.lib opencv_world451.lib /machine:x64 /out:te

Re: [tesseract-ocr] Tesseract works in debug, but fails in release

2020-12-31 Thread Minseok Kim
nko > > > št 31. 12. 2020 o 22:37 Minseok Kim > napísal(a): > >> I don't know if this adds on anything, but maybe you have some insight in >> this. >> I find that this works fine on more modern computer set-ups, but fails on >> older ones. >> One