PiCar-X Smart Robot is a wonderful product by SunFounder company. this Robot is based on Raspberry Pi SBC. I used Raspberry Pi 4 (4GB) for my project. you can see PiCar-X on this link. in this project we detect objects with PiCar-X. after that, smart robot says objects names using TTS ability. you can see full video tutorial below.
for object detection I used TensorFlow in Node-RED environment. you can see block diagram and UI below.
if we press "TAKE PICTURE" Button in browser, Raspberry Pi takes a picture and we can see picture in "object name" window, also we can see name of object in "object name" box. after that Node-RED sends name of object in string format to python script. and below python script converts text to speech using "Robot Hat" Hardware on top of Raspberry Pi.
import sys
from robot_hat import TTS
ttsbot = TTS()
if sys.argv[1]:
objectName = sys.argv[1]
ttsbot.say(f"this is {objectName}")
print(objectName)
for object detection in Node-RED, I used COCOSSD dataset.
All source codes are available in end of article.
Comments
Please log in or sign up to comment.