cvlib: Attribute error on module cvlib
hey @arunponnusamy I installed cvlib via pip and try a simple code like
import cvlib as cv import cv2
cap=cv2.VideoCapture(“std_camera.mp4”)
while True:
ret,image=cap.read()
faces, confidences = cv.detect_face(image)
print(faces)
print(confidences)
if cv2.waitKey(1) & 0xFF==ord(‘q’):
break
cv2.release()
cv2.destroyAllWindows()
but it has an attribute error logging module 'cvlib' has no attribute 'detect_face'
I also tried it with python3 but still got that error.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (7 by maintainers)
hey, The problem was the name of my python code. It was cvlib.py. I think the program took my code as the cvlib module. Anyway i changed the name and it works fine. Thank you.