That's charlesw's .Net Tesseract/Leptonica wrapper code.  One problem is 
that "pix" derives from IDisposable and must be disposed.

>
> On Mon, Jun 12, 2017 at 7:52 PM, Dan Bloomberg <[email protected] 
> <javascript:>> wrote:
>
>> ​
>> ​
>>   >>     BitmapToPixConverter b = new BitmapToPixConverter();
>>   
>> ​>>​
>>    Pix pix = b.Convert(bitmap);
>>
>> This is not leptonica code.​  It shouldn't compile, with b being a ptr 
>> that is dereferenced with a ".".  This is then set equal to a pix which is 
>> (as written) not a ptr either, causing a copy if it were correct.
>>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/919b2c7e-aa57-44a3-8c57-cdaa95baf4e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to