https://github.com/rjean/tracker
Real-Time Tracking Turret project using the Coral Edge TPU and mobile-net SSD.
https://github.com/rjean/tracker
camera coral-tpu raspberry-pi
Last synced: 6 months ago
JSON representation
Real-Time Tracking Turret project using the Coral Edge TPU and mobile-net SSD.
- Host: GitHub
- URL: https://github.com/rjean/tracker
- Owner: rjean
- Created: 2020-05-15T09:27:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-09T17:02:19.000Z (almost 2 years ago)
- Last Synced: 2025-02-08T14:11:44.748Z (8 months ago)
- Topics: camera, coral-tpu, raspberry-pi
- Language: Python
- Homepage:
- Size: 11.8 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tracker
Small hobby project for an autonomous embedded device that can track things using a pan tilt system using the RaspberryPI.The idea behind that is to be able to build a unofficial "Portal Sentry Turret: https://theportalwiki.com/wiki/Sentry_Turret".

[There is a little bit of information in my blog about this project](http://www.raphaeljean.com/index.php/2020/10/28/autonomous-tracking-turret-using-coral-ai-usb-accelerator/)
# Setup.
Install the required packages:```
pip3 install -r requirements.txt
```
Make sure the gpio daemon is started when the raspberry pi boots:
```
sudo systemctl enable pigpiod
```# Architecture
## Communication
A custom built "rtcom" library is used for communication.It works by broadcasting endpoints on the network over UDP.
## User Interface
The UI is handle by the video_reader.py file. It should be run on a PC, not on the raspberry pi.As of now, it diplays the feed from the follower.
```
python video_reader.py
```## Camera
Make sure the camera is enabled:
````
sudo raspi-config
interfacing options->camera->enable the camera
````## AI
The controller requires a Coral USB Accelerator for embedded inference. https://coral.ai/docs/accelerator/get-started/.curl -OL "https://github.com/google-coral/edgetpu/raw/master/test_data/ssd_mobilenet_v2_coco_quant_postprocess_edgetpu.tflite"
## Run at startup
See https://www.tomshardware.com/how-to/run-script-at-boot-raspberry-piEdit crontab for the user:
```
pi@turret:~ $ crontab -e
```And add that line:
```
@reboot bash /home/pi/follower/start.sh > /home/pi/follower/start.log 2>&1
```# Starting the controller.
On the raspberry pi, run
```
python3 controller.py
```