Hello,
I have installed OpenCV package from alarm's repository.
Packege version is 2.4.2-2
First things first. My camera is working on beagle. I have tested it with 'motion'.
Following piece of code works perfectly on PC.
$this->bbcode_second_pass_code('', ' #include "highgui.h"
#include <stdio.h>
int main() {
CvCapture* capture = cvCaptureFromCAM( CV_CAP_ANY );
fprintf(stdout, "1\n");
if ( !capture ) {
fprintf( stderr, "ERROR: capture is NULL \n" );
return -1;
}
fprintf(stdout, "2\n");
IplImage* frame = cvQueryFrame( capture );
if ( !frame ) {
fprintf( stderr, "ERROR: frame is null...\n" );
}
fprintf(stdout, "3\n");
cvSaveImage("cap.jpg", frame, 0);
fprintf(stdout, "4\n");
cvReleaseCapture( &capture );
fprintf(stdout, "5\n");
return 0;
}')
Output on beagle:
$this->bbcode_second_pass_code('', '$ ./capture_frame
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
VIDIOC_QUERYMENU: Invalid argument
1
2
')
cvQueryFrame freezes, which is a bit strange.
'VIDIOC_QUERYMENU: Invalid argument' also shows up on PC, so I think it's not so big deal.
Ubuntu guys also had this problem http://ubuntuforums.org/showthread.php? ... st12113852
I've tried to rebuild OpenCV (from ABS) with and without unicap. I've tried to build unicap (from AUR, v0.9.12).
I've tried to build OpenCV from AUR (opencv-git), but it was installed incorrectly.
I failed on any attempt.
This is rather question for ALARMS's developers.
How do you build OpenCV for ARM? I mean, Which options do you use?
Thanks in advance.