Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to extract a QR Code

Contributor ,
Dec 14, 2024 Dec 14, 2024

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

0.jpgX23.jpg

TOPICS
Actions and scripting
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 14, 2024 Dec 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. 

Screenshot 2024-12-15 at 15.21.28.png

Translate
Adobe
Community Expert ,
Dec 14, 2024 Dec 14, 2024

@w30290083o9nn â€“ What file format are the originals?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 14, 2024 Dec 14, 2024

jpg

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 14, 2024 Dec 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 14, 2024 Dec 14, 2024

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 14, 2024 Dec 14, 2024

Is this spam or do you have some question? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 14, 2024 Dec 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. 

Screenshot 2024-12-15 at 15.21.28.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 16, 2024 Dec 16, 2024

@c.pfaffenbichler 

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 17, 2024 Dec 17, 2024
LATEST

Could you please send the action file? Thank you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 14, 2024 Dec 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 14, 2024 Dec 14, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 14, 2024 Dec 14, 2024

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines