timestamp provider import
This commit is contained in:
@@ -12,7 +12,7 @@ from mediapipe.tasks.python.core.base_options import BaseOptions
|
||||
from typing import List, Tuple
|
||||
# Import new types
|
||||
from ..types import FaceDetectionResult, BoundingBox, FaceKeypoint
|
||||
from ..utils.timestamp_provider import TimestampProvider # Import from utils
|
||||
from ...utils.timing import TimestampProvider # Import from utils
|
||||
|
||||
class FaceDetector:
|
||||
"""Detects faces in an image using MediaPipe FaceDetector."""
|
||||
|
||||
@@ -7,7 +7,7 @@ from mediapipe.tasks.python.core.base_options import BaseOptions
|
||||
from typing import List, Tuple, Optional, Dict
|
||||
# Import new types
|
||||
from ..types import LandmarkPoint, FaceLandmarksResult
|
||||
from ..utils.timestamp_provider import TimestampProvider # Import TimestampProvider
|
||||
from ...utils.timing import TimestampProvider # Import TimestampProvider
|
||||
|
||||
class FaceLandmarkDetector:
|
||||
"""Detects face landmarks and blendshapes using MediaPipe FaceLandmarker."""
|
||||
|
||||
@@ -4,7 +4,7 @@ import torch
|
||||
from mediapipe.tasks import python
|
||||
from mediapipe.tasks.python import vision
|
||||
from typing import List, Optional
|
||||
from ..utils.timestamp_provider import TimestampProvider
|
||||
from ...utils.timing import TimestampProvider
|
||||
|
||||
class FaceStylizer:
|
||||
"""Applies stylization to faces using MediaPipe FaceStylizer."""
|
||||
|
||||
@@ -7,7 +7,7 @@ from mediapipe.tasks.python.core.base_options import BaseOptions
|
||||
from typing import List
|
||||
# Import new types
|
||||
from ..types import GestureRecognitionResult, GestureCategory
|
||||
from ..utils.timestamp_provider import TimestampProvider # Import TimestampProvider
|
||||
from ...utils.timing import TimestampProvider # Import TimestampProvider
|
||||
|
||||
class GestureRecognizer:
|
||||
"""Recognizes hand gestures using MediaPipe GestureRecognizer."""
|
||||
|
||||
@@ -7,7 +7,7 @@ from mediapipe.tasks.python.core.base_options import BaseOptions
|
||||
from typing import List, Tuple, Optional
|
||||
# Import new types
|
||||
from ..types import LandmarkPoint, HandLandmarksResult
|
||||
from ..utils.timestamp_provider import TimestampProvider # Import TimestampProvider
|
||||
from ...utils.timing import TimestampProvider # Import TimestampProvider
|
||||
|
||||
class HandLandmarkDetector:
|
||||
"""Detects hand landmarks using MediaPipe HandLandmarker."""
|
||||
|
||||
Reference in New Issue
Block a user