Git Product home page Git Product logo

flagpole's Introduction

Flagpole Logo

Flagpole

A python program that recognises flags of different countries

How does it work?

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.

How Can I use it

Note. This is incomplete

You will need to have python 3.6.7 or above installed with pip.

  1. 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>).
  2. 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.
  3. 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 the flagpole.tar.gz file.
  4. 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 linux path/to/Falgpole, not "path/to/Flagpole".
  5. Take picture or download picture of flag off the internet and give the path to that image.
  6. Wait for the results.
  • SimpleBinary

flagpole's People

Contributors

plastictortoise avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.