Skip to main content
Known Participant
December 14, 2024
Answered

How to extract a QR Code

  • December 14, 2024
  • 5 replies
  • 953 views

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

This topic has been closed for replies.
Correct answer c.pfaffenbichler

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. 

5 replies

arambasil
Participating Frequently
December 14, 2024

Hey,
Thank you for this, I was also looking for this solution.
Thanks 

davescm
Adobe Expert
December 14, 2024

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

Known Participant
December 14, 2024

Keep only the QR code image and crop out the rest.

c.pfaffenbichler
Adobe Expert
December 14, 2024

Is this spam or do you have some question? 

c.pfaffenbichler
c.pfaffenbichlerCorrect answer
Adobe Expert
December 14, 2024

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. 

Stephen Marsh
Adobe Expert
December 17, 2024

@c.pfaffenbichler 

 

Great job, I was looking for a method to isolate the code but it kept on picking up the text.

Stephen Marsh
Adobe Expert
December 14, 2024

@w30290083o9nn – What file format are the originals?

Known Participant
December 14, 2024

jpg

Stephen Marsh
Adobe Expert
December 14, 2024

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.