I have tried this example, it is simply amazing. So effective that I need to narrow the recognition area.
Erel provides this solution:
Convert the preview data to a jpeg data (there is such a method in CameraEx) and then load it to a bitmap.
Crop the bitmap and pass it to frameBuilder with:
unfortunately I can't implement it, I can get help with an example of the changes to be made on the initial code: barcode reader based on Google Play Services Vision
Thank you all
Erel provides this solution:
Convert the preview data to a jpeg data (there is such a method in CameraEx) and then load it to a bitmap.
Crop the bitmap and pass it to frameBuilder with:
B4X:
frameBuilder.RunMethod("setBitmap", Array(YourBitmap)) 'instead of the setImageData line
Thank you all