Australia
Asked — Edited

Facial Tracking From SDK

Hey DJ,

I was wondering how to call on facial tracking from the SDK (in either VB or C#)?

Thanks mate,

thomas


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

Norway
#1  

Dunno about facial tracking, but color tracking uses EZ_B.Camera.ColorEnum

Then you can use:

if (_ezb.IsConnected) {

    int position = _ezb.Servo.GetServoPosition(Servo.ServoPortEnum.D12);

    if (objectLocation.horizontalLocation == ObjectLocation.HorizontalLocationEnum.Left)
      position++;
    else if (objectLocation.horizontalLocation == ObjectLocation.HorizontalLocationEnum.Right)
      position--;

    _ezb.Servo.SetServoPosition(Servo.ServoPortEnum.D12, position);
  }

Take a look at the tutorial 11 from the SDK *C#

  • Mix3rn
Australia
#2  

Thanks for the reply Mix3rn - your example and the tutorial are great for colour tracking. However, I am still very interested in the facial tracking that DJ uses in his latest WALL-E robot and ARC deployment, only again within an SDK framework... Will we have to wait until the latest build of the SDK?

Thanks again, thomas

PRO
Synthiam
#3  

you know what? I think the SDK may not contain the facial tracking. Let me update the SDK for you. The new version will be 2011.09.26.00

Australia
#4  

Sweet - thanks mate. I'll try to put it to good use :)

PRO
Synthiam
#5  

Yah! Don't forget to share your awesomeness:D