16 lines
702 B
Python
16 lines
702 B
Python
"""Hailo yolov8s_pose HEF 어댑터 (실장비). PosePort 구현.
|
|
개발 PC에선 인스턴스화 불가(hailort 부재). Pi에서 HailoRT로 실제 추론 배선."""
|
|
|
|
from edge.models import Person, BBox, Keypoint
|
|
|
|
|
|
class HailoPoseAdapter:
|
|
def __init__(self, hef_path: str):
|
|
self.hef_path = hef_path
|
|
# 실장비 배선 지점: HailoRT VDevice/InferModel 로드, yolov8s_pose 후처리.
|
|
# 참고: hailo-rpi5-examples pose 파이프라인 (MIT).
|
|
raise NotImplementedError("실장비 전용: HailoRT 배선 필요")
|
|
|
|
def infer(self, frame) -> list:
|
|
# frame(640x640 RGB) -> yolov8s_pose -> list[Person(bbox, 17 keypoints)]
|
|
raise NotImplementedError
|