A trash can that follows trash thrown at it using motion planning, real-time object tracking, and a cool web dashboard :)
install dependencies:
pip install -r requirements.txt- connect your camera and STM32 (for motor control). Start the app:
python object_tracker.pyopen your browser:
Go to http://localhost:5000 to see the dash
- Live video feed from the robot
- Trajectory and motion plots
- System stats (FPS, tracking status, etc.)
- Logs of detections
- Controls to start/stop tracking and clear logs
create wifi hotspot:
sudo nmcli dev wifi hotspot ifname wlan0 con-name trashcan-hotspot ssid TrashCanNet password 'trash1234'ip addr show wlan0site: http://10.42.0.1:5000
turn it off
sudo nmcli connection down trashcan-hotspot
sudo nmcli radio wifi offturn it on
sudo nmcli radio wifi on
sudo nmcli connection up trashcan-hotspot