Android App Development
iOS App Development
Flutter App Development
Cross Platform App Development
Hire on-demand project developers and turn your idea into working reality.
Big thanks to Webkul and his team for helping get Opencart 3.0.3.7 release ready!
Deniel Kerr
Founder. Opencart
Top Partners
Updated 2 January 2020
In order to get the information from the barcode and trigger the action, We can use ML kit’s barcode scanning API. Steps to implement Firebase ML kit 1. We have to add Firebase in the project. 2. Add the dependencies for the ML Kit Android libraries to your module (app-level) Gradle file (usually app/build.gradle)<
Configure Barcode detector It will be better to know the formate of the barcode in order to improve performance and getting the information The following formats are supported:-Code 128 (FORMAT_CODE_128), Code 39 (FORMAT_CODE_39), Code 93 (FORMAT_CODE_93), Codabar (FORMAT_CODABAR), EAN-13, (FORMAT_EAN_13), Aztec (FORMAT_AZTEC), Data Matrix (FORMAT_DATA_MATRIX)
Run the Barcode Detector 1. Create FirebaseVisionImage object. FirebaseVisionImage image = FirebaseVisionImage.fromMediaImage(media_image, rotation); We can also get the instance of FirebaseVisionImage object from a file URI.
2. Create an instance of FirebaseVisionBarcodeDetector:
3. Finally, pass the image to the “detectInImage” method:
Get Information from barcodes
You can also go through the following link in order to get details:- https://firebase.google.com/docs/ml-kit/android/read-barcodes https://github.com/firebase/mlkit-material-android
Your email address will not be published. Required fields are marked*
Name*
Email*
Save my name email and website in this browser for the next time I comment.
Be the first to comment.
We use cookies to personalize your experience. By continuing to visit this website you agree to our use of cookies. Learn more about privacy policy
Name
Email
Subject
Enquiry or Requirement
If you have more details or questions, you can reply to the received confirmation email.