This repository contains the code for a Cow Detection System. It consists of two main components: the client and the server.
The client folder contains the frontend code for the Cow Detection System. It is responsible for interacting with users, displaying the video stream, and providing a user interface for configuring and viewing detections.
- HTML
- CSS
- JavaScript
- TypeScript
- Frontend framework (e.g., React, NextJS, Firebase)
To set up the client:
-
Navigate to the client folder:
cd client
-
Install the dependencies:
npm install
-
Start the development server:
npm run dev
The server folder contains the backend code for the Cow Detection System. It handles video processing, object detection using YOLO, database interactions, and serves the API endpoints for the client.
- Python 3.x
- Ultralytics YOLO
- OpenCV (
cv2
) - Pyrebase
- Plyer
- Dotenv
To set up the server:
-
Navigate to the server folder:
cd server
-
Install the required Python dependencies:
pip install -r requirements.txt
-
Ensure your webcam is connected or provide the path to your video file.
-
Run the Python script:
python cattle_detection_with_single_video.py or python cattle_detection_with_multiple_video.py
This project is licensed under the MIT License - see the LICENSE file for details.