Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.

Get Started
Asked — Edited

Objectdetect And Facedetect Together

Hello,


i have a short question if this is possible:


to explain want i want to do, this script i think eplains everything:

Code:


if ObjectDetect
Say ("Hallo" + $CameraObjectName)
endif




I want to run the face dectection and the object detection together. If a saved Object is detected the robot will say "Hello Object".

In the Moment i have it, that the Robot says to all detected Faces "Hello" (because i not gives a Object Variable) and if a object is detected He say "Hello Boris" for example. So i want that the face detection is running and if a object is detected he say "Hello Object".


So easy to do with:

"if ObjectDetect"



Boris

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
PRO
Synthiam
#1  
You have to also check for the type of method discovered. So if the detected type is an object, do something. If the detected type is a face, do something else.

Just check the detected type as well
#2  
@DJ


my question was more like, if somebody can tell me the correct lines for the Script.


RIght: if the detected type is a Object - the detected Object name is "Boris" - so do/say "Hello Boris"

BUt this please as a script.


;-)
PRO
Synthiam
#3  
This will help you... Add this to your Tracking Start in the camera control settings

Code:


if ($CameraTrackingType == "Face")

say("I see a stranger! Who are you")

Elseif ($cameraTrackingType == "Object")

say("Hello " + $CameraObjectName)

endif