[tesseract-ocr] Re: Calling from API the same way as from command line

2021-12-23 Thread Yesbird
And sorry, language initialization from API is the same as from comman line: std::string lang = "ron"; On Thursday, December 23, 2021 at 11:28:18 PM UTC+3 Yesbird wrote: > Hi, guys ! > > I am doing video subtitles recognition for one of my C++ projects and can > not figure out why for the same i

[tesseract-ocr] Re: Calling from API the same way as from command line

2021-12-23 Thread Yesbird
Problem solved by additional preprocessing - blending with white background. This form of SetImage(): SetImage(avframe->data[0], avframe->width, avframe->height, 4, avframe->linesize[0]); do not removing alpha, so I need to do it myself. On Thursday, December 23, 2021 at 11:37:27 PM UTC+3 Yesbi