October 2018
Intermediate to advanced
246 pages
6h 26m
English
Let's now jump into implementing a mobile-based barcode scanner using ML Kit. There are many formats for barcodes. ML Kit supports all the following listed formats:

Once the barcode is identified on the camera view, the draw method puts the bounding box on top of it, along with the detected barcode's raw value. The following code draws the barcode block annotations for position, size, and raw value on the supplied canvas:
/** * Draws the barcode block annotations*/@Overridepublic void draw(Canvas canvas) { if (barcode == null) { throw new IllegalStateException("Attempting to draw a null barcode."); } // Draws the bounding ...
Read now
Unlock full access