-
-
Save amankharwal/ec3ce5d8cb10eee3bab0faf2b5251187 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import cvlib as cv | |
from cvlib.object_detection import draw_bbox | |
from numpy.lib.polynomial import poly | |
image = cv2.imread("cars.jpeg") | |
box, label, count = cv.detect_common_objects(image) | |
output = draw_bbox(image, box, label, count) | |
plt.imshow(output) | |
plt.show() | |
print("Number of cars in this image are " +str(label.count('car'))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment