How to generate barcode in flutter? - android

I want to generate barcode in flutter but I only found barcode scanner packages like barcode_scan but I want something like zxing library (native in Android) for flutter that also generates Barcode in multiple formats like EAN, Code128 etc. Although my requirement is EAN.

I've already implemented a Flutter library did just what you want.
Please check here barcode_flutter
EAN8 and EAN13 are both supported.

barcode_scan uses the zxing library for the Android plugin, so you could easily extend that plugin to support the APIs for barcode generation. For the iOS version of the plugin, AVMetadataMachineReadableCodeObject is used instead of zxing, since the iOS port of xzing has been discontinued.
Flutter supports iOS 8.0+, and iOS 8.0 introduced APIs for generating barcodes as part of the Core Image API. The supported formats are:
square QR code
Aztec code symbol
PDF 417 symbol
Data Matrix code symbol
If the barcode you are looking for in this list, it will be easy to fork the barcode_scan package to add the generating functionality for your app.

Related

Zebra Scanner and Angular

I have written an angular application and trying to get it to run on a Zebra TC20 Android Scanner.
Has anyone used the EMDK with nativescript?
Or has anyone used react native with angular?
What is the best way to do this?
You need to create your plugin and then you can use the plugin in NativeScript app.
Here, you can find the information aboyr how to create Android Plugin/its infrastructure/directory structure and all. For further reading on marshalling from Java to JS, you can refer here.
Now as far as Zebra scanner is concerned, they have EMDK for android that you can download and refer to their exposed API to include in your plugin.
Below is the URL for the sample code for scanning
http://techdocs.zebra.com/emdk-for-android/4-0/tutorial/tutBasicScanningAPI/

Firebase MLKit Barcode Scanner: Adding supported formats

I have implemented MlKit Vision Barcode Scanning API in a sample app and it works correctly. I would like to put it into my prod app but for that I need an option of adding supported types for recognition. Specifically GS1 Databar types are not supported by MLKit but really common in production.
Q: How can I retrain the existing model for barcode scanning or build on top of it?
ML Kit Barcode scanner appears to be a proprietary model. The feature is listed as BETA so subject to the whims of Google.
This is a beta release of ML Kit for Firebase. This API might be changed in backward-incompatible ways and is not subject to any SLA or deprecation policy.
If you are looking at ZXing, see: GS1 structure data parsing using the ZXing barcode library
After reaching to Google/Firebase support here is what I found out:
Unfortunately, it wouldn't be possible for you to re-train that model
to work with GS1 barcodes, since the general specifications differ
from one to another.
They promised to pass it as a feature request to the development team though.
So I guess the only solution would be to create a custom model for barcode scanning to reiterate when ever needed after that.
#Morrison Chang provided some useful links for pure ML solution of this problem in the comments to his answer.
Zxing is an option but you cannot retrain the model and it is only in maintenance mode now with no support for IOS (I guess there is a thrid-part Objective-C bridge).

Is there any plugin that I should use in order to read MRZ codes in Nativescript Angular

I am using Nativescript Angular to develop my app for Android and iOS. One requirement is to read a passport MRZ (machine-readable zone) code using the device camera. My question is: Is there any plugin that can do this or what do you recommend me?
Passport and MRZ image example
I don't think there is one at the moment. There are several libraries out there for iOS / Android which you could directly use in your project or extend to a {N} plugin.

Unity3D for Android and iOS: QR-Code Decoding (Reader)

Is there a good QR Decoding Script or Pluging for Unity3D (Android and iOS)?
Or has someone already successfully integrated ZXing in Unity3D for Android and iOS? Here is a good solution for Webcam, but WebCamTexture does not always work on Android :(
I am grateful for any help.
There is a non-Free ($50) plugin available: Antares QR Code
If you're not interested in paying for a plugin then you'll have to create your own. Since ZXing is available for both iOS and Android you can create C# wrappers for it and then use a native plugin on iOS and the C#-to-Java extensions on Android to get what you need.
There is also an other plugin available for barcodes and QRCode for both Android and iOS : Easy Code Scanner
You just have to call a single method (common C# API for Android and iPhone) and it automatically launches a camera view/preview that decodes the barcode/QR code and gives you back the literal string of it in a callback. It is based on ZBar and you have nothing to integrate, everything is already self packaged.
The plugin can give you back the picture taken during the preview (as a Texture2D/Image) and also decode directly in the scripts a Texture2D/image without camera preview/shot.
The blog that the OP linked to, now has a free option for Android devices here You can also check out this related video
ARCamera prefab in Unity Tutorial
You may need to fix some minor compile errors to get everything working due to newer versions of Vuforia having different implementations.
You can also use free metaio SDK which has built in support for QR codes reading.

Including a QR-scanner application with PhoneGap

I starting to write an application that will need to have a QR code reading capabilities embedded in it. Meaning that I basically want to have an option from inside my application to scan a QR code and then perform some logic related to my application.
I got some explanations about how to do it in Android (though haven't tried it yet), but now that I've decided to use PhoneGap I want to know if it changes anything.
Does the usage of PhoneGap mean that I will have a generic way to include a QR-scanner application inside my own application, or do I still need take care of the QR-scanner application including for every platform?
Advanced features like this require a PhoneGap plugin, with an native implementation for each platform. See http://wiki.phonegap.com/w/page/36752779/PhoneGap%20Plugins
The good news is that the BarcodeScanner plugin is already implemented for Android, BlackBerry and iOS, see https://github.com/phonegap/phonegap-plugins
This plugin support 1D barcodes as well as QR codes and other 2D codes by integrating ZXing (http://code.google.com/p/zxing/)
Note that for now, integrating a plugin in a PhoneGap application needs a different procedure for each platform. See the PhoneGap Wiki referenced above as well as build & install instructions in the README file for each plugin.

Categories

Resources