Engine for the SmartSight app
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
LICENSE
README.md
classify.py
requirements.txt

README.md

SmartSight Engine

Engine for the SmartSight app in Python 3

SmartSight engine is an image recognition algorithm based on Tensorflow and trained on ImageNet data set.

Usage

$ python classify.py --image_file <path to the image>

[
  {
    "class": "pizza, pizza pie",
    "score": 0.884148
  }, {
    "class": "butcher shop, meat market",
    "score": 0.002444
  }, {
    "class": "carbonara",
    "score": 0.00208
  }, {
    "class": "trifle",
    "score": 0.002078
  }, {
    "class": "pomegranate",
    "score": 0.001326
  }
]

Install

Create a virtual environment (optional)

If you use several Python versions on your computer, create a virtual environment with the Python 3 interpreter:

$ virtualenv -p python3 venv

Activate the new environment:

$ source venv/bin/activate

Install dependencies

$ pip install -r requirements.txt

License

GPL © SmartSight