harmoni_face.face_service¶
Module Contents¶
Classes¶
Nose service |
|
Eyes service |
|
Mouth service |
Functions¶
|
Set names, collect params, and give service to server |
- class harmoni_face.face_service.NoseService(name, param_nose, face)¶
Bases:
harmoni_common_lib.service_manager.HarmoniServiceManagerNose service
- do(self, data)¶
Do expression of nose in web face
- Parameters
data ([str]) – stringified json from tts results
- Returns
whether SUCCESS of FAIL message (str): result message
- Return type
response (int)
- send_face_nose_request(self)¶
Send the request to the web page
- class harmoni_face.face_service.EyesService(name, param_eyes, face)¶
Bases:
harmoni_common_lib.service_manager.HarmoniServiceManagerEyes service
- do(self, data)¶
Do expression of eyes in web face
- Parameters
data ([str]) – stringified json from tts results
- Returns
whether SUCCESS of FAIL message (str): result message
- Return type
response (int)
- send_face_eyes_request(self)¶
Send the request to the web page
- _get_gaze_data(self, data)¶
Get target gaze data
- class harmoni_face.face_service.MouthService(name, param_mouth, face)¶
Bases:
harmoni_common_lib.service_manager.HarmoniServiceManagerMouth service
- do(self, data)¶
Do expression in web face
- Parameters
data ([str]) – stringified json from tts results
- Returns
whether SUCCESS of FAIL message (str): result message
- Return type
response (int)
- send_face_mouth_request(self)¶
Send the request to the web page
- _get_viseme_data(self, data)¶
Get the validated data of the face
- harmoni_face.face_service.main()¶
Set names, collect params, and give service to server