예제 #1
0
 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()
예제 #2
0
 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()
예제 #3
0
 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()
예제 #4
0
 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()
예제 #5
0
 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()
예제 #6
0
 def __call__(self, frame, camera: Camera):
     """
     finds all instances of the object in the frame
     :param frame:
     :param camera:
     :return:
     """
     raise AbstractMethodCallingException()
예제 #7
0
 def height(self) -> int:
     """
     :return: the height of a frame read from this camera
     """
     raise AbstractMethodCallingException()
예제 #8
0
 def width(self) -> int:
     """
     :return: the width of a frame read from this camera
     """
     raise AbstractMethodCallingException()
예제 #9
0
 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()
예제 #10
0
 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()
예제 #11
0
 def release(self):
     """
     closes the handle to this camera, if it is not necessary please override this method to a black method
     """
     raise AbstractMethodCallingException()
예제 #12
0
 def _close(self):
     raise AbstractMethodCallingException()
예제 #13
0
 def _open(self):
     raise AbstractMethodCallingException()
예제 #14
0
 def send_frame(self, frame):
     """
     sends the given frame to the stream receiver
     :param frame: the frame to send
     """
     raise AbstractMethodCallingException()
예제 #15
0
 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()