Raspberry Pi LESSON 63: Object Detection on Raspberry Pi Using Tensorflow Lite

preview_player
Показать описание
UPDATE:
If you are getting an error like:

you need to be on the same version of software that I am of tflite_support. Downgrade yours from version 0.4.4 (current) to 0.4.3 (used in this tutorial)using this command:

python -m pip install --upgrade tflite-support==0.4.3

Check out gear here:

If you are able, I suggest you consider getting some spare servos for the pan tilt hat. During development if you are not careful, it is possible to damage a servo by crashing the camera into something. I like to keep a couple spares on hand:

Announcing the Most Awesome Raspberry Pi Lessons of All Times! This time we RUMBLE!

In this class series, we will be using the most excellent Sunfounder Ultimate Raspberry Pi kit, available here: (Affiliate Link)

In today's video I will show you how install tensorflow lite on the Raspberry Pi. I will show how to use tensor flow to perform object detection from both a webcam and a pi camera. We will complete the program and by the end of the lesson you will have object detection working on a raspberry pi.

If you want to grab those cool little straight jumper wires I am using to keep my breadboard builds neat and clean you can snag a box of them here:

If you guys are interested in the oscilloscope I am using, you can pick one up here (affiliate link):

You guys get your hardware ordered so you can follow along at home!

You will also need a Raspberry Pi. I suggest the Raspberry Pi 4. If you do not already have one, this is the most suitable gear I could find:

The Raspberry Pi's are sort of pricy right now, so you can look on ebay or elsewhere to see if there are any deals. You will need a SD card. If you do not already have one, this is a good one:

I like using a wireless keyboard and mouse to have fewer wires. You can certainly use your USB keyboard and mouse, but if you want a nice wireless one, this one works on the pi. We demonstrate this by using a button switch to control a LED.

You guys can help me out over at Patreon, and that will help me keep my gear updated, and help me keep this quality content coming:

#tensorflow
#objectdetection
#raspberrypi
Рекомендации по теме
Комментарии
Автор

UPDATE:
If you are getting an error like:

ImportError: version `GLIBCXX_3.4.29' not found (required by

you need to be on the same version of software that I am of tflite_support. Downgrade yours from version 0.4.4 (current) to 0.4.3 (used in this tutorial)using this command:

python -m pip install --upgrade tflite-support==0.4.3

This should fix things.

paulmcwhorter
Автор

Your patience in producing theses videos with all the intricate instructions is amazing. Many of the other online video tutorials skip over details and leave students wondering how to get from step to step. With my Pi camera and 8 max_results I see 8 FPS. Keep up the great work Paul!

cbrombaugh
Автор

Nothing to say sir.. It's the ultimate🙏❤... Your patience and nature of teaching are going better day by day.

pralaymajumdar
Автор

Thank you sir ! It worked perfectly ! If anyone had the error with GLIBCXX_3.4.29 while testing the code, all you have to do is run the command : python -m pip install --upgrade tflite-support==0.4.2 (downgrade from 0.4.4)

vampireheart
Автор

Easy to understand. Beautiful programming. Thanks Paul.❤❤❤

njvkqoy
Автор

WoW. I was frustrated just to setup opencv couple of weeks back before stumbling upon your videos. And now I have a working tensor flow setup detecting multiple objects. All thanks to your masterclasses. Thanks Paul.

amarbakshi
Автор

Excellent educational piece, enjoyed following the development.

bbamboo
Автор

AS usual you produced a most excellent video! Hope you arrive home safe and healthy!

larryplatzek
Автор

Thanks Paul. I had a rough go from the beginning with all my mistakes, But every mistake I learned something from my past problems. I love this stuff.

stephenlightkep
Автор

Спасибо, я раньше работал с нейросетями, и сначала мне было очень сложно, потому что сложно было найти хорошее объяснение, теперь же один знакомый рассказал мне про твой канал, и честно сказать я восхищён тем как ты объясняешь, все становится понятным и простым, спасибо, это очень круто!

denicfor
Автор

Thats was really helpful sir 🙏 .. thanks for this session 👍

visionupsc
Автор

Excellent. Now we talking. I really like TensorFlow, I tried YOLOv8 before on my Raspberry Pi4 but I only got 1.8 FPS. With the same setup as you I run 8 FPS both with Picamera2 and webcam. I hope you are going to produce a lot of TensorFlow lessons in the future. Btw, you are the best teacher on YouTube. (Today I also bought a Coral Edge accelerator, will be fun to test and see the FPS)

lockarpsgokart
Автор

I really thank you very much for taking the time and making these videos, and for sharing your knowledge with us, long live to you my good friend, greetings from Guatemala!

metalfred_
Автор

how can I fix attributeError module cv2.cv2 has no attribute CAP_PROP_FRAME_FPS?

jal
Автор

you are funny, love your coffee receipt!!!

HA-wowe
Автор

My Webcam does not show a picture, I get the window that pops up. How do I fix error message, cv2.error opencv(4.5.3) - 206 bad flag?

kirkkato
Автор

Bro i saw you in my dreams i met you and i was asking you python question about open cv i think you were my teacher i wish i can met you in real life you help me i lot you are great

alldaypancakes
Автор

Hello! If I want the system to print the name of the detected object, what command would you suggest? Thank you for the video by the way!!

kurtroyales
Автор

Hi someone know how to transform the thinks the raspberry find to audio??

whrjieb
Автор

Hey Paul,
i am facing problems as soon as i connect the USB webcam. If i run the script without connecting the USB webcam it runs normaly and i can interrupt the program with the key 'q'. Running the script with the USB webcam connected shows the frames but it freezes the mouse and keyboard. im not able to quit the script as long as the USB webcam is connected.
I did a little search and found it "sudo setpci -s 01:00.0 0xD4.B=0x41" as Bugfix. But it didn't worked for me. The same occurs if i try to run the script with the USB webcam. Frames are shown but keyboard and mouse freeze.

Could you please give a hint? Thx.

kalagecko