A python program that recognises flags of different countries
It uses a simple image hash library called imagehash
, it gets the average hash and compares the hash of every image towards the image that you put into the program.
Note. This is incomplete
You will need to have python 3.6.7 or above installed with pip.
- Make sure you have internet connection and clone this reopsitory (or download as zip), and make your terminal's current directory (on windows open cmd and type
cd <path/to/flagpole>
). - If you have it as your current directory, type
pip install requirements.txt --trusted-ost pypi.org --trusted-host files.pythonhosted.org
and wait for the requirements to install. - If you are on windows, then extract the contents of
flagpole.zip
to somewhere you will remember or if you are on linux, extract the contents of theflagpole.tar.gz
file. - Run
flagpole.py
, enter the path to the extracted file (from step 3) without qoutes. eg.C:\\Users\simplebinary\Flagpole
not"C:\\Users\simplebinary\Flagpole"
or if you are on linuxpath/to/Falgpole
, not"path/to/Flagpole"
. - Take picture or download picture of flag off the internet and give the path to that image.
- Wait for the results.
- SimpleBinary