New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Scan QR codes in" does not detect QR code #75
Comments
Make sure you read the action description. You need to read the clipboard. |
I cannot verify this. The action description I see is this:
I tested both with the image containing the non-recognized barcode and another image containing two QR codes. The two barcodes in the second image are recognized and returned as a list of text items as described in the action information. For neither of the images the barcode texts are put on the clipboard. |
Sorry, I got the rules confused. |
If it's unable to detect the QR code, I'm not sure there's much I can do about it. The action simply uses the macOS API to detect QR codes. It's macOS doing the actual work. If your able to send me (either here or at sindresorhus@gmail.com) a QR code that reproduces the issue, I'm happy to take a closer look. |
Thanks for the offer. It seems like the image file has to have certain characteristics for a code to be successfully detected. I got a correct detection after converting the pdf to a 600 ppi png file. I will test this with several more files to see if this is actually the case. |
Description
For testing purposes, I ran this action with a PNG image (created from a PDF file) that contains a QR code encoding transferal data for an invoice. The action produces an empty output.
To verify, I used a Python script that wraps the zxing-cpp library.
This correctly detects the QR code and outputs the encoded data
macOS/iOS version
macOS 12.6
Shortcut URL
No response
The text was updated successfully, but these errors were encountered: