






"""simple docstring"""





import warnings

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


_SCREAMING_SNAKE_CASE					:				str					    =						logging.get_logger(__name__)






class      a						(					__snake_case		):






    def __init__(       self     :							Any       ,						*__SCREAMING_SNAKE_CASE     :							List[Any]       ,						**__SCREAMING_SNAKE_CASE     :							int					)     ->		None:
      warnings.warn(
          'The class OwlViTFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
          ' use OwlViTImageProcessor instead.'       ,						__SCREAMING_SNAKE_CASE       ,						)
      super().__init__(*__SCREAMING_SNAKE_CASE       ,						**__SCREAMING_SNAKE_CASE					)












"""simple docstring"""





from cva import destroyAllWindows, imread, imshow, waitKey







def      lowerCamelCase__       (							_lowerCamelCase       :		Tuple )      ->				Dict:
  # getting number of pixels in the image
  lowerCamelCase_     ,	lowerCamelCase_         =						img.shape[0], img.shape[1]

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

  return img


if __name__ == "__main__":
  # read original image
  _SCREAMING_SNAKE_CASE					:				List[Any]					    =						imread('''image_data/lena.jpg''', 1)

  # convert to its negative
  _SCREAMING_SNAKE_CASE					:				List[Any]					    =						convert_to_negative(img)

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




