2016-03-31 02:04:00 -0600 | received badge | ● Enthusiast |
2016-03-25 03:44:45 -0600 | asked a question | OpenCV ocl function with POCL and Raspberry Pi2 Hi everyone. I try to install OpenCL on the Raspberry Pi2. The operating system is Ubuntu Mate. Because Pi2's CPU is ARMv7a. So that I find the POCL-0.12 as the solution for being the OpenCL platform. After build and install POCL, it works fine!!(The test of example all pass) And I can find the platform and device as the figure shows. Then I try to install OpenCV 2.4.11 on the Ubuntu Mate. It also works fine!! (The test of example all pass) Now I try to use the ocl::xxx() function in OpenCV. When compile and run time, it doesn't show any error or wrong. And I can use ocl::oclMat to create the image. But when I use the function like ocl::cvtColor() or ocl::equlizeHist(). It just like pass the code and didn't do anythings ?? here is my code.. void OpenCL_info() { } int main(){ } And the result shows--> No error. the screen shows nothing. But I can detect the platform and device by ocl::getOpenCLPlatforms, ocl::getOpenCLDevices. And I use the original OpenCV function cvtColor(), it works and shows the gray image. Dose anyone have the experience on OpenCV, OepnCL with raspberry Pi2? Sorry for my poor English. THX. |
2016-03-16 02:24:55 -0600 | asked a question | OpenCV Error: Null pointer...Invalid classifier cascade in function oclHaarDetectObjects Hi everyone! I have search this problem on this site. But the answer is not correct to solve my situation... I did actually add the *.xml file, so I test the version which didn't use the ocl library. It is work correctly for me.. But this version got a error !! The error is >>> OpenCV Error: Null pointer (Invalid classifier cascade) in oclHaarDetectObjects, file /home/swpc/opencv-2.4.11/modules/ocl/src/haar.cpp, line 686 terminate called after throwing an instance of 'cv::Exception' what(): /home/swpc/opencv-2.4.11/modules/ocl/src/haar.cpp:686: error: (-27) Invalid classifier cascade in function oclHaarDetectObjects Aborted (core dumped) sorry for my poor English. Does anyone know this problem?? |