Welcome to Synthiam!

Program robots using technologies created by 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
Resolved Resolved by DJ Sures!

If Detect Face Then Do Something

Hello,

Using the scripts, what is the syntax for detecting a face. For example I want the code to do:

if (a face is detected)
{
// Do some code here
}

How is this possible?

AI Support Bot
Related Content
Synthiam
PRO
Synthiam
#1  
yeah that's real easy:)

You have a few ways of doing it... I would recommend using the "On Tracking Start" within the Camera Control

1) Load ARC

2) Press Project from the top menu

3) Press "Add Control"

4) Select "Camera" tab

5) Add "Camera Device"

6) Press the little silver gear in the Bottom Corner of the Camera Control

7) Now a config menu will load

8) Press "Scripts" tab in the config menu

9) Press the Pencil beside the "Tracking Start". Optionally, I recommend hovering over the "Question Mark" to read the details of that feature. There are hundreds of question marks around the software. Hover your mouse over them to read.

Code:


IF ($CameraTrackingType = "Face")
Say("I see you!")
ELSE
say("I see a $CameraTrackingType")
ENDIF


Example project: Camera-ReactToSpecificTrackingType.EZB
PRO
Synthiam
#2  
PS, can you set this issue as resolved?:) Give me some cred! You'll be the first to try out the new posting assistance option
#3  
Ah sweet! A new forum feature to come!
#4  
Haha just noticed the options, thanks DJ!
#5  
I checked the forum as resolved by DJ, I am not sure if it worked.
PRO
Synthiam
#6  
Feroze, you need to select the persons' username who resolved the issue. Then write a short post saying thanks. You will see an error message in red letters that you can't miss if there is something not right.

the letters are really red. error messages are mostly always in red. You'll see the red errors beside the Reply and Cancel button.

Try again let's see if it works

Also, press the Question Mark for instructions and more details. There will be many more question marks around the website with more information to help.
#7  
Alright lets see if it works, I thought I did that... thanks!