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:


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

With ARC Pro, your robot is not just a machine; it's your creative partner in the journey of technological exploration.

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


if ($CameraTrackingType == "Face")

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

Elseif ($cameraTrackingType == "Object")

say("Hello " + $CameraObjectName)

endif