You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having trouble scanning certain barcodes or datamatrix, especially on android. This seems to happen when trying to scan smaller barcodes.
After investigating a bit, I found out, that no targetResolution is specified for the android implementation. The ImageAnalysis class will use 640x480 as a default.
The iOS implementation uses AVCaptureSession.Preset.hd1280x720.
The mlkit guidelines recommend 1280x780 or 1920x1080.
After increasing the resolution for the android implementation, scanning the "problematic" codes was going much better.
Preferred solution
The image resolution used for detection should be either configurable. Maybe not on an "pixel perfect" level, but rather an enum with values corresponding to 1280x780, 1920x1080, ...
Alternative options
If this should not be configurable, maybe setting a higher default resolution for android (also to 1280x780 maybe?) would be a good idea.
Additional context
I would be happy to provide a PR, if one of my suggestions would be acceptable.
Plugin(s)
Current problem
I am having trouble scanning certain barcodes or datamatrix, especially on android. This seems to happen when trying to scan smaller barcodes.
After investigating a bit, I found out, that no targetResolution is specified for the android implementation. The ImageAnalysis class will use 640x480 as a default.
The iOS implementation uses AVCaptureSession.Preset.hd1280x720.
The mlkit guidelines recommend 1280x780 or 1920x1080.
After increasing the resolution for the android implementation, scanning the "problematic" codes was going much better.
Preferred solution
The image resolution used for detection should be either configurable. Maybe not on an "pixel perfect" level, but rather an enum with values corresponding to 1280x780, 1920x1080, ...
Alternative options
If this should not be configurable, maybe setting a higher default resolution for android (also to 1280x780 maybe?) would be a good idea.
Additional context
I would be happy to provide a PR, if one of my suggestions would be acceptable.
Before submitting
The text was updated successfully, but these errors were encountered: