-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(barcode-scanning): zoom functionality #72
Comments
Having the ability to set the zoom level on initialisation would be very useful. I am also experiencing similar issues with small CODE39 barcodes, the library is not able to read the value unless you pinch to zoom around 200%. |
Yup, i occured the same error with different type. i temporary fixed it by setting zoom lvl to 1.65 ratio in library from android studio, if u have more efficient way to manage it i would be greatful.
|
PRs are welcome. I propose these types: /**
* Set the zoom ratio of the camera.
*
* Only available on Android and iOS.
*/
setZoomRatio(options: SetZoomRatioOptions): Promise<void>;
/**
* Get the zoom ratio of the camera.
*
* Only available on Android and iOS.
*/
getZoomRatio(): Promise<GetZoomRatioResult>;
/**
* Get the minimum zoom ratio of the camera.
*
* Only available on Android and iOS.
*/
getMinZoomRatio(): Promise<GetMinZoomRatioResult>;
/**
* Get the maximum zoom ratio of the camera.
*
* Only available on Android and iOS.
*/
getMaxZoomRatio(): Promise<GetMaxZoomRatioResult>; Docs:
Edit:
|
Hi, any chance this task could be implemented? |
@robingenz what is appropriate price/bounty for implementation? |
@robingenz Contribution 200$ sent https://opencollective.com/capawesome/contributions/720755 |
@vosecek Thank you for your contribution! I will prioritize the issue. |
I’ve just published a dev version, see #112 (comment). |
Works great, thanks!
My implementation for controls is
This is just my suggestion for demo code. Anyway, this is great and fulfil our needs. |
Plugin(s)
Current problem
Hi,
I asked about this a few days ago in a different topic, but I would like to officially request a new feature, which is zoom functionality. It's a big challenge to work with small barcodes. I encountered a problem when scanning small CODE128 codes; basically, the scanner does not read them. I was able to hardcode a workaround in the library itself by adding a zoom of 1.6f during camera initialization, but this is only a temporary solution. It would be a great feature that would make the library even more attractive.
Preferred solution
Adding a zoom based on the google barcode scanner, which is implemented in the demo version
either zoom by "enlarging the screen" or by adding a slider
Alternative options
While working on react library i occured this kind of zoom which was very intuitive and it was known to be there.
Additional context
No response
The text was updated successfully, but these errors were encountered: