I’ve got an EZ-InMoov Robot Head on an EZ-B over WiFi with a Logitech C920 feeding the Camera Device skill. Horizontal (pan) servo on D0, vertical (tilt) on D1, limits set 30-150, horizontal inverted, and servo speed at 2 so it doesn’t whip around. I added the Tiny Yolo2 skill, confirmed the model loads, set it Active, and I can see detections (mostly "person" around 0.6-0.8 confidence). When I enable servo tracking in the Camera Device, the head will follow but it jitters and hunts as the YOLO box wiggles frame-to-frame, and if there are two people or other objects (phone/chair) it rapidly switches targets.
What I want: only track the highest-confidence "person," add a small deadband so it doesn’t react to tiny box shifts, and if no person is seen for ~1s, return to neutral. I tried lowering camera resolution from 640x480 to 320x240, reducing servo speed, tightening servo limits, and setting Tiny Yolo2’s filter list to just "person," but the head still twitches and sometimes locks onto other classes. I also experimented with Camera Device scripts: On Tracking Start and On Tracking End. Ideally I’d gate servo tracking by class+confidence, and do a simple debounce before moving. I wasn’t sure of the right ControlCommand calls to toggle tracking from script; I tried something like:
# In Camera Device On Tracking Start
if ($CameraObjectName = "person" and $CameraObjectConfidence > 0.6)
ControlCommand("Camera Device", "ServoTrackingOn")
else
ControlCommand("Camera Device", "ServoTrackingOff")
endif
Is there a recommended way in ARC to have Tiny Yolo2 drive only the InMoov head servos toward the highest-confidence "person" with a pixel deadband and short debounce, and what are the correct ControlCommand names (or variables) to enable/disable camera servo tracking from script while filtering by class and confidence?

Yes - the recommended ARC way is not to toggle servo tracking on/off inside the tracking callback the way you’re trying to do it.
That approach tends to create exactly the behavior you’re seeing: hunting, target flipping, and twitching. In ARC, the better pattern is:
Servo.setPosition()For this kind of "track the best person only" behavior, scripted control is much more stable than relying on the built-in servo tracking alone.
Important correction
These are not the right ControlCommands:
The Camera Device uses commands like:
CameraServoTrackEnableCameraServoTrackDisableCameraServoTrackToggleAlso, you can target the Camera skill by its exact skill name, so make sure the name in
ControlCommand()matches the robot skill title exactly.Reference:
Best practice for your goal
1) Turn off Camera Device servo tracking
Use the Camera Device for detection only.
Then create a separate JavaScript or Python script to drive D0 and D1.
That gives you full control over:
2) Use a deadband on the center point
If the target is only drifting a few pixels, don’t move the servos.
For example:
(160, 120)20 pxhorizontally and15 pxverticallyOnly move if the target center is outside that zone.
3) Track the highest-confidence person
If Tiny Yolo2 is populating arrays, use the object arrays and choose the best
personresult above your confidence threshold.Since the camera skill exposes arrays like:
$CameraObjectNameArray$CameraObjectConfidenceArray$CameraObjectCenterXArray$CameraObjectCenterYArray$CameraObjectCountyou can scan all detections and pick the best
person.4) Return to neutral after no person for 1 second
Use a timestamp variable and if no valid person is detected for 1000 ms, move servos back to center.
Example JavaScript approach
Put this in a script skill or in a timer-based script that runs repeatedly:
Why this works better
This avoids the two biggest causes of jitter:
You get to smooth the motion in software instead of letting every detection shift directly drive the servos.
If you still want to toggle tracking from script
Use the proper command names:
But again, for your use case, I would not do that repeatedly in response to detections. That’s the unstable part.
Even better: add hysteresis
A stronger version of the deadband is:
That prevents "oscillating on the edge."
One more thing
If Tiny Yolo2 is still "switching classes," make sure you’re not relying on the camera’s generic servo tracking reaction mode. That mode reacts to whatever the camera tracking system considers the active object. If you want only
person, then the script should be the decision-maker.Tiny Yolo2 docs:
Camera Device docs:
I’d recommend this setup for your InMoov head
If you want, I can write you a clean ARC JavaScript script specifically for the EZ-InMoov head that does all of this with:
personselectionAlso, what’s your bigger goal here - just single-person head tracking, or do you want the head to track the closest person and ignore everyone else?