Bad Barcode detection on high resolution images
Bad Barcode detection on high resolution images
Hello GDPicture-Support,
i've recognized a quite strange behaviour when trying to detect barcodes on images with a resolution of 600 DPI (4992x6920 pixels in this case) or greater. Most of the barcodes on such images are not recognized by GDPicture. When i use the resize method to reduce the resolution to a smaller resolution like 300 DPI (2496x3460 pixels), the barcodes are all recognized flawlessly.
Is this a known issue? Or do i have to set a specific property to handle larger images?
Thank you in advance for your help.
Best regards,
Eco
i've recognized a quite strange behaviour when trying to detect barcodes on images with a resolution of 600 DPI (4992x6920 pixels in this case) or greater. Most of the barcodes on such images are not recognized by GDPicture. When i use the resize method to reduce the resolution to a smaller resolution like 300 DPI (2496x3460 pixels), the barcodes are all recognized flawlessly.
Is this a known issue? Or do i have to set a specific property to handle larger images?
Thank you in advance for your help.
Best regards,
Eco
Re: Bad Barcode detection on high resolution images
Hi Eco,
Best performances for recognition (OCR or barcode) are usually reach between 200 and 300 DPI.
What I can suggest is it to scale your image to 300 DPI before processing them.
- Create cloned image
- Scale this cloned image to 300 DPI (using the scaleImage method)
- Performs recognition on the scaled image.
This requires some code but it is very easy to implement and usually result on excellent results...
Hope this helps !
Loïc
Best performances for recognition (OCR or barcode) are usually reach between 200 and 300 DPI.
What I can suggest is it to scale your image to 300 DPI before processing them.
- Create cloned image
- Scale this cloned image to 300 DPI (using the scaleImage method)
- Performs recognition on the scaled image.
This requires some code but it is very easy to implement and usually result on excellent results...
Hope this helps !
Loïc
Re: Bad Barcode detection on high resolution images
Hello Loic,
thanks for the answer, i think, i will implement it this way, even though this will probably result in a slight performance decrease.
I think, we will do some additional tests and purchase the library in the next days then.
Best regards,
Eco
thanks for the answer, i think, i will implement it this way, even though this will probably result in a slight performance decrease.
I think, we will do some additional tests and purchase the library in the next days then.
Best regards,
Eco
Re: Bad Barcode detection on high resolution images
Hi Eco,
Kind regards,
Loïc
Not sure dude. OK you have a resize operation to process but in ah other hand you apply OMR to a smaller bitmap. To be tested but I think you should get almost same perfs...even though this will probably result in a slight performance decrease
Kind regards,
Loïc
Re: Bad Barcode detection on high resolution images
Hello Loic,
i've tried this with "gdImaging.ResizeHeightRatio(iImage, 3500, System.Drawing.Drawing2D.InterpolationMode.Default);" on a tif-file with 25 pages, all 600 DPI. Without scaling the images, the barcode recognition process (on the 600 DPI images) is significantly faster than scaling and recognizing the smaller images.
Best Regards,
Eco
i've tried this with "gdImaging.ResizeHeightRatio(iImage, 3500, System.Drawing.Drawing2D.InterpolationMode.Default);" on a tif-file with 25 pages, all 600 DPI. Without scaling the images, the barcode recognition process (on the 600 DPI images) is significantly faster than scaling and recognizing the smaller images.
Best Regards,
Eco
Re: Bad Barcode detection on high resolution images
Thank you for the return,
If you send me your image per mail at l.carrere (at) gdpicture (dot) com I will try to find time to investigate your issue. I think we should get similar performances...
Cheers,
Loïc
If you send me your image per mail at l.carrere (at) gdpicture (dot) com I will try to find time to investigate your issue. I think we should get similar performances...
Cheers,
Loïc
Re: Bad Barcode detection on high resolution images
I've sent you the image.
Best Regards,
Eco
Best Regards,
Eco
Re: Bad Barcode detection on high resolution images
Hi Eco,
We have been able to increase the resizing performance bu 70 % on bitonal image. This enhancement will be included in GdPicture.NET 7. Hop we will be able to get same performance as with "non-scaling" recognition...
Kind regards,
Loïc
We have been able to increase the resizing performance bu 70 % on bitonal image. This enhancement will be included in GdPicture.NET 7. Hop we will be able to get same performance as with "non-scaling" recognition...
Kind regards,
Loïc
Re: Bad Barcode detection on high resolution images
Thank you for the info. When approximately will version 7 be available?
Re: Bad Barcode detection on high resolution images
On 13th September.
Who is online
Users browsing this forum: No registered users and 1 guest