|
| 1 | +--- |
| 2 | +description: Este wiki demuestra cómo usar YOLOv11 para estimación de velocidad y detección de merodeo. |
| 3 | +title: YOLOv11 para Estimación de Velocidad y Detección de Merodeo |
| 4 | +keywords: |
| 5 | + - Edge |
| 6 | + - reComputer AI |
| 7 | + - YOLOv11 |
| 8 | + - hailo |
| 9 | +image: https://files.seeedstudio.com/wiki/wiki-platform/S-tempor.png |
| 10 | +slug: /es/yolov11_for_speed_estimation_and_loitering_detection_on_recomputer |
| 11 | +last_update: |
| 12 | + date: 12/16/2025 |
| 13 | + author: Jiahao |
| 14 | + |
| 15 | +no_comments: false # for Disqus |
| 16 | +--- |
| 17 | + |
| 18 | +# YOLOv11 para Estimación de Velocidad y Detección de Merodeo |
| 19 | + |
| 20 | +## Introducción |
| 21 | + |
| 22 | +[YOLOv11](https://github.com/ultralytics/ultralytics) es la versión más reciente y avanzada de la familia de modelos de detección de objetos en tiempo real "You Only Look Once" (YOLO), fue lanzado a finales de 2024 por Ultralytics. |
| 23 | + |
| 24 | +Este wiki es un sistema integral de detección, seguimiento y estimación de velocidad de objetos en tiempo real optimizado para aceleradores de IA Hailo usando yolov11. Este proyecto permite la detección eficiente de objetos (con enfoque en personas y vehículos) con capacidades simultáneas de seguimiento y cálculo de velocidad. |
| 25 | + |
| 26 | +## Preparar Hardware |
| 27 | + |
| 28 | +<div class="table-center"> |
| 29 | + <table align="center"> |
| 30 | + <tr> |
| 31 | + <th>reComputer AI Industrial R2000</th> |
| 32 | + <th>reComputer AI R2000</th> |
| 33 | + <th>reComputer Industrial R2045</th> |
| 34 | + <th>reComputer Industrial R2135</th> |
| 35 | + </tr> |
| 36 | + <tr> |
| 37 | + <td><div style={{textAlign:'center'}}><img src="https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/2/-/2-114993595-recomputer-ai-industrial-r2135-12.jpg" style={{width:250, height:'auto'}}/></div></td> |
| 38 | + <td><div style={{textAlign:'center'}}><img src="https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/1/_/1_24_1.jpg" style={{width:250, height:'auto'}}/></div></td> |
| 39 | + <td><div style={{textAlign:'center'}}><img src="https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/1/-/1-recomputer-industrail-r2000_1.jpg" style={{width:250, height:'auto'}}/></div></td> |
| 40 | + <td><div style={{textAlign:'center'}}><img src="https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/i/m/image_6.jpg" style={{width:250, height:'auto'}}/></div></td> |
| 41 | + </tr> |
| 42 | + <tr> |
| 43 | + <td><div class="get_one_now_container" style={{textAlign: 'center'}}> |
| 44 | + <a class="get_one_now_item" href="https://www.seeedstudio.com/reComputer-AI-Industrial-R2135-12-p-6432.html" target="_blank"> |
| 45 | + <strong><span><font color={'FFFFFF'} size={"4"}> Obtener Uno Ahora 🖱️</font></span></strong> |
| 46 | + </a> |
| 47 | + </div></td> |
| 48 | + <td><div class="get_one_now_container" style={{textAlign: 'center'}}> |
| 49 | + <a class="get_one_now_item" href="https://www.seeedstudio.com/reComputer-AI-R2130-12-p-6368.html" target="_blank"> |
| 50 | + <strong><span><font color={'FFFFFF'} size={"4"}> Obtener Uno Ahora 🖱️</font></span></strong> |
| 51 | + </a> |
| 52 | + </div></td> |
| 53 | + <td><div class="get_one_now_container" style={{textAlign: 'center'}}> |
| 54 | + <a class="get_one_now_item" href="https://www.seeedstudio.com/reComputer-Industrial-R2045-12-p-6544.html" target="_blank"> |
| 55 | + <strong><span><font color={'FFFFFF'} size={"4"}> Obtener Uno Ahora 🖱️</font></span></strong> |
| 56 | + </a> |
| 57 | + </div></td> |
| 58 | + <td><div class="get_one_now_container" style={{textAlign: 'center'}}> |
| 59 | + <a class="get_one_now_item" href="https://www.seeedstudio.com/reComputer-Industrial-R2135-12-p-6547.html" target="_blank"> |
| 60 | + <strong><span><font color={'FFFFFF'} size={"4"}> Obtener Uno Ahora 🖱️</font></span></strong> |
| 61 | + </a> |
| 62 | + </div></td> |
| 63 | + </tr> |
| 64 | + </table> |
| 65 | +</div> |
| 66 | + |
| 67 | + |
| 68 | +<div style={{ color: 'red', fontWeight: 'bold' }}> |
| 69 | + Nota: Necesitas una cámara USB como entrada. |
| 70 | +</div> |
| 71 | + |
| 72 | +## Instalar Software Hailo y Verificar Instalación |
| 73 | + |
| 74 | +### actualizar el sistema |
| 75 | + |
| 76 | +```bash |
| 77 | +sudo apt update |
| 78 | +sudo apt full-upgrade |
| 79 | +``` |
| 80 | + |
| 81 | +:::note |
| 82 | +A veces puedes encontrar los siguientes problemas durante las actualizaciones. |
| 83 | + |
| 84 | +``` |
| 85 | +Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB] |
| 86 | +Get:2 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB] |
| 87 | +Get:3 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB] |
| 88 | +Get:4 http://archive.raspberrypi.com/debian bookworm InRelease [39.0 kB] |
| 89 | +Reading package lists... Done |
| 90 | +E: Release file for http://deb.debian.org/debian/dists/bookworm/InRelease is not valid yet (invalid for another 58d 8h 26min 35s). Updates for this repository will not be applied. |
| 91 | +E: Release file for http://deb.debian.org/debian-security/dists/bookworm-security/InRelease is not valid yet (invalid for another 84d 18h 23min 59s). Updates for this repository will not be applied. |
| 92 | +E: Release file for http://archive.raspberrypi.com/debian/dists/bookworm/InRelease is not valid yet (invalid for another 84d 13h 13min 5s). Updates for this repository will not be applied. |
| 93 | +E: Release file for http://deb.debian.org/debian/dists/bookworm-updates/InRelease is not valid yet (invalid for another 85d 0h 52min 29s). Updates for this repository will not be applied. |
| 94 | +``` |
| 95 | + |
| 96 | +Esto se debe a que la hora en la Raspberry Pi está configurada incorrectamente, y necesitas configurar manualmente la hora en la Raspberry Pi con el comando a continuación: |
| 97 | + |
| 98 | +``` |
| 99 | +# This command only you can connect google.com |
| 100 | +sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" |
| 101 | +``` |
| 102 | + |
| 103 | +Después de configurar la hora de tu raspberry, puedes actualizar tu raspberry. |
| 104 | +::: |
| 105 | + |
| 106 | +### Configurar pcie a gen2/gen3(gen3 es más rápido que gen2) |
| 107 | + |
| 108 | +Agrega el siguiente texto a ```/boot/firmware/config.txt``` |
| 109 | + |
| 110 | +```bash |
| 111 | +#Enable the PCIe external connector |
| 112 | + |
| 113 | +dtparam=pciex1 |
| 114 | + |
| 115 | +#Force Gen 3.0 speeds |
| 116 | + |
| 117 | +dtparam=pciex1_gen=3 |
| 118 | + |
| 119 | +``` |
| 120 | + |
| 121 | +:::note |
| 122 | +Si quieres usar gen2, por favor comenta dtparam=pciex1_gen=3 |
| 123 | +::: |
| 124 | + |
| 125 | +### Instalar hailo-all y reiniciar |
| 126 | + |
| 127 | +Abre la terminal en la Raspberry Pi5, e ingresa el comando como sigue para instalar el software Hailo. |
| 128 | + |
| 129 | +```bash |
| 130 | +sudo apt install hailo-all |
| 131 | +sudo reboot |
| 132 | +``` |
| 133 | + |
| 134 | +### Verificar Software y Hardware |
| 135 | + |
| 136 | +Abre la terminal en la Raspberry Pi5, e ingresa el comando como sigue para verificar si hailo-all ha sido instalado. |
| 137 | + |
| 138 | +```bash |
| 139 | +hailortcli fw-control identify |
| 140 | +``` |
| 141 | + |
| 142 | +El resultado correcto se muestra a continuación: |
| 143 | +<p style={{textAlign: 'center'}}><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/YOLOV8/check_software.png" alt="pir" width={1000} height="auto"/></p> |
| 144 | + |
| 145 | +Abre la terminal en la Raspberry Pi5, e ingresa el comando como sigue para verificar si hailo-8L ha sido conectado. |
| 146 | + |
| 147 | +```bash |
| 148 | +lspci | grep Hailo |
| 149 | +``` |
| 150 | + |
| 151 | +El resultado correcto se muestra a continuación: |
| 152 | +<p style={{textAlign: 'center'}}><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/YOLOV8/check_hardware.png" alt="pir" width={1000} height="auto"/></p> |
| 153 | + |
| 154 | +## Ejecutar Proyecto |
| 155 | + |
| 156 | +### Instalar Proyecto |
| 157 | + |
| 158 | +```bash |
| 159 | +cd ~ && git clone https://github.com/Seeed-Projects/YOLOv11-Hailo-Tracker.git |
| 160 | +cd YOLOv11-Hailo-Tracker |
| 161 | +``` |
| 162 | + |
| 163 | +### Preparar el entorno |
| 164 | + |
| 165 | +```bash |
| 166 | +python -m venv .env --system-site-packages |
| 167 | +source .env/bin/activate |
| 168 | +pip install -r requirements.txt |
| 169 | +``` |
| 170 | + |
| 171 | +### Ejecutar el proyecto |
| 172 | + |
| 173 | +Accede a `localhost:5000` para llegar al frontend y configurar ajustes. |
| 174 | + |
| 175 | +```bash |
| 176 | + python run_api.py |
| 177 | +``` |
| 178 | + |
| 179 | +<p style={{textAlign: 'center'}}><img src="https://files.seeedstudio.com/wiki/00_AI_Sensing/Application/yolov11/image.png" alt="pir" width={1000} height="auto"/></p> |
| 180 | + |
| 181 | +## Resultado |
| 182 | + |
| 183 | +<div class="video-container"> |
| 184 | +<iframe width="800" height="400" src="https://www.youtube.com/embed/cscCVUAidGo" title="YOLOv11n on Raspberry Pi reComputer for Loitering Detection and Speed Estimation (Hailo-8)" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe> |
| 185 | +</div> |
| 186 | + |
| 187 | +## Soporte Técnico y Discusión de Productos |
| 188 | + |
| 189 | +¡Gracias por elegir nuestros productos! Estamos aquí para brindarte diferentes tipos de soporte para asegurar que tu experiencia con nuestros productos sea lo más fluida posible. Ofrecemos varios canales de comunicación para atender diferentes preferencias y necesidades. |
| 190 | + |
| 191 | +<div class="button_tech_support_container"> |
| 192 | +<a href="https://forum.seeedstudio.com/" class="button_forum"></a> |
| 193 | +<a href="https://www.seeedstudio.com/contacts" class="button_email"></a> |
| 194 | +</div> |
| 195 | + |
| 196 | +<div class="button_tech_support_container"> |
| 197 | +<a href="https://discord.gg/eWkprNDMU7" class="button_discord"></a> |
| 198 | +<a href="https://github.com/Seeed-Studio/wiki-documents/discussions/69" class="button_discussion"></a> |
| 199 | +</div> |
0 commit comments