Program running by command
python3.6 app.py path_to_image
python3.6 app.py photo2.img
Output:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 1
1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1
1 0 1 1 1 1 0 0 0 0 1 1 1 0 1 1 1
1 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 1
1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 0 1
0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 0 1
1 1 1 1 0 1 1 1 0 0 1 1 1 0 1 0 1
1 0 0 1 0 0 0 1 0 0 0 0 1 0 1 0 0
1 0 1 1 1 1 1 1 0 0 1 0 1 0 1 0 1
1 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1
1 1 0 1 1 1 1 1 1 1 1 0 1 0 1 0 1
1 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 1
1 0 1 1 0 1 1 1 0 0 1 1 1 1 1 0 1
1 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1