Skip to content

akashsindhu96/AIes_object_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git

Yolov3 object detection with flask and tensorflow 2.0

Yolov3 is an algorithm that uses convolutional neural network to perform object detection. Open source two endpoints each for image and video detections which can be integrate in any application. An example of integration with iOS app is shown in this repo.

Features

  1. Two Endpoints (image and Video)
  2. Bounding boxes
  3. 80 objects can be classified and detected.

Directory Structure

.
├── doc                     # Canvas documents, presentations
├── src                     # Source files 
├── pubs                    # Documentation files 
│   ├── figs                # Figures
└── README.md

Getting Started

Pip

Tensorflow CPU
pip install -r requirements.txt

Download official pre-trained weights for COCO dataset

yolov3 For Windows:
You can download weights by clicking here here

Saving your weights as Tensorflow model

Now you have to load the models and convert them to tensorflow checkpoint files.

yolov3
python load_weights.py

Running flask web app for two API endpoints

python app.py

This will start a web server on localhost. To check the detection open the Postman, select body > form-data > file and upload image.

endpoints
http://localhost:5000/image
http://localhost:5000/detections

This route takes in the image input and returns a JSON response with all the detections found within each image (classes found within the images and the associated confidence)

This route takes in the image input and returns the image response with all the detections found within the image and their bounding boxes.

To run the video

Video can only be run through this command so far.
python detect_video.py --video path-to-video

iOS Application

To run the iOS application run the .xcodeproj found in src/AIes-Ios./Swift. In order for the application to run, the application must be in lanscape mode and must have the URL in line #778 updated according to the service running.

Demo

Authors

  • Akash Sindhu
  • Maninder Singh
  • Tommy Chivaz
  • Jiawei Zhang

Acknowledgments

About

Senior Year Project - AIes (object detection API)

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •