I was trying QR Code scanner in a React Native project. I have used these two libraries -
https://github.com/moaazsidat/react-native-qrcode-scanner
https://github.com/ekreutz/react-native-barcode-scanner-google
Both of these libraries doesn't scan QR Code from an angle. Phone should be exactly in front of QR Code then only it scans. However, same library works very fast and from any angle in iOS. Is it a limitation of android camera? Can we do something to achieve same behaviour in Android too?
I had a similar problem while developing barcode scanner for my app, I tried different libraries for Android, however Mobile vision(API developed by Google) pretty much solved this problem for me. Give it a try
Related
I am working on a Project which uses the Barcode Scanner for redeem points. I have tried Zxing,QR Droid, Red Laser,Scan Life,Shop Savy etc usig HTC EVO 3D. None of them read all barcodes. But Zbar for IOS reading all the same codes.I think its the problem with hardware of the device.Is there any Scanner App better than above mentioned ?
Bar code Image.
http://i.stack.imgur.com/7VR9I.jpg
This barcode is a form of RSS-14. zxing / Barcode Scanner reads it, but it's not the easiest to read. You need to put the image in landscape orientation (right side up). Try TRY_HARDER mode, and restrict your scan to the RSS-14 format to avoid false positives.
I just wanted to know that,
As bar-code scanner works in Android.
Is that possible to make ocr based application in android which will recognize the characters on the go only..
Means As I start my camera in application, it should start doing its work instead of taking a picture and then recognize...
Thank you in advance.
You can use OpenCV for Android. For on the fly recognition you can see how BarCodeScanner implements it here
OpenCV4Android
I want to know how I implement Android Face Detection using OpenCV/JavaCV. Any one have idea about that or have code please comment on this or put the code. I want get faces from the Phone Gallery and detect them..
For face detectiion you can use the built in FaceDetector in the Android SDK, It returns face positions and angles in BMPs. But it's not very fast.
You can Also use the javaCV face detection but before to start i recommend you to see this article to see advantages and constarint of some API that you can use and also compare Performance
For FaceDetector you can see these links
Link 1
Link 2
Here's a realtime face detection sample using FaceDetector and OpenGL (draws rectangles) which works in Android 2.2
You can also use OpenCV in Android
You'd better try this on Linux (I've tried it on Windows, but failed).
Finally JavaCV (strongly recommended)
There is a sample code of realtime face detection using the camera. See "javacv-src-*.zip" on the download page.
The timing figures on the screenshot from K_Anas are shockingly slow... my app on my HTC Desire S with the OpenCV library (here) does 4+ fps...
My demo app on Play Store (eurgh) is here. In the menu the first item takes you to my web page for the app with source code snippets. 1) install OpenCV, 2) get the supplied samples running, 3) edit "Tutorial 2 OpenCVSamples" and drop my code snippets into the frame processing loop.
I claim no credit for the app, it is just a slightly enlarged and adjusted version of the sample which comes with the OpenCV library.
i have a question regarding Zxing. I have immplemented succesfully the barcode scanner and its working better than expected.
My question is:
It is possible to scan a barcode from an image WITHIN the device (Internal or SD)?
If so, how can i achieve this?
Thanks!
Barcode Scanner does not do this, no. However Barcode Scanner+ does; it's one of the extra features I put into it.
https://play.google.com/store/apps/details?id=com.srowen.bs.android
Am currently trying out zxing to develop a MultiFormat Barcode reading supporting android platform, To get Started have downladed zxing 1.7 and builded.
It works fine with EAN format codes and QR Codes, But It fails to scan a Barcode when it comes to real scanning of products which has small UPC barcodes.
Is this a problem with device?
Am Testing it on my Samsung GT-S5570, Android Version 2.2.1, With Autofocus enabled Camera 3.1 MP.
Kindly advice.
Thanks
Sam
If you can scan EAN barcodes, but not small UPC barcodes, it is probably because the camera can't get enough detail to distinguish the barcode from the background. Here are some things you could try:
Hold the camera closer to, or further away from, the barcode. Too close, and the auto focus mechanism is unable to compensate. Too far away, and the barcode becomes too small for detection.
Use more light. ZXing can activate the flash-light on some phones, but not all. If the lightning conditions are too poor, the contrast between the background and the barcode becomes too small.
Try with a different phone, with different/better camera.