Practical overview
When it fits
Use it when you need a self-hosted YOLOv3 image-detection service with REST routes that an application can call.
Who it is for
- Developers adding image-based object detection to web applications.
- Developers integrating detection results into mobile applications.
- Teams that want to run a YOLOv3 inference service on infrastructure they control.
Documented uses
- Submit one or more images and receive detected classes and confidence values as JSON.
- Get an input image back with detected objects drawn on it.
- Use pretrained YOLOv3 or YOLOv3-tiny weights, or configure custom weights and class names.
Requirements & limits
The repository is public and lists an Apache-2.0 license. The documented service runs as a locally hosted Flask application.
- Choose
/detectionsfor JSON class and confidence results, or/imagefor an annotated image response. - The README provides distinct CPU and GPU dependency setups; GPU use requires an NVIDIA driver.
- Confidence threshold, IoU threshold and maximum detected classes are configurable in the model configuration.
- Requests also save images with detections to the repository's
detectionsfolder.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up the Flask object-detection API
Prepare the repository, model weights and Flask service so its two local REST endpoints are available.
Before you start
- A Python environment with Conda or pip.
- The repository's dependency files and pretrained YOLOv3 or YOLOv3-tiny weights.
- An NVIDIA driver if using the GPU setup.
Steps
Create and activate a CPU or GPU Conda environment using the matching environment file, or install dependencies with the matching pip requirements file.
Download YOLOv3 or YOLOv3-tiny pretrained weights into the repository's weights folder.
Run the matching
load_weights.pycommand to convert the weights into TensorFlow model files.From the repository root, run the command below; the README specifies local port 5000.
python app.py
Expected outcome
The Flask application exposes POST routes at `/detections` and `/image` on the local server.
Guide limitations
- GPU setup requires an NVIDIA driver.
- Custom weights and classes may require edits in
app.pybefore running the service.
Request JSON detections for images
Submit image files to the running service's `/detections` route and receive detection results as JSON.
Before you start
- The Flask application running locally on port 5000.
- Postman or curl, plus one or more image files.
Steps
Send a POST request to
http://localhost:5000/detections.For Postman, set the form-data key to
imagesand its type to file; multiple files can be selected.Alternatively, submit an image with the README's curl example:
curl.exe -X POST -F images=@data/images/dog.jpg "http://localhost:5000/detections".Read the JSON response for detected classes and their confidence values.
Expected outcome
The endpoint returns JSON detections for the submitted image or images.
Guide limitations
- The application must already be running.
- The documented curl example uses a sample image in the repository.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 23 October 2026
- Original website title
- theAIGuysCode/Object-Detection-API · Official homepage title · retained in its source language

