Could anyone provide a recommended range of values for using this option when using OCR?
Question
Question
LF Connector 10 "darkbackgroundthreshold" OCR option values in XML
Replies
Hi Kyle,
"DarkBackgroundThreshold" OCR option only take effect when "InvertImage"=2. It stands for percentage of dark background used for judging whether an image is black character on white background or otherwise. Its available value is 0 to 1.
"InvertImage" OCR option indicates if the color of image should be inverted. Its available value is 0 or 1 or 2. 0 means no invert, which is used if the image has black character on white background. 1 for white character on black background. 2 indicates auto check the color.
So you can customize the two options based on the style of the application.
Thanks,
Qinmei
Thank you for the reply. You answered my question.
Can this be updated in the LF Connector online help file? It is currently missing.
Actually, I have another question: What would be a recommended setting to capture this black number from the grey background, like in this image from Great Plains 2013? The number should be 02035, but the OCR process is reading it as D2035.
Would ImageScaleFactor and UnsharpMaskFactor values help? And if so, how are the values best determined?
Hello Kyle,
Probably UnsharpMaskFactor helps. It is used for smoothing the images. For your issue, please try a smaller value.
Best regards,
Huazhen