This project is an assignment for the IISC Bangalore Summer Internship. The website utilizes YOLOv5s, a state-of-the-art object detection system, to detect, annotate, and count vehicles in traffic. This technology can be instrumental in managing and analyzing traffic flow, potentially contributing to smarter and more efficient transportation systems.
-
Clone the repository:
-
git clone https://github.com/sd1p/IISCB_Assignment.git
-
Install dependencies for both backend and frontend:
-
cd backend
-
pip install -r requirements.txt
-
cd ../frontend
-
npm install
-
Configure environment variables:
-
Create a
.env.local
file in the frontend directory and set the required variables.NEXT_PUBLIC_BACKEND_URI=http://localhost:5000
-
-
Run the backend server:
-
cd backend
-
python app.py
-
Run the frontend application:
-
cd frontend
-
npm run dev
-
Run the app at
http://localhost:3000/
-
Method: POST
-
Description: Uploads a Image file to the server.
-
Parameters:
-
file
(multipart/form-data): The Image file to upload. -
Response:
-
response
(json) : ContainsfileName
,namespace
,URI
{ "annotated_image": "", // base64 image "class_count": "", // vehicles and counts }