AI Robot: Object Tracking | Object Following | TensorFlow Lite on Raspberry Pi

  Рет қаралды 32,270

Jitesh helloworld

Jitesh helloworld

Күн бұрын

This AI Robot performs object tracking using a Machine Learning model 'MobileNet SSD v1 (COCO)'. Once the object is detected, it follows it and manoeuvres itself to get the object in the center of frame. While the robot is tracking / following the object, working of tracking algorithm and Robot's view can be accessed on a browser.
TensorFlow Lite Python APIs are used to implement Object Detection and Tracking. OpenCV is used for generating Robot's view with information overlay. FLASK is used for streaming the camera view (or Robot's view) over LAN.
#Robotics #ObjectTracking #RaspberryPi
Source Code:-
github.com/jit...
More Projects 👇👇
***** Robotics: Level 1 *****
👉 Making of Web-based Raspberry Pi Robot
• How to build a Raspber...
***** Robotics: Level 2 *****
👉 Interfacing Camera with Raspberry Pi robot and Creation of Web Control panel
• Raspberry Pi Robotics:...
👉 Interfacing Ultrasonic Range Sensor with Raspberry Pi robot | obstacle avoidance robot
• Robotics: Ultrasonic D...
👉 The speaking Raspberry Pi robot | Text to speech through audio port
• Raspberry Pi speaking ...
***** Robotics: Level 3 *****
👉 Mobile Phone Accelerometer controlled Raspberry Pi robot | Javascript hardware control
• Raspberry Pi Robot: Sm...
👉 Controlling Raspberry Pi robot through voice commands | Javascript Web Speech API | Speech Recognition
• Robotics: Controlling ...
***** Robotics: Level 4 *****
👉 Teachable Machine: Gesture controlled Raspberry Pi robot | Export Machine Learning model of Teachable machine
• Teachable Machine ML M...
👉 Image Classification using Pre-trained Machine Learning model MobileNet V1 | TensorFlow Lite on Raspberry Pi
• TensorFolw Lite on Ras...
👉 AI Robotics: Object Detection and alert generation on remote Web Panel | TensorFlow Lite & COCO image model
• AI Robot: Object detec...
👉 AI Robotics: Object Tracking | Object following robot | TensorFlow Lite
• AI Robot: Object Track...
***** Home Automation *****
👉 Smart Water Tank: Water Level measurement using Ultrasonic Distance Sensor and Real-time online monitoring
• IOT Project: Smart Wat...
👉 IOT Project: Raspberry Pi GPIO controls over wifi
• IOT Project: Raspberry...

