def set_auto_exposure(self, auto: int or float or bool) -> bool: """ sets the camera's auto exposure :param auto: the new auto exposure :return: True on success, False on failure """ raise AbstractMethodCallingException()
def _show_frame(self, frame) -> bool: """ shows the frame :param frame: the frame to show :return: False if the window should be closed, True otherwise """ raise AbstractMethodCallingException()
def read(self, image=None): """ reads from the camera and returns a tuple of a boolean and the frame :param image: if not None, the frame will be read to this ndarray :return: a boolean indicating if the action was successful, and the frame if read was successful, otherwise None """ raise AbstractMethodCallingException()
def _set_height(self, height: int): """ unsafe set height supposed to be overridden and only used by rescale, resize and set_frame size methods never to be used by the programmer, only by the api :param height: new height """ raise AbstractMethodCallingException()
def _set_width(self, width: int): """ unsafe set width supposed to be overridden and only used by rescale, resize and set_frame size methods never to be used by the programmer, only by the api :param width: new width """ raise AbstractMethodCallingException()
def __call__(self, frame, camera: Camera): """ finds all instances of the object in the frame :param frame: :param camera: :return: """ raise AbstractMethodCallingException()
def height(self) -> int: """ :return: the height of a frame read from this camera """ raise AbstractMethodCallingException()
def width(self) -> int: """ :return: the width of a frame read from this camera """ raise AbstractMethodCallingException()
def data(self) -> CameraData: """ :return: this camera's constant descriptor (must be the real descriptor, can't be a copy) when the values of this descriptor are changed, the values of the real camera descriptor must also change """ raise AbstractMethodCallingException()
def is_opened(self) -> bool: """ checks if the camera can be read from :return: True if the camera can be read from, otherwise False """ raise AbstractMethodCallingException()
def release(self): """ closes the handle to this camera, if it is not necessary please override this method to a black method """ raise AbstractMethodCallingException()
def _close(self): raise AbstractMethodCallingException()
def _open(self): raise AbstractMethodCallingException()
def send_frame(self, frame): """ sends the given frame to the stream receiver :param frame: the frame to send """ raise AbstractMethodCallingException()
def get_frame(self) -> np.ndarray: """ reads a frame from the stream and returns in :returns: the frame read as a numpy array """ raise AbstractMethodCallingException()