facenet_service

Module Contents

Classes

FacenetFaceDetector

Face detector based off of Facenet

Functions

main()

Attributes

path

using_kinetic

facenet_service.path
facenet_service.using_kinetic
class facenet_service.FacenetFaceDetector(name, param, detector_threshold=0)

Bases: harmoni_common_lib.service_manager.HarmoniServiceManager

Face detector based off of Facenet :param detector_threshold: 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='')
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. :param image: the image we want to run face detection on. :type image: Image

facenet_service.main()