Skip to content

Image object detection demo(YOLO,SSD,etc.) running as a Flask web server.

Notifications You must be signed in to change notification settings

makefile/objdet_web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Object Detection Web Demo

Image object detection demo(YOLO,SSD, Faster rcnn, etc.) running as a Flask web server.

Notice This repo is not a turnkey project for object detection web system but an easy template for those who are not familiar with Web development just like me. You need to understand and modify the code little or much to use.

Requirements

The demo server requires Python with some dependencies. To make sure you have the dependencies, please run pip install -r examples/web_demo/requirements.txt.

Run

Running python app.py will bring up the demo server, accessible at http://0.0.0.0:5000. You can enable debug mode of the web server, or switch to a different port:

% python app.py -h
Usage: app.py [options]

Options:
  -h, --help            show this help message and exit
  -d, --debug           enable debug mode
  -p PORT, --port=PORT  which port to serve content on

More

The Javascript code static/js/template.js includes several part:

  • use of Dropzone.js(Drag and drop file plugin) to upload image and get result with AJAX.
  • parse JSON result and draw rectangles on image in browser canvas.

About

Image object detection demo(YOLO,SSD,etc.) running as a Flask web server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published