How To Run TensorFlow Lite on Raspberry Pi for Object Detection

preview_player
Показать описание
TensorFlow Lite is a framework for running lightweight machine learning models, and it's perfect for low-power devices like the Raspberry Pi! This video shows how to set up TensorFlow Lite on the Raspberry Pi for running object detection models to locate and identify objects in real-time webcam feeds, videos, or images.

-- Affiliate Links --

-- Tutorial Links --

UPDATE (10/21/20): At 6:09 in the video, I instruct you to go to the TensorFlow Lite Object Detection Overview page and right click the "Download starter model" link to copy the link address. The page has changed since I made this video, and that link is no longer correct. Copy this link for downloading the starter model:

-- Music credit --

Creative Commons — Attribution-ShareAlike 3.0 Unported — CC BY-SA 3.0
Рекомендации по теме
Комментарии
Автор

Want to learn how to train your own TFLite model to run on the Raspberry Pi? I released a video giving step-by-step instructions for training TFLite object detection models inside your web browser using Google Colab and deploying it on the Pi. Check it out here!

EdjeElectronics
Автор

BroHam this is what I was looking for, something simple to catapult my curiosity to see if I like it !!! Excellent work my friend.

NoHack_Know_How
Автор

I find it absurd, but also a complete testament to what you have done here, that I was able to get this working in about 15 minutes on the first try. Thank you!!!!

AffectiveApe
Автор

I recently updated some of the setup scripts to work with newer versions of Raspberry Pi OS. (With Raspberry Pi and TensorFlow always releasing new versions of software, it's hard to stay on top of it all.) Everything should still work when following the instructions in this video. Please let me know if you run into any errors!

EdjeElectronics
Автор

Hey all! If you're using the Raspberry Pi OS Bullseye release (which is the latest version), there's a couple things you have to do to get it working with the Raspberry Pi Camera:
1. Make sure the OS is up-to-date by issuing "sudo apt update" and "sudo apt install" and then rebooting the Pi
2. Open a terminal, enter "sudo raspi-config", go to the "Interface Options" menu, then go to the "Legacy Camera" option and enable it. Then, reboot the Pi (again).
3. Run the TFLite_detection_webcam.py script as described in this video.
Note: You only need to do these steps if you're using a Raspberry Pi Camera (HQ, v1, or v2). You don't need to do them if you're using a USB webcam. Also, you don't need to do them if you're using the Stretch or Buster OS releases.

EdjeElectronics
Автор

9:49 nice acoustic person/backpack you've got there xP

Koi
Автор

Great video. For those looking to do this and get a higher FPS rate try using the pi camera connection instead of USB. The actual connection on the board itself will use less power and will have lower latency plus it goes directly to the GPU which is what you want for object detection. I haven’t tested this with TF Lite but the results are dramatic when running OpenCV

michaelharris
Автор

Dude! It worked!!! Thanks so much. I tried one of your older videos but had no luck so I'm pumped to have something that finally runs!

ww
Автор

Amazing thing done on the Raspberry Pi, Sir. All this while I thought Tensorflow would never work properly on the Pi. But this video helped a lot, Sir. Please keep geeking Sir. :)

jonathangerard
Автор

Thank you so much, I used your older guide for Tensorflow with SSDLite before, and now you release this. Thank you!

tbx
Автор

So excited. I've been looking for a light weight model to put onto a pi in a RC car - this guide was straight forward, you've put a lot of hardwork in getting everything done, and to see it in action is amazing. Looking for that next video about what will speed up the FPS! Thanks man!

crookedikon
Автор

This is super. very methodical and complete video. worked perfectly.

koustubhkashalkar
Автор

No joke, I actually love you, I've been looking everywhere for a video like this!

KowPlayzMinecraft
Автор

Oh Man, that's a really great video!
I definitively have to try this !
Thanks for the great work.

omarcruz
Автор

Thank you so much for this guide, i was strunggling a lot with the object detection application until i found your guide :)

alldudu
Автор

Me and my team tried using a diffrent software and a pi 3 for object detection and it was hell. we only got results every 8 seconds and this was on a moving drone ship so by the time it detected what it had to it was already miles away lol. The detection speed in this is amazing.

barsgecgil
Автор

This was my first click researching a project and I live on one of the cross streets shown in the beginning of the video. So random! Helpful video too.

villagegreenpreservation
Автор

I created a Google Colab notebook for making your own TensorFlow Lite model with custom data! You can train, convert, and export a TFLite SSD-MobileNet model (or EfficientDet), and then download it to your Raspberry Pi and use as shown in this video. I'm still working on the video that walks through the Colab notebook, but please try it out if you're interested!

EdjeElectronics
Автор

Your tutorials are good for beginners, please keep doing them :)

MrSpaceboyy
Автор

Great video! Definitely subscribing for more. I already have the coral device's so I can't wait to see what you do with them.

JoshuaSeagroves