We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I want to scan QRcodes using the Ketai Android support library, As we all know it has KetaiCamera which utilizes your mobile phones camera and actually reads the images out of it. I want to integrate Zebra Crossing to scan qrcodes for image processing projects.
I recently found this code in GitHub and tried it on my system: https://gist.github.com/darkwave/43352f775e6f767a11cb
After running this sketch I had problems with: ->PlanarYUVLuminanceSource ->BinaryBitmap bitmap
After doing some research I found that there is a java file that you can add to your sketch inside the Zxing Library C:\Users######\Documents\Processing\libraries\zxing\core\src\main\java\com\google\zxing "PlanarYUVLuminanceSource.java"
I tried adding that to my sketch in hopes of utilizing this java code to this old sketch i found on github but it has given me another error and now i'm stuck.
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createTempFile(File.java:2024)
at processing.app.Util.saveFile(Util.java:172)
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:532)
at processing.mode.android.AndroidBuild.createProject(AndroidBuild.java:160)
at processing.mode.android.AndroidBuild.build(AndroidBuild.java:94)
at processing.mode.android.AndroidMode.handleRunDevice(AndroidMode.java:295)
at processing.mode.android.AndroidEditor$16.run(AndroidEditor.java:553)
processing.app.SketchException: Problem moving PlanarYUVLuminanceSource.java to the build folder
at processing.mode.java.JavaBuild.preprocess(JavaBuild.java:538)
at processing.mode.android.AndroidBuild.createProject(AndroidBuild.java:160)
at processing.mode.android.AndroidBuild.build(AndroidBuild.java:94)
at processing.mode.android.AndroidMode.handleRunDevice(AndroidMode.java:295)
at processing.mode.android.AndroidEditor$16.run(AndroidEditor.java:553)
Anyway, Any ideas?
Answers
@Dlare=== error code seems to mean that there is some problem with your PlanarYuvLminanceSource.java, i cannot see exactly what is it. Yet, i have written an app for android which reads QRcode and i have done that only using theGoogle.Android API for that; it runs very well. Have a look here:
https://developers.google.com/android/reference/com/google/android/gms/vision/barcode/BarcodeDetector
I'm also trying to decode QR code with ketai. Did you finally found a solution @Dlare ? My discussion : https://forum.processing.org/two/discussion/22152/how-to-decode-qrcode-in-android-mode#latest