Views
No views yet
POST /count_total returns total vehicles only.POST /count_by_type returns car/motorcycle/bus/truck + total.POST /priority_decision accepts two images and returns which lane has priority + gate open time.1python -m venv .venv
2.\.venv\Scripts\Activate.ps1
3pip install -r requirements.txtpython app.py1$img = "C:\path\to\frame.jpg"
2
3Invoke-RestMethod -Method Post `
4 -Uri "http://127.0.0.1:8000/count_by_type" `
5 -Form @{ image = Get-Item $img }1$a = "C:\path\to\laneA.jpg"
2$b = "C:\path\to\laneB.jpg"
3
4Invoke-RestMethod -Method Post `
5 -Uri "http://127.0.0.1:8000/priority_decision" `
6 -Form @{ image_a = Get-Item $a; image_b = Get-Item $b }yolov8n.pt) automatically.CONF (default 0.25) and model with YOLO_MODEL.CAR_SEC, MOTORCYCLE_SEC, BUS_SEC, TRUCK_SEC, plus MIN_GATE_SEC and MAX_GATE_SEC.Model/models/:
winner_classifier.pklgate_seconds_regressor.pkl