Detect An Object With OpenCV-Python

OpenCV is the huge open-source library for computer vision ,machine learning, and image processing and now it plays a vital role in real time operations which is very important in today’s systems. By Using it one can process images and videos to identify objects, faces, or even the handwriting of a human. This article focuses on detecting Objects

import cv2
from matplotlib import pyplot as plt
img = cv2.imread("image.jpg")
img_gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
img_rgb = cv2.cv2Color(img, cv2.COLOR_BGR2RGB)
plt.subplot(1, 1, 1)
plt.imshow(img_rgb)
plt.show()

 

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top