question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Attribute error on module cvlib

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Kidist-Abrahamcommented, Oct 10, 2018

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.

0reactions
AISWARYA2019commented, Feb 11, 2020

I got the same error while importing “cvlib”. import cvlib python error cvlib Please help, thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

'module' object has no attribute 'cv' Error in opencv python ...
When I try to run the code I am getting the following error. AttributeError: 'module' object has no attribute 'cv'. Here is my...
Read more >
zpifile.py error - no crc 32 attribute - Google Groups
I have a problem with zipfile and zlib module, and hope to get some help. That's my error: " import zipfile. File "/home/lib/python3.7/lib/python3.7/zipfile....
Read more >
cvlib | A simple, high level, easy to use, open source ...
A simple, high level, easy to use, open source Computer Vision library for Python.
Read more >
module 'cv2' has no attribute 'imread' - Code Grepper
AttributeError : module 'cv2' has no attribute 'imread'. Comment. 1.
Read more >
OpenCV: Resolving NoneType errors - PyImageSearch
AttributeError : 'NoneType' object has no attribute 'something' ... -42178-3d0iam/opencv-2.4.12/modules/imgproc/src/color.cpp:3739: error: ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found