workoutwizard / fake_objects.py
anony-mouse1
first commit after files upload
1129dfa
raw
history blame
447 Bytes
"""
Picklable objects to imitate the result object of pose estimation
so that the results can be passed over processes through multiprocessing.Pipe.
"""
from typing import NamedTuple, List
class FakeLandmarkObject(NamedTuple):
x: float
y: float
z: float
visibility: bool
class FakeLandmarksObject(NamedTuple):
landmark: List[FakeLandmarkObject]
class FakeResultObject(NamedTuple):
pose_landmarks: FakeLandmarksObject