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.
Related
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.
I'm making an app for Android and UWP that connects to a barcode scanner over bluetooth, but I'm really struggling getting the right lib or something because System.IO.Ports isn't available.
I also tried to implement both in some abstraction library, but it seems difficult. Is there someone who can help me out?
Thanks in advance
You need to create different implementation for different platform.
For Android platform, there are some discussions, for example:
Xamarin forum question
Connecting to a Bluetooth Scanner with Xamarin Android
For Universal Windows Platform, the Barcode Scanner API is the right thing we need to use. Please notice the Remark part in that document.
The official Barcode scanner sample is a good demo for beginner.
A bit late but... I am using this Nuget Package:
https://github.com/inthehand/32feet
It supports Classic Bletooth and Bluetooth BLE, and it works both on Android and iOS. The project is supported at this date and it is very well documented.
I am developing a mobile application using Titanium SDK. This is my first mobile app. Most of the app is done successfully. The only module that remains is Video conference support. The company I am working in has chosen to use Opentok SDK. I finished the web application and it works fine. Now I've hit a wall in mobile app and can't move further. The problem is Opentok provides a module to use for Titanium, But it only supports build to IOS not Android. The reason we chose Titanium is for cross platform support.
Is there any module available to use or any other way to implement Opentok with Titanium that builds into both Android and IOS.
I have already tried using a WebView to open the conference module of web application. But bad luck, Opentok only works with chrome browser in mobile. But WebView utilizes native stock browser which does not support WEBRTC. So, opentok doesn't work with webview too.
Please help me. This is my first app and I am stuck at this point.
To Create a Module for OpenTok Android:
These are the steps I would follow.
Create a new Android module: titanium.py create --type=module --id=com.tokbox.ti.opentok --platform=android --name=opentok-titanium
Follow the installation instructions from OpenTok for Android. (Hint: I added a separate section down below to help you get through their instructions.)
Make sure the module runs: ant run.emulator or ant install.
Try running their sample, fully in JAVA, completely separate from Titanium. Make sure it works, and you know what it should look like. Then, figure out what exactly you need from their API. Or, if you're feeling ambitious, decide you want everything. Work to strip down the example to just the surface area that you need. Simplify it down to the least number of files you feel makes sense.
Write an example/app.js that demonstrates how you want the module to be used. For example, maybe you'd start off by requiring the module, then setting some API + Session keys, then calling some API, etc.
Based on the documentation, port what you need in to your module. Reference the Appcelerator Android module dev guide and open source Android modules for inspiration.
Write documentation for the module to specify what the various properties, methods, etc are, so that other developers can figure out how to use the module.
When you're done, submit a PR to OpenTok and revel in your creation and contribution.
Some Hints for Step 2:
.jar files go in lib/.
.so files go in platform/android/libs/armeabi/
Permissions go in timodule.xml, and you can see an example in the open source PayPal module for Android
OpenTok does not work with WebView. OpenTok support for Titanium Android does not currently exist because it is currently in beta and we don't currently have engineering bandwidth to build a Titanium Android integration. However, if you are familiar with Titanium, you are more than welcome to add the integration yourself and send a pull request. You can get the Android beta here and you can get titanium source code here
If you are in a hurry and open to trying other frameworks, our PhoneGap Plugin currently supports both android and ios.
I am a newbie to the area of computer vision, with no prior experience. I am trying to develop a face recognition app for Android devices using OpenCV. I have installed OpenCV, but I have no idea how to use it. It seems like there is no Android specific documentation for OpenCV. How can I learn how to use OpenCV in my Android app?
The best resource I have found is just OpenCV's Android Tutorial. This goes through the opencv android sample code within the samples directory of the source that you extracted to install opencv. (ie. OPENCV_PATH/samples/android). There are other samples there including one for face detection.
There are also android docs on the opencv site.
There is also an opencv face recognition tutorial which may be useful to get you started even though it is not android specific.
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.