2019-09-17 10:37:01 -0600 | received badge | ● Notable Question (source) |
2017-05-06 07:39:04 -0600 | received badge | ● Popular Question (source) |
2016-06-14 16:54:36 -0600 | received badge | ● Popular Question (source) |
2014-04-25 16:44:20 -0600 | received badge | ● Editor (source) |
2014-04-25 16:41:31 -0600 | asked a question | Anyone use the Python (facedetect.py) got the problem with TypeError? Recently, I use the python example (Facedetect.py) But I get the problem with that File "facedetect.py", line 63, in (module) cascade = cv.Load(options.cascade) TypeError: OpenCV returned Null I am really confused with that problem, and really want solve that problem as soon as possible, anyone can help me, please? the Code is |
2014-04-22 11:27:17 -0600 | asked a question | The Opencv problem with OpenCV Error: Bad argument (Array should be CvMat or IplImage) in cvGetSize Recently, I do my final project for my bachelor degree with Beaglebone Black. I got problems is: 1: when I run python program like following command with pyhton using the Ubuntu (XFCE Desktop) connect with Beaglebone Black !/usr/bin/pythonimport cv2.cv as cv iport time cv.NamedWindow("camera", 1) capture = cv.CaptureFromCAM(0) cv.SetCaptureProperty(capture, 3, 360) cv.SetCaptureProperty(capture, 4, 240) while True: img = cv.QueryFrame(capture) and then, I run this python file use "./name.py" **it show : init done OpenCV Error: Bad argument (Array should be CvMat or IplImage) in cvGetSize, file /home/ubuntu/finalproject/(this is my opencv directory) opencv-2.4.7/modules/core/src/array.cpp, line 1238 Traceback (most recent call last): File “./example.py”, line 16, in <module> hug_img = cv.CreateImage(cv.Getsize(img), 8, 3) cv2.erro: Array should be CvMat or IplImage** Should I re-install OpenCV on my Beaglebone Black Board, or reset something? Thank you |