
    zh                    `    d Z ddlmZ ddlmZmZ ddlmZ 	 ddlZn# e	$ r dZY nw xY wd	dZ
dS )
z*Vision and face tracking utilities (stub).    )annotations)OptionalTuple)LOGGERNreturnOptional[Tuple[int, int]]c                    t           st          j        d           dS t          j        d          } |                                 st          j        d           dS |                                 \  }}|                                  |st          j        d           dS |j        dd         \  }}t          j	        d||           ||fS )zCapture a single frame and return its dimensions.

    This function serves as a lightweight self-test that the camera can be
    accessed. It returns the width and height if successful.
    zOpenCV not availableNr   zUnable to open camerazFailed to capture frame   zCaptured frame %sx%s)
cv2r   warningVideoCaptureisOpenederrorreadreleaseshapeinfo)capretframeheightwidths        /opt/SkullPi/vision.pycapture_framer      s      -...t

1

C<<>> ,---tJCKKMMM .///tKOMFE
K&v666&=    )r   r   )__doc__
__future__r   typingr   r   loggerr   r   	Exceptionr    r   r   <module>r"      s    0 0 " " " " " " " " " " " " " "      JJJJ   
CCC     s    ''