-
-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Summary
Add an option to use the highest resolution available (typically 4:3 instead of the current 16:9 I think?), paired with FIT_CENTER instead of FILL_CENTER to actually get the full view on the preview.
Motivation
I am running OCR on the photo taken and would like the full resolution and all the space available from the camera sensor.
Currently on a Samsung Galaxy S25 in portrait, with this package I am getting ~2252x4000 (9:16) whereas the native 3:4 photo is 3000x4000.
Using FILL_CENTER with a 4:3 ratio will cut off a lot of the camera from the preview, so the scaleType would need to change (to FIT_CENTER?) to get the whole preview.
Suggested Solution
These are the settings that worked for me on Samsung Galaxy S25 (I copy pasted relevant changes into the fork so this isn't my working copy, apologies if it doesn't compile).
main...dallasyan:capacitor-camera-view:main