Try replacing the two lines at ~84 in detectors.py
if self.return_one:
self.detected[0] = detected[0]
with
if self.return_one:
width = detected[0][2]
height = detected[0][3]
for i in range(1,len(detected)):
if detected[i][2] > width and detected[i][3] > height:
detected[0] = detected[i]
width = detected[i][2]
height = detected[i][3]
self.detected[0] = detected[0]
This provides much more robust head tracking by always returning the single largest head in the image rather than the first head returned in the detector array. Makes the head detection more stable and may allow you to not have to use the 'S' key.
Try replacing the two lines at ~84 in detectors.py
with
This provides much more robust head tracking by always returning the single largest head in the image rather than the first head returned in the detector array. Makes the head detection more stable and may allow you to not have to use the 'S' key.
Thanks for releasing this.
Mike