harmoni_face.face_client

Module Contents

Classes

Face

class harmoni_face.face_client.Face(name, instance_id, param)
setup_ros(self)

Setting up and initializing ros topic

setup_face(self)

Setup the face

send_face_request(self)

Send the request to the web page

face_sequential_request(self, data)

[summary]

Parameters

data ([json]) – string of array of this object: start: time:

Returns

True if facial expressions and/or action units were detected and acted, False if no facial expression or action units were found

Return type

face_bool (bool)

_get_facial_expressions_list(self)

Get facial expression list from the resource file

_get_facial_expression_data(self, data)
_get_aus_data(self, data)

Get the validated data of the face

_get_face_data(self, data)

Get data for the face service: Action Units and Facial Expressions

Parameters

data ([str]) – json of data for the face start: time: type:

Returns

true if a facial expression exists, false if not face_expressions (list): array of facial expressions

Return type

face_expr_bool(bool)