Copy link to clipboard
Copied
How to extract the QR code from an image? The two images below are provided as references, as I have many images, and the positions of the QR codes vary. Thank you, everyone
The blue Channel seems to be promising.
Load as a Selection, Select > Inverse, Quick Mask Mode, Threshold 245, Filter > Other > Minimum, Filter > Other > Maximum, exit Quick Mask Mode, Image > Crop.
Edit: Forgot to mention that this should be recorded in an Action etc.
Copy link to clipboard
Copied
@w30290083o9nn – What file format are the originals?
Copy link to clipboard
Copied
jpg
Copy link to clipboard
Copied
How many images is "many"?
Is there a way to manually sort the images into groups where the QR code is in a similar approximate vertical position? The crop automation can then work out the QR code from the surrounding areas once initial processing is performed based on the rough vertical location.
Copy link to clipboard
Copied
There are probably hundreds of them, and the position of the QR code on each image is different, so they cannot be cropped in a centralized manner.
Copy link to clipboard
Copied
Is this spam or do you have some question?
Copy link to clipboard
Copied
The blue Channel seems to be promising.
Load as a Selection, Select > Inverse, Quick Mask Mode, Threshold 245, Filter > Other > Minimum, Filter > Other > Maximum, exit Quick Mask Mode, Image > Crop.
Edit: Forgot to mention that this should be recorded in an Action etc.
Copy link to clipboard
Copied
Great job, I was looking for a method to isolate the code but it kept on picking up the text.
Copy link to clipboard
Copied
Could you please send the action file? Thank you.
Copy link to clipboard
Copied
Extract to what? What output are you looking for, is it a set of images with just the QR code and everything else trimmed away, or is it a text file with a list of URLs, or something else ?
Dave
Copy link to clipboard
Copied
Keep only the QR code image and crop out the rest.
Copy link to clipboard
Copied
Hey,
Thank you for this, I was also looking for this solution.
Thanks