2016-11-14 04:25:50 -0600 | received badge | ● Popular Question (source) |
2013-12-01 17:43:27 -0600 | asked a question | Errors cross compiling OpenCV 2.4.3 Hi, I am a newbie here, and wanting to learn how to install OpenCV on the raspberry pi I have been using Raspbian on the raspberry pi and recently after getting instructions from this particular website: http://miloq.blogspot.com/2012/12/install-opencv-ubuntu-linux.html?showComment=1385940418489#c2741465141622655675 in the process of getting step 4 done, using the 'make' command, I have been encounter a few set of different errors at every attempt i made, and each attempt have an inconsistent of errors this are the 2 attempts and its errors first attempt got stuck at 77% /usr/bin/ld: ../../lib/libopencv_highgui.so.2.4.3: don't know how to handle section ` '[0x 2372] ../../lib/libopencv_highgui.so.2.4.3: could not read symbols: File in wrong format collect2: ld returned 1 exist status make[2]: * [bin/opencv_perf_gpu] Error 1 make[1]: * [modules/gpu/CMakeFiles/opencv_perf_gpu.dir/all] Error 2 make: *[all] Error 2 second attempt got stucked at 83% modules/videostab/CMakeFiles/opencv_videostab.dir/depend.make:19 * target pattern contains no '%'. Stop. make[1]: * [modules/videostab/CMakeFiles/opencv_videostab.dir/all] Error 2 make: * [all] Error 2 these are the 2 attempts i have made to execute that 'make' command but so far nothing is working perfectly, I managed to use 'make clean' and build it back up again using 'make' every time an error happens I hope someone can help me solve this soon, since I am rushing for a project on this and the deadline is very near, thanks so much |
2013-11-03 11:55:33 -0600 | commented question | new to opencv python and clarification on certain things import numpy as np import cv2 face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye_cascade = cv2.CascadeClassifier('haarcascade_eye.xml') img = cv2.imread('sachin.jpg') gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) faces = face_cascade.detectMultiScale(gray, 1.3, 5) for (x,y,w,h) in faces: img = cv2.rectangle(img,(x,y),(x+w,y+h),(255,0,0),2) roi_gray = gray[y:y+h, x:x+w] roi_color = img[y:y+h, x:x+w] eyes = eye_cascade.detectMultiScale(roi_gray) for (ex,ey,ew,eh) in eyes: cv2.rectangle(roi_color,(ex,ey),(ex+ew,ey+eh),(0,255,0),2) cv2.imshow('img',img) cv2.waitKey(0) cv2.destroyAllWindows() this is the code for it, pls help me have a look, thanks :) |
2013-11-03 10:00:16 -0600 | commented question | new to opencv python and clarification on certain things so how can i overcome it? shouldn't any picture have all 3 different colors of b g r? |
2013-11-03 08:18:44 -0600 | commented question | new to opencv python and clarification on certain things What does it mean 3 or 4 channels? I'm still unclear what does it refer to |
2013-11-03 03:34:27 -0600 | asked a question | new to opencv python and clarification on certain things I am a total newbie in opencv+python I will like to clarify some things in regards to my project
for this website i seem to be facing this error when i try to compile it on TkInter Traceback (most recent call last): File "C:\Users\Jian Quan\Desktop\simulation\cameratest.py", line 8, in <module> gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) error: ......\src\opencv\modules\imgproc\src\color.cpp:3402: error: (-215) scn == 3 || scn == 4 while for another example that i tried, this is the error I encountered #!/usr/bin/python import cv2 img = cv2.imread("Lenna.png") hc = cv2.CascadeClassifier("haarcascade_frontalface_alt2.xml") faces = hc.detectMultiScale(img) for face in faces: cv2.rectangle(img, (face[0], face[1]), (face[0] + face[2], face[0] + face[3]), (255, 0, 0), 3) cv2.imshow("Lenna's face", img) if cv2.waitKey(5000) == 27: cv2.destroyWindow("Lenna's face") cv2.imwrite("LennaFace.png", img) this is the error: Traceback (most recent call last): File "C:\Users\Jian Quan\Desktop\simulation\test.py", line 11, in <module> cv2.imshow("Lenna's face", img) error: ......\src\opencv\modules\highgui\src\window.cpp:261: error: (-215) size.width>0 && size.height>0 can anyone out there help me clarify the issues that I m facing at the moment? thanks so much |