harmoni_fer.fer_service

Module Contents

Classes

FERDetector

Face expression recognition detector based off of FaceChannels

Functions

main()

class harmoni_fer.fer_service.FERDetector(name, param, detector_threshold=0)

Bases: harmoni_common_lib.service_manager.HarmoniServiceManager

Face expression recognition detector based off of FaceChannels :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(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()

Will interrupt the long running action

Raises:

NotImplementedError – To be used, this function should be overwritten by the child class.

pause()

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.

_facechannel_detect_callback(image)

Uses image to detect and publish face info. :param image: the image we want to run face detection on. :type image: Image

harmoni_fer.fer_service.main()