|
| 1 | +--- |
| 2 | +sidebar_position: 6 |
| 3 | +--- |
| 4 | + |
| 5 | + |
| 6 | +# Using YOLOv8 and AI Box for all climbing and tracking detection |
| 7 | + |
| 8 | + |
| 9 | +## Introduction |
| 10 | + |
| 11 | +This project will guide you on how to use the [reComputed AI Box](https://www.seeedstudio.com/reComputer-AI-R2140-12-p-6431.html) or [reComputed Industry AI Box](https://www.seeedstudio.com/reComputer-AI-Industrial-R2145-12-p-6486.html) to implement fall detection, climbing detection, and tracking detection using the YOLOv8 model. |
| 12 | + |
| 13 | + |
| 14 | +## Hardware prepare |
| 15 | + |
| 16 | +| reCompuer AI Box | reComputer Industry AI Box | |
| 17 | +| :----------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------: | |
| 18 | +|  |  | |
| 19 | +| [**Purchase Now**](https://www.seeedstudio.com/reComputer-AI-R2130-12-p-6368.html?utm_source=PiAICourse&utm_medium=github&utm_campaign=Course) | [**Purchase Now**](https://www.seeedstudio.com/reComputer-AI-Industrial-R2135-12-p-6432.html?utm_source=PiAICourse&utm_medium=github&utm_campaign=Course) | |
| 20 | + |
| 21 | +> 💡 **Note**: This project requires a reComputer AI Box or a reComputer Industry AI Box. |
| 22 | +
|
| 23 | + |
| 24 | +## Fall down detection |
| 25 | + |
| 26 | +### Install the runtime environment |
| 27 | + |
| 28 | +```bash |
| 29 | +sudo apt update && sudo apt full-upgrade -y && sudo apt install hailo-all |
| 30 | +``` |
| 31 | + |
| 32 | +### Download the project |
| 33 | + |
| 34 | +```bash |
| 35 | +git clone https://github.com/Seeed-Projects/fall_detection_with_AIBox.git |
| 36 | +cd fall_detection_with_AIBox |
| 37 | +``` |
| 38 | + |
| 39 | +### Prepare the python environment |
| 40 | + |
| 41 | +```bash |
| 42 | +python -m venv .env --system-site-packages && source .env/bin/activate |
| 43 | +pip install -r requirements.txt |
| 44 | +``` |
| 45 | + |
| 46 | +### Run the project |
| 47 | +```bash |
| 48 | +python app.py -i ./falldown_test.mp4 -n ./yolov8n.hef --show-fps -l ./common/coco.txt |
| 49 | +``` |
| 50 | + |
| 51 | +### Result |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +## Fence climbing |
| 56 | + |
| 57 | +### Install the runtime environment |
| 58 | + |
| 59 | +```bash |
| 60 | +sudo apt update && sudo apt full-upgrade -y && sudo apt install hailo-all |
| 61 | +``` |
| 62 | + |
| 63 | +### Download the project |
| 64 | + |
| 65 | +``` |
| 66 | +git clone https://github.com/Seeed-Projects/cross_fence_with_AIBox.git |
| 67 | +cd cross_fence_with_AIBox |
| 68 | +``` |
| 69 | + |
| 70 | +### Prepare the python environment |
| 71 | + |
| 72 | +```bash |
| 73 | +python -m venv .env --system-site-packages && source .env/bin/activate |
| 74 | +pip install -r requirements.txt |
| 75 | +``` |
| 76 | + |
| 77 | +### Run the project |
| 78 | + |
| 79 | +```bash |
| 80 | +python app.py -i ./scale_the_fence.mp4 -n ./yolov8n.hef --show-fps -l ./common/coco.txt |
| 81 | +``` |
| 82 | + |
| 83 | +### Result |
| 84 | + |
| 85 | +<iframe width="800" height="400" src="https://www.youtube.com/embed/_-89czNbZ_M?list=PLpH_4mf13-A3Wm6hJp7JeT4DD9NXXUAca" title="Seeed Raspberry Pi AI Box Helps in Abnormal Event Detection: Fence Climbing" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> |
| 86 | + |
| 87 | +## Tracking |
| 88 | + |
| 89 | +### Install the runtime environment |
| 90 | + |
| 91 | +```bash |
| 92 | +sudo apt update && sudo apt full-upgrade -y && sudo apt install hailo-all |
| 93 | +``` |
| 94 | + |
| 95 | +### Download the project |
| 96 | + |
| 97 | +```bash |
| 98 | +git clone https://github.com/Seeed-Projects/track_people_with_AIBox.git |
| 99 | +cd fall_detection_with_AIBox |
| 100 | +``` |
| 101 | + |
| 102 | +### Prepare the python environment |
| 103 | + |
| 104 | +```bash |
| 105 | +python -m venv .env --system-site-packages && source .env/bin/activate |
| 106 | +pip install -r requirements.txt |
| 107 | +``` |
| 108 | + |
| 109 | +### Run the project |
| 110 | + |
| 111 | +```bash |
| 112 | +python app.py -i ./people-walking.mp4 -n ./yolov8n.hef --show-fps -l ./common/coco.txt --track |
| 113 | +``` |
| 114 | + |
| 115 | +### result |
| 116 | + |
| 117 | +<iframe width="800" height="400" src="https://www.youtube.com/embed/xoeMcaG_FxE?list=PLpH_4mf13-A3Wm6hJp7JeT4DD9NXXUAca" title="reComputer Object Detection and Tracking: The Role of YOLOv8 in Shaping Results" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> |
0 commit comments