




"""simple docstring"""
import warnings

from ...utils import logging
from .image_processing_chinese_clip import ChineseCLIPImageProcessor


a_				:    Dict										=     logging.get_logger(__name__)

class __lowercase(      lowercase__				):




					'''simple docstring'''


					def __init__(    self						,	*__a						,	**__a     ):
								warnings.warn(
								    'The class ChineseCLIPFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'
								    ' Please use ChineseCLIPImageProcessor instead.'						,	__a						,	)
								super().__init__(*__a						,	**__a     )









"""simple docstring"""
from cva import destroyAllWindows, imread, imshow, waitKey





def 						UpperCAmelCase				(			A__:    Tuple     )  ->     Union[str, Any]:
			# getting number of pixels in the image
			__lowerCamelCase       ,      __lowerCamelCase					:	Optional[Any]	       =				img.shape[0], img.shape[1]

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

			return img


if __name__ == "__main__":
					# read original image
					a_				:    Dict										=     imread('''image_data/lena.jpg''', 1)

					# convert to its negative
					a_				:    str										=     convert_to_negative(img)

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



