OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI APIs & Platforms

Object Detection API

Object Detection API is a Python application that uses TensorFlow 2.0, YOLOv3 and Flask to provide two REST endpoints for image detection. The `/detections` route returns JSON containing detected classes and confidence values; `/image` returns an image with detection boxes drawn on it.

Independent OpenViST project profile, based on linked sources.

Object Detection API — Prototyping application integrations against JSON and annotated-image outputs
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

Requirements & limits

The repository is public and lists an Apache-2.0 license. The documented service runs as a locally hosted Flask application.

  • Choose /detections for JSON class and confidence results, or /image for 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 detections folder.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

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

  1. Create and activate a CPU or GPU Conda environment using the matching environment file, or install dependencies with the matching pip requirements file.

  2. Download YOLOv3 or YOLOv3-tiny pretrained weights into the repository's weights folder.

  3. Run the matching load_weights.py command to convert the weights into TensorFlow model files.

  4. From the repository root, run the command below; the README specifies local port 5000.

    Documented command
    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.py before running the service.
Source-based practical guide

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

  1. Send a POST request to http://localhost:5000/detections.

  2. For Postman, set the form-data key to images and its type to file; multiple files can be selected.

  3. Alternatively, submit an image with the README's curl example: curl.exe -X POST -F images=@data/images/dog.jpg "http://localhost:5000/detections".

  4. 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.
Evidence and transparency

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