IMAGE PROCESSING

Amit Sharma
3 min readJun 2, 2021
  • Computer Vision is a vast field. Basically, we can define CV in simple terms as the eye(vision) of your computer.
  • Your Laptop’s WebCam, IP WebCam etc these cameras are all example of Vision of your computer. What your computer sees with the WebCam it process on that data.
  • Opencv-python i.e Open source Computer Vision is a Library in python which helps to use the features related to CV.
  • Applications of CV in real world are Haarcascade Face Detection, Haarcascade Full Body Detection, Canny Edge Detection, Pupil Detection, Image Projection, Adding Filters to a photo, Image Crop etc
  • In this Article I cropped an image of Dog and Cat also added filters to last image.
  • In Second figure, the size of the figure is cropped and resized by (500,400).
  • cv2.imshow will helps to show the figure whereas cv2.waitkey will holds the window(we can provide milliseconds as a parameter) and cv2.DestroyAllWindows is used for closing the image.
  • In Fourth Figure, the Gray image is obtained from its original one.
  • cv2.cvtColor is used to Gray scale the image.
  • In Fourth Figure, the Gray image is obtained from its original one.
  • cv2.cvtColor is used to Gray scale the image.
  • In Sixth Figure, Another image of Cat is cropeed and resized and placed between the two Dogs.
  • The last figure is made by applying filters by spliting the three color B, G, R (Blue, Green, Red) from cv2.split. The three colors are stored in B, G, R respectively.
  • Required size of Cat Image must be within the range of Dog image

--

--

Amit Sharma

2x RedHat || 2x GCP Certified || DEVOPS Enginner || Terraform || Ansible || Kubernetes || AWS || GCP || GitLab || Jenkins|| Openshift