Replies: 1 comment
-
FWIW I managed to at least adapt the preview screen to be in square aspect ratio (same as the cropped analysis images), using CameraAwesomeBuilder.custom and
so that at least takes care of the problem of the end user and analysis code seeing different aspect ratio images. It would still be great to have uncropped analysis images though |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
First of all thanks for making CamerAwesome available - it's a great plugin with lots of functionality and much better performance than the standard flutter camera plugin!
My use case requires showing the standard camera UI and at the same time to perform background analysis of the preview images every second or so. To do so I construct my UI with with CameraAwesomeBuilder.awesome() and also provide a onImageForAnalysis hook - this works well but by issue is that the image received by the analysis function is cropped (1:1 ratio) compared to what the user sees in the UI preview (4:3 or 16:9). This is on Android.
I wonder if there's anything that can be done to get the uncropped version? Or is there anything else that can be done in order to perform analysis on the same image that it's being shown to the user? I've tried building my own UI with analysisOnly() but this means the resulting interface is choppier than the default previewUI, and the aspect ratio shown to the user just doesn't look right
It seems that the plugin is nonetheless sending width and height parameters?
CamerAwesome/android/src/main/kotlin/com/apparence/camerawesome/cameraX/ImageAnalysisBuilder.kt
Line 66 in 2d05bbf
thanks!
Beta Was this translation helpful? Give feedback.
All reactions