4

I'm using the BarcodeDetector from the Mobile Vision API on the Google Play Services (Version 10.2.0) for my app. I pretty much took the code from the smaple app they provide: https://github.com/googlesamples/android-vision

And the barcodes are only detected if they are in the middle/centre of the screen. Is there any way of increasing this to extend the whole screen/camera preview? Its a bit misleading for the user unless you add a rectangle in the centre leading them to place the barcode inside.

Any help on how to accomplish this is welcome!

C.Schone
  • 71
  • 1
  • 2
  • 9
nsL
  • 3,722
  • 3
  • 23
  • 40

1 Answers1

1

So apparently this only happens to DataMatrix due to the lack of finder patterns. For the rest of Barcodes it works everywhere on the screen.

https://github.com/googlesamples/android-vision/issues/194

nsL
  • 3,722
  • 3
  • 23
  • 40