Kevin Hartin Active Member Licensed User Longtime User Oct 3, 2021 #1 I was using the sample in https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/#content to test out some image capture my app needs to do and I have a couple of questions. The Zoom facility seems to crop the displayed live image, but not the captured image which is full frame. What is the best suggestion to crop the captured image to the same as the zoomed live image. I will be updating an ImageView and also writing the bitmap to a sqlite DB as a blob, rather than saving to the device filesystem. Also the orientation seems to not change with the camera in landscape or portrait modes, but is always 8 for the selfie camera and always 3 for the front camera. I am using a Samsung A21 and SDK level 30. The orientation is important as the shots will be of products whose images are to be used in a POS button. Rotating or further cropping after capture is an option. I look forward to any advidce. Thanks, Kev Last edited: Oct 3, 2021
I was using the sample in https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/#content to test out some image capture my app needs to do and I have a couple of questions. The Zoom facility seems to crop the displayed live image, but not the captured image which is full frame. What is the best suggestion to crop the captured image to the same as the zoomed live image. I will be updating an ImageView and also writing the bitmap to a sqlite DB as a blob, rather than saving to the device filesystem. Also the orientation seems to not change with the camera in landscape or portrait modes, but is always 8 for the selfie camera and always 3 for the front camera. I am using a Samsung A21 and SDK level 30. The orientation is important as the shots will be of products whose images are to be used in a POS button. Rotating or further cropping after capture is an option. I look forward to any advidce. Thanks, Kev
Erel B4X founder Staff member Licensed User Longtime User Oct 3, 2021 #2 Kevin Hartin said: was using the sample in https://www.b4x.com/android/forum/threads/show-image-in-gallery-android-7-0.97662/post-615610 to test out some image capture my app needs to do and I have a couple of questions. Click to expand... That thread has nothing to do with Camera2. Upvote 0
Kevin Hartin said: was using the sample in https://www.b4x.com/android/forum/threads/show-image-in-gallery-android-7-0.97662/post-615610 to test out some image capture my app needs to do and I have a couple of questions. Click to expand... That thread has nothing to do with Camera2.
Kevin Hartin Active Member Licensed User Longtime User Oct 3, 2021 #3 apologies, I pasted the wrong link... too many open tabs https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/#content Upvote 0
apologies, I pasted the wrong link... too many open tabs https://www.b4x.com/android/forum/threads/camera2-still-images-and-videos.83920/#content