workoutwizz / fake_objects.py
anony-mouse1
fixed person going out the frame issue
88baf09
Raw
History Blame Contribute Delete
449 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