Code: Select all
bm_buf:=wgcp.capture(rect)
bm_buf.save("temp.bmp")
ocr_str:= ocr.ocr_from_file('temp.bmp', param)
ocr_str:= ocr.ocr_from_bitmapdata(..)
I'm not sure how to convert bm_buf into suitable parameters for ocr_from_bitmapdata() or do I use ocr_from_binary() and if so how do I form the parameters?
Thanks for any hints...