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.
Follow these steps to set up and run the project:
- Navigate to the server directory:
cd ./server
- Build a Docker image from the Dockerfile:
docker build -t yolo8-docker-simple .
- 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.
- 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
- Run the client-side application:
python main.py
After a short time, the client will display the response to your request.