
    9i3$                     ~    S SK rSSKJr  SSSSS.S jrSSSS.S jrSSSS.S jrSSSS	.S
 jrSSSSS.S jr/ SQr	g)    N   )imopen)indexplugin	extensionformat_hintc                    SUUUS.nUnUb  XS'   [        U S40 UD6 n[        R                  " UR                  " S0 UD65      sSSS5        $ ! , (       d  f       g= f)a  Read an ndimage from a URI.

Opens the given URI and reads an ndimage from it. The exact behavior
depends on both the file type and plugin used to open the file. To learn
about the exact behavior, check the documentation of the relevant plugin.
Typically, imread attempts to read all data stored in the URI.

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.
index : {int, Ellipsis, None}
    If the ImageResource contains multiple ndimages, and index is an
    integer, select the index-th ndimage from among them and return it. If
    index is an ellipsis (...), read all ndimages in the file and stack them
    along a new batch dimension. If index is None, let the plugin decide.
plugin : {str, None}
    The plugin to use. If set to None (default) imread will perform a
    search for a matching plugin. If not None, this takes priority over
    the provided format hint  (if present).
extension : str
    If not None, treat the provided ImageResource as if it had the given
    extension. This affects the order in which backends are considered.
format_hint : str
    Deprecated. Use `extension` instead.
**kwargs :
    Additional keyword arguments will be passed to the plugin's read call.

Returns
-------
image : ndimage
    The ndimage located at the given URI.
Flegacy_moder   r   r   Nr   r )r   npasarrayread)	urir   r   r   r   kwargsplugin_kwargscall_kwargsimg_files	            J/var/www/html/land-doc-ocr/venv/lib/python3.13/site-packages/imageio/v3.pyimreadr      sb    J "	M K$G	S	*M	*hzz(--6+67 
+	*	*s   &A
A)r   r   r   c          	   +      #    [        U SSUUUS9 nUR                  " S0 UD6 H  n[        R                  " U5      v   M     SSS5        g! , (       d  f       g= f7f)a'  Read a sequence of ndimages from a URI.

Returns an iterable that yields ndimages from the given URI. The exact
behavior depends on both, the file type and plugin used to open the file.
To learn about the exact behavior, check the documentation of the relevant
plugin.

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.
plugin : {str, None}
    The plugin to use. If set to None (default) imiter will perform a
    search for a matching plugin. If not None, this takes priority over
    the provided format hint (if present).
extension : str
    If not None, treat the provided ImageResource as if it had the given
    extension. This affects the order in which backends are considered.
format_hint : str
    Deprecated. Use `extension` instead.
**kwargs :
    Additional keyword arguments will be passed to the plugin's ``iter``
    call.

Yields
------
image : ndimage
    The next ndimage located at the given URI.

r   Fr
   Nr   )r   iterr   r   )r   r   r   r   r   r   images          r   imiterr   9   s]     B 

 
]],V,E **U## -
 
 
s   A2A	A
AAc          	      ~    [        U SSUUUS9 nUR                  " U40 UD6nSSS5        U$ ! , (       d  f       W$ = f)a  Write an ndimage to the given URI.

The exact behavior depends on the file type and plugin used. To learn about
the exact behavior, check the documentation of the relevant plugin.

Parameters
----------
uri : {str, pathlib.Path, bytes, file}
    The resource to save the image to, e.g. a filename, pathlib.Path,
    http address or file object, check the docs for more info.
image : np.ndarray
    The image to write to disk.
plugin : {str, None}
    The plugin to use. If set to None (default) imwrite will perform a
    search for a matching plugin. If not None, this takes priority over
    the provided format hint (if present).
extension : str
    If not None, treat the provided ImageResource as if it had the given
    extension. This affects the order in which backends are considered, and
    may also influence the format used when encoding.
format_hint : str
    Deprecated. Use `extension` instead.
**kwargs :
    Additional keyword arguments will be passed to the plugin's ``write``
    call.

Returns
-------
encoded_image : None or Bytes
    Returns ``None`` in all cases, except when ``uri`` is set to ``<bytes>``.
    In this case it returns the encoded ndimage as a bytes string.

wFr
   N)r   write)r   r   r   r   r   r   r   encodeds           r   imwriter    h   sU    F 

 
..1&1
 N
 
 Ns   -
<)r   r   r   c                    SX#S.nUnUb  XS'   [        U S40 UD6 nUR                  " S0 UD6nSSS5        U$ ! , (       d  f       W$ = f)ae  Read standardized metadata.

Opens the given URI and reads the properties of an ndimage from it. The
properties represent standardized metadata. This means that they will have
the same name regardless of the format being read or plugin/backend being
used. Further, any field will be, where possible, populated with a sensible
default (may be `None`) if the ImageResource does not declare a value in its
metadata.

Parameters
----------
index : int
    If the ImageResource contains multiple ndimages, and index is an
    integer, select the index-th ndimage from among them and return its
    properties. If index is an ellipsis (...), read all ndimages in the file
    and stack them along a new batch dimension and return their properties.
    If index is None, let the plugin decide.
plugin : {str, None}
    The plugin to be used. If None, performs a search for a matching
    plugin.
extension : str
    If not None, treat the provided ImageResource as if it had the given
    extension. This affects the order in which backends are considered.
**kwargs :
    Additional keyword arguments will be passed to the plugin's ``properties``
    call.

Returns
-------
properties : ImageProperties
    A dataclass filled with standardized image metadata.

Notes
-----
Where possible, this will avoid loading pixel data.

See Also
--------
imageio.core.v3_plugin_api.ImageProperties

Fr   r   r   Nr   r   r   )r   
properties)	r   r   r   r   r   r   r   r   r#   s	            r   impropsr$      sd    V %*VTMK$G	S	*M	*h((7;7
 
+  
+	* s	   9
AT)r   r   r   exclude_appliedc                    SX#S.nUnXGS'   Ub  XS'   [        U S40 UD6 nUR                  " S0 UD6n	SSS5        U	$ ! , (       d  f       W	$ = f)a`  Read format-specific metadata.

Opens the given URI and reads metadata for an ndimage from it. The contents
of the returned metadata dictionary is specific to both the image format and
plugin used to open the ImageResource. To learn about the exact behavior,
check the documentation of the relevant plugin. Typically, immeta returns a
dictionary specific to the image format, where keys match metadata field
names and values are a field's contents.

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.
index : {int, None}
    If the ImageResource contains multiple ndimages, and index is an
    integer, select the index-th ndimage from among them and return its
    metadata. If index is an ellipsis (...), return global metadata. If
    index is None, let the plugin decide the default.
plugin : {str, None}
    The plugin to be used. If None (default), performs a search for a
    matching plugin.
extension : str
    If not None, treat the provided ImageResource as if it had the given
    extension. This affects the order in which backends are considered.
**kwargs :
    Additional keyword arguments will be passed to the plugin's metadata
    method.

Returns
-------
image : ndimage
    The ndimage located at the given URI.

Fr"   r%   Nr   r   r   )r   metadata)
r   r   r   r   r%   r   r   r   r   r'   s
             r   immetar(      sk    N %*VTMK%4!"$G	S	*M	*h$$3{3 
+ O 
+	* Os	   =
A)r   r   r    r   r$   r(   )
numpyr   core.imopenr   r   r   r    r$   r(   __all__r       r   <module>r-      sb      dd 08f $D ,$^ #'$D -` tt 4p ttT1h Ir,   