Cvlib not showing boxes, labels and confidence

风流意气都作罢 提交于 2021-01-29 08:51:34

问题


I am trying to replicate a simple object detection that I found in on website.

import cv2
import matplotlib.pyplot as plt
import cvlib as cv
from cvlib.object_detection import draw_bbox

im = cv2.imread('downloads.jpeg')
bbox, label, conf = cv.detect_common_objects(im)
output_image = draw_bbox(im, bbox, label, conf)
plt.imshow(output_image)
plt.show()

All required libraries are installed and there are no errors running the code. However, it does not show the output image with the boxes, labels and confidence. How do I fix it?

来源:https://stackoverflow.com/questions/62566552/cvlib-not-showing-boxes-labels-and-confidence

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!