Ë
    Eü´j  ã                   óþ   — d Z ddlmZ  ed«      ZddlZddlmZmZ  e«       Z	e	j                  ZddlmZ ddlmZ dd	lmZ dd
lmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZmZ mZ!m"Z"mZmZ ddlm#Z#m$Z$ dd„Zg d¢Z%y)a"  
Imageio is a Python library that provides an easy interface to read and
write a wide range of image data, including animated images, volumetric
data, and scientific formats. It is cross-platform, runs on Python 3.10+,
and is easy to install.

Main website: https://imageio.readthedocs.io/
é    )ÚversionÚimageioNé   )ÚFormatManagerÚRETURN_BYTES)Úv2)Úv3)Úplugins)Úconfig)ÚimreadÚmimreadÚvolreadÚmvolreadÚimwriteÚmimwriteÚvolwriteÚ	mvolwriteÚ
get_readerÚ
get_writerr   r   r   r   Úhelpr   r   )ÚimopenÚimiterc                 óV   — t        j                  dt        d¬«       t        | fd|i|¤ŽS )aX  imread(uri, format=None, **kwargs)

    Reads an image from the specified file. Returns a numpy array, which
    comes with a dict of meta data at its 'meta' attribute.

    Note that the image data is returned as-is, and may not always have
    a dtype of uint8 (and thus may differ from what e.g. PIL returns).

    Parameters
    ----------
    uri : {str, pathlib.Path, bytes, file}
        The resource to load the image from, e.g. a filename, pathlib.Path,
        http address or file object, see the docs for more info.
    format : str
        The format to use to read the file. By default imageio selects
        the appropriate for you based on the filename and its contents.
    kwargs : ...
        Further keyword arguments are passed to the reader. See :func:`.help`
        to see what arguments are available for a particular format.
    zäStarting with ImageIO v3 the behavior of this function will switch to that of iio.v3.imread. To keep the current behavior (and make this warning disappear) use `import imageio.v2 as imageio` or call `imageio.v2.imread` directly.é   )Ú
stacklevelÚformat)ÚwarningsÚwarnÚDeprecationWarningÚ	imread_v2)Úurir   Úkwargss      úN/root/workspace/ytshorts/venv/lib/python3.12/site-packages/imageio/__init__.pyr   r   F   s5   € ô, ‡M�Mð	Tô 	Øõô �SÑ2 Ð2¨6Ñ2Ð2ó    )r   r	   r   r
   r   r   r   r   r   r   r   r   r   r   r   ÚreadÚsaveÚimsaveÚmimsaveÚvolsaveÚmvolsaver   r   r   ÚformatsÚshow_formats)N)&Ú__doc__Úimportlib.metadatar   Úget_versionÚ__version__r   Úcorer   r   r+   Úshowr,   Ú r   r	   r
   r   r   r    r   r   r   r   r   r   r   r   r%   r   r&   r'   r(   r)   r*   r   r   r   Ú__all__© r$   r#   ú<module>r6      sn   ðñõ 6á˜)Ó$€ó ÷ .ñ ‹/€Ø�|‰|€å Ý Ý õ ÷÷ ÷ ÷ õ ÷*ó3òB�r$   