Face tracking distance

I am using a pan/tilt servo control with the face tracking code. It only detects accurately up to 5ft. Is this a limitation for the camera? or how can I make it detect at further ranges?

Hi, yes, adjust the scale parameter. Basically, when the algorithm is running it’s resizing the detection window based on the scale parameter value: https://github.com/openmv/openmv/blob/master/src/omv/img/haar.c#L108

As you can see… if you make the scale value very close to 1.0 the algorithm will run very slowly but exhaustively. Make sure scale is > 1.0. So, try a scale value of like 1.1…