-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add multiple directions specification
- Loading branch information
1 parent
870d8c7
commit 82482e5
Showing
8 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
</h1> | ||
|
||
<div align="center"> | ||
<img src="./outputs/testdata_yolov5l-fp16.gif" width="60%"> | ||
<img src="./outputs/example_yolov5l.gif" width="60%"> | ||
</div> | ||
|
||
The motivation of TensorFlow Lite Human Tracking is developing person tacking system for edge camera. | ||
|
@@ -14,7 +14,7 @@ To track and detect people over frames, DeepSORT is adopted. | |
For the detail about DeepSORT, refer [this great article](https://medium.com/augmented-startups/deepsort-deep-learning-applied-to-object-tracking-924f59f99104). | ||
|
||
|
||
Currently [YOLOv5](https://github.com/ultralytics/yolov5) models are supported for object detection model. | ||
Currently [YOLOv5](https://github.com/ultralytics/yolov5) models are supported for object detection. | ||
To get YOLOv5 tflite model, see [`models/README.md`](./models/README.md) | ||
|
||
## <div align="center">Quick Start Example</div> | ||
|
@@ -23,6 +23,12 @@ To get YOLOv5 tflite model, see [`models/README.md`](./models/README.md) | |
git clone [email protected]:ozora-ogino/tflite-human-tracking.git | ||
cd tflite-human-tracking | ||
python main.py --src ./data/<YOUR_VIDEO_FILE>.mp4 --model ./models/<YOLOV5_MODEL>.tflite | ||
|
||
# Set directions. | ||
# For the value of direction you can choose one of 'bottom', 'top', right', 'left' or None. | ||
python src/main.py --src ./data/trim10s.mp4 \ | ||
--model ./models/yolov5s-fp16.tflite \ | ||
--directions="{'total': None, 'inside': 'bottom', 'outside': 'top'}" | ||
``` | ||
|
||
### Docker | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
** | ||
!.gitignore | ||
!testdata_yolov5l-fp16.gif | ||
!example_yolov5l.gif |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters