Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.48 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.48 KB

SimpleImageRecognizer

A simple image recognize web based on Flask and Tesnsorflow. This project is written in python 3.5, the compatibility with other python version are not verified.

###How to run this web server

  1. Install requirements with pip install -r requirements.txt and tensorflow 0.10(install tensorflow follow this ).

  2. Download the pretrained inception model from google 2012 imagenet model, put 'classify_image_graph_def.pb','imagenet_2012_challenge_label_map_proto.pbtxt' and 'imagenet_synset_to_human_label_map.txt' into tfwrapper/models.

  3. export FLASK_APP=SimpleImageRecognizer.py (use export FLASK_DEBUG=1 to use debug mode ) if you are using Windows you need to use set instead of export.

  4. Run the Flask web server with python -m flask run or flask run, to start the Flask build-in server. Please note the Flask’s built-in server is only useful for development, please refer to this for production deployment.

###TODO:

  • add a requirement file.
  • get rid of temp jpg file.
  • use self-trained model.
  • enhance UI.
  • refine imageRcognizer(By now, most code in this file are copied from tf example).
  • use my own model.
  • use my own model.
  • use tensorflow-serving to improve performance.