YOLO Object and Animal Recognition on the Raspberry Pi 5 | Beginner Python Guide

preview_player
Показать описание

In this tutorial, we are going to get the YOLO object detection model running a Raspberry Pi 5 with OpenCV and the COCO Library. We will be looking at how to set up YOLOv8, learning how to run other YOLO models such as YOLOv5 and YOLOv10, learning how to control hardware with our detection results, and taking a look at YOLO World - an open vocabulary YOLO model that can be prompted to recognise specific objects without the need for retraining.

🔧🔨🧰 Hardware featured in this guide:

*Raspberry Pi 5:*
*Camera Module V3:*

*Raspberry Pis:*

0:00 Intro
0:27 What You Will Need
1:09 Plugging the Camera
1:48 Creating a Virtual Environment and Installing Packages
3:16 What are OpenCV, YOLO and COCO?
3:58 Setting up Thonny in our Virtual Environment
4:40 Running YOLOv8 Demo Code
6:07 Running Different YOLO Models
8:03 Converting to NCNN Format (FPS Boost)
9:55 YOLO World
11:58 Controlling Hardware
13:44 Wrap Up

🌏🦘 *Core Electronics* is located in the heart of Newcastle, Australia. We're powered by makers, for makers. Drop by if you are looking for:

The following trademarks are owned by *Core Electronics Pty Ltd:*

"Core Electronics" and the Core Electronics logo
"Makerverse" and the Makerverse logo
"PiicoDev" and the PiicoDev logo
"GlowBit" and the GlowBit logo
Рекомендации по теме
Комментарии
Автор

Hey everyone! 2 things.

First of all, we have instructions on the written guide of how to BOTH decrease the resolution and convert to NCNN to get greatly improved FPS (thank you very much Philipcodes from the forums).

And talk about rough timing, Yolo11 launched the day after this video but it will work perfectly fine with this guide. In our guide, we have the line:

model = YOLO("yolov8n.pt")

You will just need to change it to:

model = YOLO("yolo11n.pt")

to start using Yolo11.model = YOLO("yolov8n.pt")

Core-Electronics
Автор

Love this! Just picked up a pi5 and a camera, going to start here for sure. Your vids are always so easy to follow and super helpful. Keep it up!

MichaelSchultzSF
Автор

Thank you! this is the best beginner tutorial I've come across. Can you please do a video on implementing AI kit to boost fps as well?

kyuya
Автор

Amazing video. Thank you so much sir, you deserve more views!

prodcalls
Автор

great info & video - will definately use some of this

billycartdemons
Автор

Do you know of any alternative to connect the raspberry camera via USB instead of the flex cable (very short)?

germancruzram
Автор

This is a very helpful tutorial!!!! Nice work ❤

tunglee
Автор

Would I be able to use this for a drone that detects certain objects and navigates towards them? Also would I still be able to use the Raspberry Pi 4 Model B 2019 Quad Core?

lumostoyourday
Автор

Nice vid, can you make a tutorial working with the AI Kit or the Coral Edge TPU? I'm interested to see the perfomance gain on those

viniifsc
Автор

thanks you!!! I made it. I use VNC not hdmi. FPS: 1.7

weihong
Автор

I saw your videos using OpenCV and now with Yolo. Which one should I start as a beginner? Appreciate your super advice.

honchinleng
Автор

Can it also recognize small flying animals such as wasps, flies or even mosquitoes?

mauchmaxamadeus
Автор

Hello thanks for the video. I have a some questions Is it possible to if animal detected then i should spin the motor, but I don’t know how to do it

odko
Автор

@Core-Electronics I needed your help. So basically I am using it for my Quadcopter so I wanted to use YOLO v5 on my pi5 so can you tell me which camera would be good and the objects I have to find is that the plastic and the styrofoam. How do I train my YOLOv5 to Do that ?

mehulkini
Автор

Are you able to use any USB camera for this type of integration?

armanddewet
Автор

Can you use yolo world to control hardware as well, or does that only work with the base models?

Username-drru
Автор

Thanks for the video. What’s the approximate max distance in which the detection will work? Or which size on screen should be object we want to detect and does this parameters affected by video resolution and model size?

sergeivoronov
Автор

I’m trying to automate something based off object recognition and I was wondering if you might be able to help me out, specifically I want it to play a noise whenever it detects certain objects, for example when it see a person, it would play a .wav file that correlates

feather_jp
Автор

Can you help me in this:
pip install ultralytics[export]
These packages do not match the Hashes from the requirement file.

RohanKumar-lmko
Автор

Sir can tell me raberry pi 4B setup from basics please sir😢

Akashplays-vi