What would be the best way to alter an image to make it easier for zxing to detect the barcode?
And how can I alter an image in such a way in java?
I tried using RescaleOp to change the contrast, but I can’t understand it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is no operation that will improve detection, in general. It already accounts for contrast, and brightening operations will just reduce the dynamic range in the image. Tint doesn’t matter.
For large and noisy images, it is possible that scaling it down, or applying a light blur, helps more than it hurts by blurring noise more than it blurs edges. However this operation will do more harm than good on your average, normal camera image.