BinaryEye icon indicating copy to clipboard operation
BinaryEye copied to clipboard

FR: Improved support for scanning barcodes from image files

Open dailygravy opened this issue 5 years ago • 2 comments

Currently, if an image file that is more rectangular than it is square is shared with or directly opened from the app, it seems to be impossible to scan a barcode that spans the length of the rectangle. This is because the image cannot be shrunk smaller than the dashed square in the middle of the screen. See this image for an example. However, if a screenshot of the page displaying the same image is used instead, it has no problems scanning.

It would be nice to have less restrictive limits as to how small an image can be shrunk so that such images may be scanned.

It would also be convenient to be able to define an area of interest just like when scanning with the camera, in case the image being scanned had multiple barcodes.

Finally, it would be great if it could handle images with transparent backgrounds and SVGs properly. Possibly, the assumed background colour would need to be configurable.

Thanks very much for your awesome app!

dailygravy avatar Jul 13 '20 01:07 dailygravy

I second this. Just not insisting on a strictly square region and instead allowing for a resizable rectangle of any ratio would probably be sufficient to solve this.

ravilov avatar Oct 24 '20 18:10 ravilov

Sorry for answering this months later, but the good news is there is a new Version that improves scanning from images.

There's no square scanning area anymore and the whole image is scanned by default. But you can use the same cropping limiter that is available on the camera screen to limit scanning to a certain part of the image, for example if there are multiple barcodes on an image. You can use the zoom/pinch/move gestures to focus on any part of an image.

Also the app automatically puts an image with transparent pixels on a white or black background, depending on the brightness of the visible pixels.

Version 1.35.0 should become available shortly in beta here: https://play.google.com/apps/testing/de.markusfisch.android.binaryeye

And it's already available from GitHub: https://github.com/markusfisch/BinaryEye/releases/tag/1.35.0

markusfisch avatar Nov 18 '20 21:11 markusfisch