Saturday, August 15, 2015

Barcode Detection in Google Play services


Barcode Detection in Google Play services - Hello friend Home Android, In the article you read this time with the title Barcode Detection in Google Play services, we have prepared well for this article you read the information therein. Artikel bar code, Artikel Featured, Artikel Google Services, Artikel mobile vision APIs,hopefully posting content that we write can understand. Well, happy reading.

Tittle : Barcode Detection in Google Play services
link : Barcode Detection in Google Play services

see also :

Posted by Laurence Moroney, Developer Advocate



With the release of Google Play services 7.8 we’re excited to announce that we’ve added new Mobile Vision APIs which provides the Barcode Scanner API to read and decode a myriad of different barcode types quickly, easily and locally.



Barcode detection


Classes for detecting and parsing bar codes are available in the com.google.android.gms.vision.barcode namespace. The BarcodeDetector class is the main workhorse -- processing Frame objects to return a SparseArray<Barcode> types.



The Barcode type represents a single recognized barcode and its value. In the case of 1D barcode such as UPC codes, this will simply be the number that is encoded in the barcode. This is available in the rawValue property, with the detected encoding type set in the format field.



For 2D barcodes that contain structured data, such as QR codes, the valueFormat field is set to the detected value type, and the corresponding data field is set. So, for example, if the URL type is detected, the constant URL will be loaded into the valueFormat, and the URL property will contain the desired value. Beyond URLs, there are lots of different data types that the QR code can support -- check them out in the documentation here.



When using the API, you can read barcodes in any orientation. They don’t always need to be straight on, and oriented upwards!



Importantly, all barcode parsing is done locally, making it really fast, and in some cases, such as PDF-417, all the information you need might be contained within the barcode itself, so you don’t need any further lookups.



You can learn more about using the API by checking out the sample on GitHub. This uses the Mobile Vision APIs along with a Camera preview to detect both faces and barcodes in the same image.



Supported Bar Code Types


The API supports both 1D and 2D bar codes, in a number of sub formats.



For 1D Bar Codes, these are:


EAN-13

EAN-8

UPC-A

UPC-E

Code-39

Code-93

Code-128

ITF

Codabar



For 2D Bar Codes, these are:


QR Code

Data Matrix

PDF 417



Learn More


It’s easy to build applications that use bar code detection using the Barcode Scanner API, and we’ve provided lots of great resources that will allow you to do so. Check them out here:



Follow the Code Lab



Read the Mobile Vision Documentation



Explore the sample





Thus Article Barcode Detection in Google Play services

Barcode Detection in Google Play services article That is all this time, hopefully can provide benefits to all of you. Okay, see you in another article post.


You are now reading the article Barcode Detection in Google Play services with the link http://jegesgyemant.blogspot.com/2015/08/barcode-detection-in-google-play.html

Related Posts

Barcode Detection in Google Play services
4/ 5
Oleh