Cvlib discover_common_objects funktioniert nichtPython

Python-Programme
Guest
 Cvlib discover_common_objects funktioniert nicht

Post by Guest »

https://github.com/arunponnusamy/cvlib/ ... 170d41f96a

Ich überprüfe Beispiele von cvlib und versuche es selbst mit Spyder Python 3.7 Die Gesichtserkennung funktioniert sehr gut.
Die Geschlechtserkennung funktioniert sehr gut Gut, aber die Objekterkennung funktioniert nicht...
Ausgabe ist das Bild selbst.
Ich habe BGR2RGB ausprobiert, aber es passiert nichts.

Hier ist Code

Code: Select all

import cvlib as cv
from cvlib.object_detection import draw_bbox
import cv2
path = r'C:\Users\user\desktop\cod\object_detection_input.jpg'
image = cv2.imread(path)
bbox, label, conf = cv.detect_common_objects(image)
print(bbox, label, conf)
out = draw_bbox(image, bbox, label, conf)
cv2.imshow("object_detection", out)
cv2.waitKey()
cv2.destroyAllWindows()

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post