R RUdolf Lam Member May 12, 2025 #1 Good morning. Is there a way to customise the mediachooser so that the camera only capture (and recognise) the text in a smaller area? Thank you! From this: To this:
Good morning. Is there a way to customise the mediachooser so that the camera only capture (and recognise) the text in a smaller area? Thank you! From this: To this:
Erel B4X founder Staff member Licensed User Longtime User May 13, 2025 #2 There is no built-in (standard) crop feature. You can implement one yourself using one of the libraries: https://www.b4x.com/android/forum/pages/results/?query=crop Upvote 0
There is no built-in (standard) crop feature. You can implement one yourself using one of the libraries: https://www.b4x.com/android/forum/pages/results/?query=crop
R RUdolf Lam Member May 13, 2025 #3 Thank you Erel. When using the crop library, does the "crop" only happen after a full-size photo is taken? My intention is to adjust the "size" of the image captured by camera. And the users should know what area (i.e. only a rectangular area at the centre of their screen) they are capturing even before they press the shutter. Upvote 0
Thank you Erel. When using the crop library, does the "crop" only happen after a full-size photo is taken? My intention is to adjust the "size" of the image captured by camera. And the users should know what area (i.e. only a rectangular area at the centre of their screen) they are capturing even before they press the shutter.
Erel B4X founder Staff member Licensed User Longtime User May 13, 2025 #4 After. If you want to have more control over the camera then use CameraEx or Camera2 library instead of MediaChooser and capture the photo from inside your app. The downside is that it is more difficult to implement and requires the camera permission. Upvote 0
After. If you want to have more control over the camera then use CameraEx or Camera2 library instead of MediaChooser and capture the photo from inside your app. The downside is that it is more difficult to implement and requires the camera permission.