https://github.com/loganmc10/tf2-obj-detect-app
https://github.com/loganmc10/tf2-obj-detect-app
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/loganmc10/tf2-obj-detect-app
- Owner: loganmc10
- License: gpl-3.0
- Created: 2020-07-22T19:22:11.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-09T19:37:51.000Z (over 4 years ago)
- Last Synced: 2024-12-31T00:42:54.766Z (5 months ago)
- Language: Python
- Size: 110 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tf2-obj-detect-app
```
usage: tf_app.py [-h] [-b BLOB] [-i INPUT] [-r] [-s IMAGESET] [-f FREQ] [-t THRESHOLD]optional arguments:
-h, --help show this help message and exit
-b BLOB, --blob BLOB blob type (s3 or azure). Defaults to s3
-i INPUT, --input INPUT
path to video feed. Format: "http://feedone,feed1_name http://feedtwo,feed2_name"
-r, --rt enable TensorRT
-s IMAGESET, --imageset IMAGESET
Imageset to use (coco or oid). Defaults to coco
-f FREQ, --freq FREQ Analysis frequency in seconds. Defaults to 10
-t THRESHOLD, --threshold THRESHOLD
detection threshold. Defaults to 0.40
```## Workflow
1. OpenCV captures a video feed (a webcam for example)
2. Image is passed to Tensorflow for object detection analysis (by default this happens every 10 seconds)
3. Tensorflow determines what objects are present in the image
4. If objects are present, the image is uploaded to Amazon S3 (images retained for 35 days)
5. Object labels and image URL are sent via MQTT to a broker, message is collected by Node-RED, which forwards the data to InfluxDB
6. Grafana graphs the labels, attaching the image URL to each data point as metadata## Final result
* Object labels graphed in time series
* Image URL metadata attached to each data point
* Image with Tensorflow object detection overlay can be display via the graph link