cd "/Users/nikhilpradipmore/real time object detection"source .venv/bin/activateIf you don't have a virtual environment, create one first:
python3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtpython app.pyOnce you see:
* Running on http://127.0.0.1:8080
Open your web browser and go to:
Press Ctrl+C in the terminal
cd "real time object detection" && .venv\Scripts\activate && python app.pycd "/Users/nikhilpradipmore/real time object detection" && source .venv/bin/activate && python app.py- Startup: You'll see "YOLOv8 model loaded successfully with 80 classes"
- Server Running: "Running on http://127.0.0.1:8080"
- In Browser:
- Upload an image for detection
- Click "Start Live Detection" for webcam
- Port 8080 already in use: Change the port in
app.py(line 274) from8080to another port like5000 - Module not found: Run
pip install -r requirements.txt - Camera not working: Check camera permissions in System Settings (macOS) or Privacy settings