Smart Variable Watcher icon Smart Variable Watcher — Efficient ARC Variable Watcher - lower CPU for large projects; slow initial array render but faster updates; shows name, type, value, length Try it →
Asked
Resolved Resolved by DJ Sures!
1 Participant
usb webcam only with resolution 320 x 240 by tracking face

Usb Webcam Only With Resolution 320 X 240 By Tracking Face

, I am testing a USB webcam connected to my PC. The face tracking feature only works with a resolution of 320 x 240. If I choose a higher resolution, such as 640 x 480 or above, it does not track faces. Is this normal behavior?

Interestingly, object tracking works well at higher resolutions.



Related Hardware (view all EZB hardware)
Roli Rover by EZ-Robot
Roli Rover with Synthiam ARCx: drive with live video, control arms, follow faces, patrol, and program with Blockly or Python
Wi-Fi / USB
Servos 24
Camera
Audio
UART 3
I2C
ADC 8
Digital 24

Related Robot Skills (view all robot skills)
Camera Source (Usb) by Synthiam Inc.
Publishes a camera feed as a named ARCx video source for face tracking, object tracking, recording, and autonomous AI.
Face Tracking by Synthiam Inc.
Detects faces in camera video, marks them, and tracks the largest face for servo tracking and presence detection

ARC Pro

Upgrade to ARC Pro

Synthiam ARC Pro is a new tool that will help unleash your creativity with programming robots in just seconds!

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#1  

Because there was no mention of the robot skill being used, @Athena went on a bit of a tangent trying to understand the question. I deleted her response. 

in the figure meeting the name of the robot skill. In this case, the robot skill is "camera device robot skill"

You’ll have to adjust the settings to fine tune for a different resolution in the camera device robot skill configuration. 

User-inserted image

  1. Load Button This button loads custom haar cascades (in Open CV Haar v1 XML format). You can download custom cascades from OpenCV on github.

  2. Minimum Size Drop-down This dropdown sets up the minimum size the detected face (in pixels) must be to register as a detection.

  3. Maximum Size Drop-down This dropdown sets up the maximum size the detected face (in pixels) will have to be to register as a detection.

  4. Minimum Detection Count Drop-down This dropdown sets the minimum of detected frames the face must present to register as a detection. There's more information on Face Tracking above.

This is from the camera device robot skill manual: https://synthiam.com/Support/Skills/Camera/Camera-Device?id=16120#advancedConfig

the face tracking uses the popular method of a haar cascade built into the camera device robot skill. Those settings help fine tune the haar identifier for cpu efficiency. But they need to be adjusted when a resolution changes.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#3  

I don’t know the exact values but I’m sure you could just increase the default values by the ratio difference. So 640x480 is double so maybe just double the value

Author Avatar
PRO
Germany
#4  

in the detection settings, the max value is 500. I gave a try yesterday , I tried the value and set up to 640x480, the face tracking has worked but  it is very slow.. better to use 320x240.i think a face detection requires more data volumes as for an object. this small ezb camera is enough to capture movement with a good light. I mean it is a camera robot not an hd-cam to make a movie! An advantage of the 640x480 resolution is a wider view angle,possibly better to follow  something:)