项目作者: notAI-tech

项目描述 :
Neural Nets for logo detection
高级语言: Python
项目地址: git://github.com/notAI-tech/LogoDet.git
创建时间: 2020-06-15T18:52:49Z
项目社区:https://github.com/notAI-tech/LogoDet

开源协议:MIT License

下载


LogoDet

Neural Nets for logo detection

Using the free API

  • Signup here for free API key.
  • Maximum 16 requests per hour allowed.
  • Each request can have maximum of 4 images to be processed. (i.e: maximum of 64 images can be processed per hour.)

Example usage of the free API

  1. wget https://github.com/notAI-tech/fastDeploy/blob/master/cli/fastDeploy-file_client.py
  2. chmod +x fastDeploy-file_client.py
  3. # with webhook example
  4. ./fastDeploy-file_client.py --file ../../LogoDet/example.jpg --url "https://tech.notai.tech/logodet/async?api_key=YOUR_API_KEY" --webhook https://fastdeploy.requestcatcher.com
  5. # without webhook example
  6. ./fastDeploy-file_client.py --file ../../LogoDet/example.jpg --url "https://tech.notai.tech/logodet/async?api_key=YOUR_API_KEY"

As a service (recommended)

  1. # Start service
  2. (sudo) docker run --name logodet -p 8080:8080 notaitech/fastdeploy-recipe:logodet
  3. # Running predictions
  4. wget https://github.com/notAI-tech/fastDeploy/blob/master/cli/fastDeploy-file_client.py
  5. chmod +x fastDeploy-file_client.py
  6. # Single input
  7. ./fastDeploy-file_client.py --file PATH_TO_YOUR_IMAGE
  8. # Client side batching
  9. ./fastDeploy-file_client.py --dir PATH_TO_FOLDER --ext jpg

As a Python module

  1. git clone https://github.com/notAI-tech/LogoDet/
  2. cd LogoDet
  3. pip install -r requirements.txt
  1. # Weights will be auto-downloaded
  2. from predictor import predictor
  3. image_paths = [image_1.jpg, image_2.png, ...]
  4. predictions = predictor(image_paths)

Notes:

  1. Although we were able to generate/ gather data for more than 2000 unique company logos, the current release is limited to these 292 logos due to hardware constraints.
  2. We recommend using LogoDet via fastDeploy, as it doesn’t require the user to install dependencies separately.