





'''simple docstring'''

from cva import destroyAllWindows, imread, imshow, waitKey







def  a__    (    lowercase :					str				)		->		Optional[int]:





					"""simple docstring"""

					_UpperCamelCase   ,    _UpperCamelCase       =	img.shape[0], img.shape[1]

					# converting each pixel's color to its negative
					for i in range(lowercase				):
										for j in range(lowercase				):
															_UpperCamelCase       =	[255, 255, 255] - img[i][j]

					return img


if __name__ == "__main__":
			# read original image
			lowercase__						:      Optional[int]	=    imread('image_data/lena.jpg', 1)

			# convert to its negative
			lowercase__						:      Union[str, Any]	=    convert_to_negative(img)

			# show result image
			imshow('negative of original image', img)
			waitKey(0)
			destroyAllWindows()










'''simple docstring'''

import warnings

from ...utils import logging
from .image_processing_owlvit import OwlViTImageProcessor


lowercase__						:      Optional[Any]	=    logging.get_logger(__name__)
class     __lowerCAmelCase					(   __magic_name__			):






       """simple docstring"""





       def __init__(							self       :		List[Any]	,			*lowerCAmelCase__       :		List[str]	,			**lowerCAmelCase__       :		List[str]					)   ->					None:

            '''simple docstring'''




            warnings.warn(
                '''The class OwlViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'''
                ''' use OwlViTImageProcessor instead.'''	,			lowerCAmelCase__	,			)
            super().__init__(*lowerCAmelCase__	,			**lowerCAmelCase__					)



