Co-authored-by: Remi <remi.cadene@huggingface.co> Co-authored-by: Remi Cadene <re.cadene@gmail.com>
12 lines
273 B
Python
12 lines
273 B
Python
from typing import Protocol
|
|
|
|
import numpy as np
|
|
|
|
|
|
# Defines a camera type
|
|
class Camera(Protocol):
|
|
def connect(self): ...
|
|
def read(self, temporary_color: str | None = None) -> np.ndarray: ...
|
|
def async_read(self) -> np.ndarray: ...
|
|
def disconnect(self): ...
|