Skip to content
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

Adjusting the Camera Resolution for Flutter Web App #899

Open
Davvel opened this issue Mar 7, 2024 · 10 comments
Open

Adjusting the Camera Resolution for Flutter Web App #899

Davvel opened this issue Mar 7, 2024 · 10 comments

Comments

@Davvel
Copy link

Davvel commented Mar 7, 2024

Can this bar / qr code reader have a way to increase camera resolution when reading bar codes from a flutter web application. Small bar codes are giving me problems to read.

@ROBERT-MCDOWELL
Copy link

ROBERT-MCDOWELL commented Mar 7, 2024

it really depends on you device, its zoom and focus. however less than 1cm length is not possible, unless a macro zoom I guess. also html5-qrcode is limited to JavasScript sandbox, meaning that all hardware issues are often related to the browser/OS settings, drivers and hardware quality. html5-qrcode has a zoom and focus settings (check the docs) but it really depends of how the browser and os permissions are set and the drivers.

@Davvel
Copy link
Author

Davvel commented Mar 7, 2024

Just to clarify, this is the futter package I am using "qr_bar_code_scanner_dialog.dart" and I tried my best to see if I can find a setting where I can increase the default camera resolution or scan speed but could not find anything that works. I am trying to use this package from an android mobile phone which is accessing a flutter web application hosted on firebase.

@ROBERT-MCDOWELL
Copy link

any other wrapper language like dart etc.. depend on JavaScript sandbox and btw all concerning hardware settings and control depend on OS and browser permissions and driver capacity. you can have android on a samsung A53 and it works well because the camera drivers and permissions are all fine to control from html5-qrcode the zoom and focus, but another device with the same OS and settings cannot.

@Davvel
Copy link
Author

Davvel commented Mar 7, 2024

The bar codes I am trying to read can be read perfectly by the dynamsoft library for flutter as they have a setting for camera resolution and once I set it to high or veryHigh it could scan these small bar codes. The bar codes are 2mm high by 3.5cm wide.

@ROBERT-MCDOWELL
Copy link

ROBERT-MCDOWELL commented Mar 7, 2024

so why not to use dynamsoft and insist to use html5-qrcode? btw I guess the camera is set to low resolution for default pixel size. maybe you should increase the camera resolution to 1080p

@Davvel
Copy link
Author

Davvel commented Mar 7, 2024

Hi Robert, do you know how I can increase the camera resolution from the application?

@ROBERT-MCDOWELL
Copy link

check the geUserMedia function

@Davvel
Copy link
Author

Davvel commented Mar 7, 2024

Thanks for all your help, All values I touched in the getUserMedia did not give me errors but did not make any change in the bar code scanning so far. I am still hopeful that there is a way of taking benefit from the mobile camera from a flutter web app.

@ROBERT-MCDOWELL
Copy link

at what resolution you camera is set for now?

@Davvel
Copy link
Author

Davvel commented Mar 8, 2024

I could not find a way to set or read the current camera resolution. Not sure if you could guide me in what to add in flutter demo I have. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants