tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Pix.LoadFromMemory takes time overhead

Open HamidEbr opened this issue 3 years ago • 2 comments

I see pix.LoadFromMemory() takes an average of 350ms in my cases, How I can increase its performance?

HamidEbr avatar Mar 15 '21 12:03 HamidEbr

Probably an issue that should be discussed on the Leptonica Github issues list.

tdhintz avatar Mar 15 '21 16:03 tdhintz

I was seeing this too - What I really want is to be able to give it a pointer to the byte array of image memory that is already decoded. The current sample creates an entire copy of it - that's a lot of overhead that could be saved, and it's not uncommon we already have a decoded image.

dotMorten avatar Sep 22 '23 05:09 dotMorten