Skip to content

Latest commit

 

History

History
30 lines (27 loc) · 1.01 KB

README.md

File metadata and controls

30 lines (27 loc) · 1.01 KB

Image recognition using Tensorflow official model

Usage

  • Have Python and Tensorflow installed
  • Run
git clone https://github.com/sonttran/tensorflow-image-classification.git
cd tensorflow-image-classification
python3 classify_image.py --image_file <path/to/your/image/file> --num_top_predictions <integer (default 5)>
  • Example
python3 classify_image.py --image_file ./5.jpeg 
  • Response
Labrador retriever (score = 0.43014)
Chesapeake Bay retriever (score = 0.13870)
kelpie (score = 0.06117)
Rottweiler (score = 0.01032)
flat-coated retriever (score = 0.00776)
  • This demo uses Vpop Node.js server and exposes this image recognition engine to the web
  • Samples

Chihuahua

Labrador