HeartMonitor icon indicating copy to clipboard operation
HeartMonitor copied to clipboard

OpenCV returning NULL

Open momenso opened this issue 9 years ago • 4 comments

Any ideas on what may be happening here?

Traceback (most recent call last): File "heartMonitor.py", line 530, in Program().run() File "heartMonitor.py", line 421, in init self.face_detector = FaceDetector(*self.cam.get_size()) File "heartMonitor.py", line 53, in init self.cascade = cv.Load(cascade_file) TypeError: OpenCV returned NULL

Thank you.

momenso avatar May 22 '15 19:05 momenso

you need to include the xml file in the same directory

tivie avatar Nov 27 '15 21:11 tivie

Please help me with ModuleNotFoundError Traceback (most recent call last) in ----> 1 import cv

ModuleNotFoundError: No module named 'cv'

I am using python 3, replacing cv with cv2 is also creating issues in functions like: cv.GetCaptureProperty

sonineha2191 avatar Apr 02 '19 12:04 sonineha2191

I'm afraid I've long forgotten which version of Open CV I was using when I wrote this; I'm afraid there's a reasonable chance that this code will need some fiddling to get working on newer versions of OpenCV. I'd welcome a PR if you manage to get it working again :).

mossblaser avatar Apr 02 '19 12:04 mossblaser

Thanks a ton, will surely look into it

sonineha2191 avatar Apr 03 '19 10:04 sonineha2191