scripts.speech_module
Author: Carmen Meinson
- class SpeechGesture(name: str, position_checker: Callable[[scripts.core.position.Position], bool], tracker: scripts.core.position_tracker.PositionTracker)
Bases:
scripts.core.gesture.Gesture
- update() bool
Records the current Position of the speech bodypart the speechGesture was created from.
- Returns
The current state of the Gesture
- Return type
bool
Authors: Samuel Emilolorun
- class SpeechLandmarkDetector
Bases:
scripts.core.module.LandmarkDetector
- ask_kita = None
- get_raw_data(raw_data: scripts.core.raw_data.RawData, image: numpy.ndarray) None
Adds current phrase to RawData Instance so that it can be passed to the position class :param raw_data: RawData instance to add the landmarks to :type raw_data: RawData :param image: Image to proccess with mediapipe and read the landmarks locations from :type image: ndarray
Authors: Carmen Meinson and Samuel Emilolorun
- class SpeechPosition(raw_data, used_primitives: Optional[Set[str]] = None)
Bases:
scripts.core.position.Position
- get_primitive(name: str) Optional[bool]
Returns the state of a primitive and none if name isn’t a primitive :param name: name of the primitive (e.g. “click”) :type name: str :return: state of primitive :rtype: Optional[bool]
- get_primitives_names() Set[str]
- Returns
Names of all primitives that are calcualted by the speech position class
- Return type
Set[str]
Authors: Samuel Emilolorun
- check_path(path)
- class Ask_KITA
Bases:
threading.Thread
- run()
Method representing the thread’s activity.
You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.
- end()
- get_is_running()
- connect_to_writer(writer)
- disconnect_from_writer()
Module contents
Authors: Samuel Emilolorun
- class SpeechModule
Bases:
scripts.core.module.Module
- reset() None
Resets all position trackers