Skip to content

lhbelfanti/qr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repository logo

QR

Program to solve the QR Code Challenge

Repo size License


QR Code Challenge

Problem

"We found a very strange image and we suspect it is a kind of code, but we couldn't break yet. Are you capable to solve it?"

Step 1

Solution

To solve this problem I figured out that I could crop the image in small squares and ensemble them like a jigsaw.

To do so, I used the data structure: Tree.

After obtaining the small squares the steps were the following:

Step 1

Obtain the first line, knowing that a QR has 3 main squares.
Each piece of the puzzle had a color square that matches exactly with at most 2 more

Step 1

Step 2

Get the following line to verify the algorithm was working correct

Step 2

Step 3

Continue testing the algorithm, while seeing if the QR was appearing on the screen

Step 3

Step 4

Complete the jigsaw part of the algorithm. And magically I saw a QR, but I needed to remove those red lines and the color squares.

Step 4

Step 5

Removing the red lines

Step 5

Step 6

Tried to remove the color squares without success

Step 6

Step 7

Lastly, I tried another approach and a clean QR was ready to scan!

Step 7

The QR is not working anymore but, after scanning it, a popup with a message appeared, and that was the code to solve the challenge.

Installation

To run this program locally, download the repository and run the file setup.sh. This file will do the whole installation for you.


License

MIT

About

Program to solve the QR Code Challenge

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published