Ask Your Question

normad's profile - activity

2015-12-23 22:33:47 -0600 asked a question No accelerated colorspace conversion found from yuv420p to bgr24.

I tried porting my windows opencv application to my linux board, olimex a20 (armhf) and i get, No accelerated colorspace conversion found from yuv420p to bgr24 warning continuously when reading an mp4 or avi file. And performance is extremely poor. After a bit of searching i found that the problem is with ffmpeg, so i manually built ffmpeg to the latest snapshot,

libavutil 55. 11.100 / 55. 11.100 libavcodec 57. 20.100 / 57. 20.100 libavformat 57. 20.100 / 57. 20.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 21.101 / 6. 21.101 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100

but still it didnt help. Then i compiled opencv 3.0.0 on the board. But still the problem persists. Please help!

2015-10-05 17:54:05 -0600 received badge  Popular Question (source)
2013-10-02 08:06:21 -0600 received badge  Student (source)
2013-10-01 21:33:23 -0600 commented question imwrite fails everytime

creating a file using fopen fails too. on the pen drive and the local sd card :/ any ideas what it could be?

2013-10-01 21:18:42 -0600 commented question imwrite fails everytime

its not just the pen drive. i tried writing to the same location still the same result ill try to save a different image

2013-10-01 15:14:56 -0600 asked a question webcam capture fails VIDIOC_QUERYMENU: Invalid argument error

Hi,

im working on an olinuxino-mini board running the arch-arm rootfs with kernel 3.7 and im trying to capture an image from a webcam and save it.

however when i compile and run my code

VideoCapture cap(0);

if(!cap.isOpened()) {
    cout << "Cannot open camera device" << endl;
    return -1;
} else {
    cout << "Camera Found!!" << endl;
    return -1;
}

Mat frame;

cap.read(frame);
if(frame.empty()) {
    cout << "No image captured" << endl;
}

if(imwrite("/mnt/pen/3.jpeg",frame)) {
    cout << "Image succesfullt written" << endl;
}
return 0;

i get the following output on the screen

VIDIOC_QUERYMENU: Invalid argument VIDIOC_QUERYMENU: Invalid argument VIDIOC_QUERYMENU: Invalid argument Camera Found!!

but my camera works just fine with fswebcam.

any help is greatly appreciated :)

2013-10-01 15:08:48 -0600 asked a question imwrite fails everytime

Hi,

im working on an olinuxino-mini board running the arch-arm rootfs with kernel 3.7 and im trying to capture an image from a webcam and save it.

VideoCapture cap(0);

if(!cap.isOpened()) {
    cout << "Cannot open camera device" << endl;
    return -1;
} else {
    cout << "Camera Found!!" << endl;
    return -1;
}

Mat frame;

cap.read(frame);
if(frame.empty()) {
    cout << "No image captured" << endl;
}

if(imwrite("/mnt/pen/3.jpeg",frame)) {
    cout << "Image succesfully written" << endl;
}
return 0;

the output i get is

Camera Found!!

so the imwrite always fails with a 0. i tried to get it to save just a mat to make sure it isnt something wrong with the capture but i get the same result

Mat watermark(5,5,CV_16U);

imwrite fails with zero.

any help is greatly appreciated :)