Ë
    \;j¦	  ã                   óH   — d Z ddlZ G d„ de«      Z G d„ de«      Zd„ Zd„ Zy)	z¦Base classes and functions used by all/most augmenters.

This module is planned to contain :class:`imgaug.augmenters.meta.Augmenter`
in the future.

Added in 0.4.0.

é    Nc                   ó   — e Zd ZdZy)Ú SuspiciousMultiImageShapeWarningz9Warning multi-image inputs that look like a single image.N©Ú__name__Ú
__module__Ú__qualname__Ú__doc__© ó    ú_G:\00. PROJECTS\API\Inventory\templateJSON\kerjaOCR\Lib\site-packages\imgaug/augmenters/base.pyr   r      s   „ ÚCr   r   c                   ó   — e Zd ZdZy)Ú!SuspiciousSingleImageShapeWarningz?Warning for single-image inputs that look like multiple images.Nr   r
   r   r   r   r      s   „ ÚIr   r   c                 óÌ   — | €y t        j                  | «      rL| j                  dk(  r<| j                  d   dv r*t        j                  d| j                  ›d�t
        ¬«       y y y y )Né   éÿÿÿÿ)é   r   ú$You provided a numpy array of shape aË   as a multi-image augmentation input, which was interpreted as (N, H, W). The last dimension however has value 1 or 3, which indicates that you provided a single image with shape (H, W, C) instead. If that is the case, you should use e.g. augmenter(image=<your input>) or augment_image(<your input>) -- note the singular 'image' instead of 'imageS'. Otherwise your single input image will be interpreted as multiple images of shape (H, W) during augmentation.©Úcategory)ÚiaÚis_np_arrayÚndimÚshapeÚwarnr   )Úimagess    r   Ú&_warn_on_suspicious_multi_image_shapesr      s`   € Ø€~Øô 
‡~�~�fÔØ�;‰;˜!Ò §¡¨RÑ 0°FÑ :Ü�GŠGð +1¯,«,ð	9ô :ö;ð !;Ðð r   c                 óÈ   — | €y | j                   dk(  rP| j                  d   dk\  r=| j                  dd dk7  r*t        j                  d| j                  ›d�t        ¬	«       y y y y )
Nr   r   é    r   é   )r   r   r   a’   as a single-image augmentation input, which was interpreted as (H, W, C). The last dimension however has a size of >=32, which indicates that you provided a multi-image array with shape (N, H, W) instead. If that is the case, you should use e.g. augmenter(imageS=<your input>) or augment_imageS(<your input>). Otherwise your multi-image input will be interpreted as a single image during augmentation.r   )r   r   r   r   r   )Úimages    r   Ú&_warn_on_suspicious_single_image_shaper!   )   sb   € Ø€}Øð
 ‡z�z�Q‚˜5Ÿ;™; r™?¨bÒ0°U·[±[ÀÀ1Ð5EÈÒ5OÜ
�Šð  %Ÿ{›{ð-ô 7ö
	8ð 6PÐ0€r   )r	   Úimgaugr   ÚUserWarningr   r   r   r!   r
   r   r   Ú<module>r$      s5   ðñó ôD {ô DôJ¨ô Jò;ó*8r   