Skip to content

Latest commit

 

History

History
47 lines (33 loc) · 1.07 KB

README.md

File metadata and controls

47 lines (33 loc) · 1.07 KB

Image Object Detection Client-Server

This repository demonstrates a simple example of using YOLOv8 for object detection with FastAPI and Docker.

Client: Sends images to the server. Server: Dockerized FastAPI app processes images with YOLOv8, returns results.

Getting Started

Follow these steps to set up and run the project:

  1. Navigate to the server directory:
cd ./server
  1. Build a Docker image from the Dockerfile:
docker build -t yolo8-docker-simple .
  1. Create a Docker container and run the server:
docker container run -p 2000:8000 --rm -ti yolo8-docker-simple

Note: Ensure you have an active internet connection to install required dependencies when the server starts.

  1. Open another terminal and Move to the client directory:
cd Client

To install the required files necessary for your project, simply execute the following command

pip install -r requirements.txt
  1. Run the client-side application:
python main.py

After a short time, the client will display the response to your request.