Coder Social home page Coder Social logo

flagnet's Introduction

Flagnet

Build Status License MIT

Flagnet is a neural network for detecting country flags in photos. The detection is backed up by our very own dataset – the collection of photos of flags for 193 United Nations member countries.

Table of contents

Getting started

Flagnet is built in Python 3. Before cloning the project, make sure that you have downloaded and installed Python and Pipenv.

After downloading Python and Pipenv, you have to download all dependencies via Pipenv:

$ pipenv install

Now you're ready for the project!

Configuration

All project configuration is controlled from a single place – the config.py file. Currently you can change these parameters:

MIN_IMAGE_SIZE = 416, 416         # minimum size of images in the dataset
SCREENSHOT_IMAGE_SIZE = 800, 600  # size of generated images from Flagwaver website
NUM_DOWNLOAD_WORKERS = 8          # number of parallel workers when downloading the dataset

Dataset

The images which are part of the dataset are stored in the dataset folder and organized into the folders by country ISO 3166-1 alpha-2 codes. Inside every folder, there is a credits.yml (and its visual Markdown representation credits.md) which contains a list of images with its author name, license and download URL. To download the dataset, position yourself in the root of the project and run the downloader:

$ python -m download.download_dataset

Contributing

Pull requests are welcome for both the dataset andΒ the neural network.

License

Flagnet is released under the MIT license.

flagnet's People

Contributors

dependabot[bot] avatar iamvukasin avatar sanjamijovic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flagnet's Issues

Create initial dataset

Because of the high number of classes, the idea is to initially create a small dataset with a few classes. Currently, these countries are in focus:

  • Flags of Canada: 6/50
  • Flags of Russia: 6/50
  • Flags of Serbia: 53/50
  • Flags of the United States of America: 51/50

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.