QR Code Scanner From File

Are you sure it is working in companion? With same image?

qr code result is showing as " Not Found Exception "

Other than that worked well in Companion.

Rotate method should be available in Image Editor component.
Rotate the image, maybe it’ll work then.

Still Same issue. Camera Not accepting Photo. But taken picture coming in gallery.

you might want to elaborate… I do not understand… and I still do not understand if you write the same in bold…

and if you do not want the taken picture appear iin the gallery, then delete it from shared storage using the file component

are you familiar with Do it?
use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Taifun

APK file stopping at this stage, and not moving to next step

My Requirement is like this : “Take a Picture”–“Scan For QR Code”–"Show Both Photo and Decoded Text "-- “Share it to whatsapp”

so what about debugging your project yourself?
it looks like the AfterActrivity event is working fine and the picture is displayed correctly, isn’t it?
where exactly in the workfolow is the issue?

probably the DecodeBarCode block is the issue? is it able to find the image or not?
what about displaying the path to the taken image in a label?
then do the step of decoding the image manually…
remember, there is the Do it debugging feature… it works much better than the community debugging feature…

Taifun

After Activity not working properly. In companion it is return to Screen1 after activity complete, but in APK file camera not closing after Activity.

DecodeBar Block not working in Companion also. it is not detecting Image QR code.

something for the author of the extension to check @vknow360

something for you to check as already mentioned

Taifun

Qr extension doesn’t work in companion.

Yeah, I’ll try changing the decoding code.
Currently I can only think that image is not in portrait mode that’s why zxing is unable to read it.

Did you click on ok button?

yes for every click it is saving a same image in gallery.

How to set values and how to use it?

Sorrry
Plz help me

So I have a question that why do you want to read qr code from image that is taken with camera? Why not directly use Barcode Scanner component?

I need to take some label’s photo which contains product details with qr code. I need to match details with qr code to cross verification. so I need to take image and then need to scan.

Do it does not work for local variables, only global variables… read again the guides about how to use Do it…

Taifun

1 Like

Now I modified the code and set image to portrait, Still same issue

Try this one
com.sunny.qr.aix (733.7 KB)

It should work without need of rotating image.

2 Likes

Camera issue still not resolved.
What to do for camera issue?