dlib_service¶
Module Contents¶
Classes¶
Face detector based off of Dlib |
Attributes¶
- dlib_service.path¶
- dlib_service.using_kinetic¶
- class dlib_service.DlibFaceDetector(name, params, detector_threshold=0)¶
Bases:
harmoni_common_lib.service_manager.HarmoniServiceManagerFace detector based off of Dlib
- Parameters
detector_threshold (float) – Confidence threshold for faces. Positive values will return fewer detections, and negative values more detections. This value can be changed at any time with no major side-effects.
- start(self, rate=None)¶
- Parameters
rate (int) – How often the detector should run per second (Hz). Note that this rate should be limited by subscribed camera framerate. TODO: actually use this rate. Rate currently matches camera publish rate regardless of this setting
- stop(self)¶
Will interrupt the long running action
- Raises
NotImplementedError – To be used, this function should be overwritten by the child class.
- pause(self)¶
Will interrupt the long running action, preventing it from continuing until start is called again.
- Raises
NotImplementedError – To be used, this function should be overwritten by the child class.
- detect_callback(self, image)¶
Uses image to detect and publish face info.
- Parameters
image (Image) – the image we want to run face detection on.
- dlib_service.main()¶