Create fake_object.py
Browse files1234567891011121314151617181920"""Picklable objects to imitate the result object of pose estimationso 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: FakeLandmarksObjectfake_object.pyAdded+20