2

How do I make the camera focus only inside the rectangle and read the text inside the rectangle and when reading the number according to a certain condition, for example, that the length of the number is 11, it is transferred to another page automatically, the value is sent to it The project link on the github https://github.com/mohanad87m/camer_number_reader enter image description here

enter image description here

mohanad.99
  • 173
  • 1
  • 2
  • 9

1 Answers1

2

Here is a similar question with some solutions you can take a look. Is there a way to crop Image/ImageProxy (before passing to MLKit's analyzer)?

Another idea is not cropping the image, instead filtering out the barcode result (based on the bounding box) if it's not in the specified area.

zhouyi
  • 226
  • 1
  • 4