Пікірлер: 74
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Replicate this Robot's software on your Raspberry Pi using the bash script provided here:- helloworld.co.in/earthrover/ Hardware Connections and Software Features:- helloworld.co.in/earthrover/readme/
@cristianooliveiradesouza3539
@cristianooliveiradesouza3539 3 жыл бұрын
Excellent project, it's a good idea for experiments students of tech high school, I will to make with my students. Congratulations !
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Please do. Thankyou very much 😊
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Hi Cristiano, you may find it useful kzbin.info/www/bejne/ioSziKWrlr12oqc
@giovannirota3850
@giovannirota3850 2 ай бұрын
Spettacolare ...................
@giovannirota3850
@giovannirota3850 2 ай бұрын
Complimenti ottimo lavoro.
@funnydhopadaho5394
@funnydhopadaho5394 3 жыл бұрын
Fine robots You are great man
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Thanks.
@anjithaj8581
@anjithaj8581 5 ай бұрын
Respected Sir, Respected Sir, First of all your tutorial is awesome. It is working good. But when I try to replace mobilenet_ssd_v2_coco_quant_postprocess.tflite with my custom trained model for fire detection, it is not working. Could you kindly assist me in resolving this problem? Your guidance is crucial to me.
@ssgoh4968
@ssgoh4968 2 жыл бұрын
Brilliant.
@jitesh_helloworld
@jitesh_helloworld 2 жыл бұрын
Thanks
@sanukk8082
@sanukk8082 6 ай бұрын
which motors ae used for moving the motor and what power source is given to the motor driver
@ajayghodke1464
@ajayghodke1464 5 ай бұрын
Hello Jitesh. In the install script, a lot of the dependencies fail to be fetched, as a result the webserver in the end doesn't work. Can you please help me this urgently. i have dropped you a mail as well. please check.
@riskyminor6775
@riskyminor6775 6 ай бұрын
I have a XGO lite CM4 robot dog with raspberry pi, does this code work on legged robots too? I'm still a beginner at python
@yogaaditya2797
@yogaaditya2797 2 жыл бұрын
Hello man, i tried ur code only object tracking(i comment the move_robot) i am using tflite model efficientNet1, and it's got error "only size-1 arrays can be converted to Python scalars" do u know how to solve that? and im planning to use intel ncs 2 for accelerate the fps (since google coral is out of stock in my country), what do you think? Thank you
@webdot564
@webdot564 11 ай бұрын
I already install everything.. previously i cam access earth rover control pannel..how can i go again this control pannel...i install everything last day
@avadhutkasekar9541
@avadhutkasekar9541 4 жыл бұрын
Nice 👍👍
@jitesh_helloworld
@jitesh_helloworld 4 жыл бұрын
Thanks 👍
@kzs985
@kzs985 3 жыл бұрын
I'm curious what's the capacity of the battery, and how long can it run with the pi and coral?
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
I have used a 10000 mAh Li-Polymer Power Bank to power up Raspberry Pi and Coral. It can conveniently last for 3-4 hours while running the ML model on Pi. I could be more but I didn't explore beyond 3-4 hours
@hchnnyl6936
@hchnnyl6936 6 ай бұрын
briliantttttt. can i get the source code for arduino microcontroller pls?
@marvelous0306
@marvelous0306 3 жыл бұрын
Very nice. I want to do this project again, but I have not synthesized the components yet. Can you give me the parts list? Thank you very much
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Thankyou. Pl go through these two articles. These articles cover the components involved in making this robot helloworld.co.in/article/basic-robotics-make-robot-raspberry-pi-web-controls helloworld.co.in/article/camera-robot-using-raspberry-pi-web-controlled-surveillance-robot
@marvelous0306
@marvelous0306 3 жыл бұрын
thank you so much
@miracletouch8214
@miracletouch8214 3 жыл бұрын
I'm trying to make a robot that can track my ball for football practice essentially I'm trying to make a robot defender but the problem is i barely know anything about robotics so for the object tracking is there a component that does the tracking
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Nice thought. In this project, the tracking is done by a custom python code that takes inputs from a Machine Learning Model. The model is responsible for identifying an object correctly and provide it's coordinates in a picture frame
@hamtigerb7849
@hamtigerb7849 Жыл бұрын
Where can I buy the coral accelerator from?
@kavitasbakery
@kavitasbakery Жыл бұрын
Nice Project👍💐. I need your help regarding the same. I have replicated your code. Everything works very well except Image Classification, Object Identification & Tracking, Human Following part of AI. I am using RPI 3b 1.2 without coral.
@proengeleceng6861
@proengeleceng6861 4 жыл бұрын
good project bro what microcontroller you used and can i use pic microcontroller with python code ? >>> thanks for sharing
@jitesh_helloworld
@jitesh_helloworld 4 жыл бұрын
Raspberry Pi single board computer is used in this project. The python code created for this project won't work on microcontroller. Any project that involves computer vision, ML and wireless networking would require a processor with suitable OS to run respective Python libraries. Microcontrollers don't have that capability as of now.
@ZuNunchaku
@ZuNunchaku Жыл бұрын
if there is multiple ball/objects how to select from following 1 object to another?
@jitesh_helloworld
@jitesh_helloworld Жыл бұрын
This code works with only one object. If more than one object is present then the one with higher confidence score will be selected to track.
@eliezerrovajurado5328
@eliezerrovajurado5328 3 жыл бұрын
Can i put multiple things there? so that i said, follow the person, car or an bycicle?
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Yes, you can. You need to specify the object name in following array in code:- arr_valid_objects=['person', 'bicycle' ] also, you need to modify the code a bit to generate forward/backward motion commands differently for large objects like these. I will soon be making a video on Human following robot and explain these modifications
@eliezerrovajurado5328
@eliezerrovajurado5328 3 жыл бұрын
@@jitesh_helloworld ok thanks. Yeah I only need to steer, forward and backward is doing a friend with arduino.
@eliezerrovajurado5328
@eliezerrovajurado5328 3 жыл бұрын
@@jitesh_helloworld one more question, in the link there are 2 codes which one do I need? I want to put it on my raspberry pi 4
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
'object_tracking.py' is the main file and it calls utility functions from 'common.py'.. You will need both. BTW here is the human following version.. Check it out kzbin.info/www/bejne/fYS8paFud9F6eKs
@eliezerrovajurado5328
@eliezerrovajurado5328 3 жыл бұрын
@@jitesh_helloworld ok thanks than i will look how it works. Thanks
@francopessina8193
@francopessina8193 2 жыл бұрын
Hola señor, ¿es posible adaptar la etapa de movimiento de 4 ruedas a una de 2 ruedas con una tercera rueda libre? Excelente project. Congrats. thank you
@francopessina8193
@francopessina8193 2 жыл бұрын
Hello sir, is it possible to adapt the 4-wheel movement stage to a 2-wheel with a third free wheel?
@jitesh_helloworld
@jitesh_helloworld 2 жыл бұрын
Yes. The robot you see in the video has only 2 wheels attached to the motors. The other 2 wheels are free..
@monstert2368
@monstert2368 3 жыл бұрын
I got an error "AttributeError: module 'util' has no attribute 'gpio'" Please help me fix it Can you give me the components of this project and how to connect Thanks very much !
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Hardware and connections helloworld.co.in/article/basic-robotics-make-robot-raspberry-pi-web-controls
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Try this kzbin.info/www/bejne/ioSziKWrlr12oqc
@rakshithreddy1092
@rakshithreddy1092 Жыл бұрын
Hello sir, how do i use this code for YOLO? Can you please help me out. Thanks.
@jitesh_helloworld
@jitesh_helloworld Жыл бұрын
This code makes use of a tensorflow lite object detection model. You need to see how can you convert your existing model to tflite version to use it with this code. Tensorflow official website can provide some lead
@eliezerrovajurado5328
@eliezerrovajurado5328 3 жыл бұрын
Does any one know how i get this coordinate Systeme on my Raspberry pi? Is ist in the Code or do i habe to install something?
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
It is in the code. the overlays on the camera frames are generated using OpenCV. See the function draw_overlays() in 'object_tracking.py' file
@robomatics697
@robomatics697 2 жыл бұрын
can i make this project without coral??
@jitesh_helloworld
@jitesh_helloworld 2 жыл бұрын
Yes you can, but for responsive tracking you need to process at least 10 frames per second. Which is only possible with coral
@HL_SAIRA
@HL_SAIRA 3 жыл бұрын
Does it follows only ball
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
The ML model has 90 objects. Ideally this code can track any of those. But due to the robot's camera height and tilt, it can follow small objects only. You just need to include the name of object in array 'valid_objects' .
@GuopyWorld
@GuopyWorld 3 жыл бұрын
Bro, I go through your your source code, but shows some attribute errors, what I have to do?? Please help me
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Hi. try to install the code using the method described at this link helloworld.co.in/earthrover/ It installs all the dependencies/packages & code automatically on your Raspberry Pi.
@GuopyWorld
@GuopyWorld 3 жыл бұрын
@@jitesh_helloworld hello bro, I have installed as you said, but at last for web page of control panel it shows page not found, please help me
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
It is a tested script and works as expected. Try to access the control panel locally on Raspberry Pi first. Open Chromium browser and type 127.0.0.1/earthrover. You should see the Panel.
@GuopyWorld
@GuopyWorld 3 жыл бұрын
@@jitesh_helloworld, 127.0.0.1/earthrover also shows error 404 not found message
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
Restart apache. See if it is installed or not. Otherwise run that bash script again.
@Mystogun14
@Mystogun14 3 жыл бұрын
May i have a look on your sources ?
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
The link of source code is there in description above.
@sumanthkota8267
@sumanthkota8267 3 жыл бұрын
I see there's a camera in the bot. Which camera is it?
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
The whole project is based on camera input.. Camera here is Pi Camera. It's a Raspberry Pi camera module 5 MP
@sumanthkota8267
@sumanthkota8267 3 жыл бұрын
@@jitesh_helloworld can we also run the code in pycharm on PC, there are few board specific libraries in the code, are there any methods to import them on PC?
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
I haven't tried that and not sure if it will work because some imported modules will work on Raspberry Pi only. So you should run this code on a Raspberry Pi only for the correct results.
@sumanthkota8267
@sumanthkota8267 3 жыл бұрын
@@jitesh_helloworld Thank you for this!
@krishnadathanph6127
@krishnadathanph6127 7 ай бұрын
Hello will it work on raspberry pi pico
@jitesh_helloworld
@jitesh_helloworld 7 ай бұрын
No. Pico is a microcontroller. We need a processor with os to run the code for this
@krishnadathanph6127
@krishnadathanph6127 7 ай бұрын
@@jitesh_helloworld can I use blob tracking method so will it run on pico w
@musicforsoul7441
@musicforsoul7441 3 жыл бұрын
Hello.bro i need your help
@jitesh_helloworld
@jitesh_helloworld 3 жыл бұрын
tell me. What help you require
@אביבכהן-ו3ס
@אביבכהן-ו3ס 3 жыл бұрын
@@jitesh_helloworld Traceback (most recent call last): File "/media/pi/FEF6-7799/human_following/human_follower2.py", line 183, in main() File "/media/pi/FEF6-7799/human_following/human_follower2.py", line 149, in main interpreter, labels =cm.load_model(model_dir,model_edgetpu,lbl,edgetpu) File "/media/pi/FEF6-7799/human_following/common.py", line 76, in load_model interpreter = make_interpreter_1(model_path) File "/media/pi/FEF6-7799/human_following/common.py", line 27, in make_interpreter_1 {'device': device[0]} if device else {}) File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 152, in load_delegate delegate = Delegate(library, options) File "/usr/lib/python3/dist-packages/tflite_runtime/interpreter.py", line 81, in __init__ self._library = ctypes.pydll.LoadLibrary(library) File "/usr/lib/python3.7/ctypes/__init__.py", line 434, in LoadLibrary return self._dlltype(name) File "/usr/lib/python3.7/ctypes/__init__.py", line 356, in __init__ self._handle = _dlopen(self._name, mode) OSError: libedgetpu.so.1: cannot open shared object file: No such file or directory
Teachable Machine ML Model on Raspberry Pi (Earth Rover #7)
5:17
Jitesh helloworld
Рет қаралды 10 М.
NEW Tesla Prototype LEAKED at WB Studios | This Design Is Weird
20:34
Teaching a Toddler Household Habits: Diaper Disposal & Potty Training #shorts
00:16
А ВЫ ЛЮБИТЕ ШКОЛУ?? #shorts
00:20
Паша Осадчий
Рет қаралды 6 МЛН
How Strong is Tin Foil? 💪
00:26
Preston
Рет қаралды 63 МЛН
У ГОРДЕЯ ПОЖАР в ОФИСЕ!
01:01
Дима Гордей
Рет қаралды 8 МЛН
Tensorflow Lite with Object Detection on Raspberry Pi!
11:31
Lazy Tech
Рет қаралды 23 М.
Object tracking with YOLOv8 using Jetson Nano
20:17
robot mania
Рет қаралды 18 М.
Machine Learning on Arduino Uno was a Good Idea
12:30
Nikodem Bartnik
Рет қаралды 299 М.
Can you chase a tennis ball with ROS?
28:24
Articulated Robotics
Рет қаралды 28 М.
[DEMO] Headshot Tracking || OpenCV | Arduino
1:56
Rizky Dermawan
Рет қаралды 763 М.
Teaching a Toddler Household Habits: Diaper Disposal & Potty Training #shorts
00:16