Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous 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


ARC Pro

Upgrade to ARC Pro

Your robot can be more than a simple automated machine with the power of ARC Pro!

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