avafinger / cap-v4l2

capture frames from CMOS camera ov5640 / ov8865 using V4l2 and OpenCV
19 stars 20 forks source link

Image has partial errors #1

Open PanderMusubi opened 6 years ago

PanderMusubi commented 6 years ago

On a PINE64 with Ubuntu and a "PINE64" camera, when I run

cap-v4l2/cap 1920 1080 8 1 -999 -1 -1

I get an image such as

test

As you can see there are some errors. Also for 2048 x 1536, a similar error arises. Both contain a proper image of 1280 x 960 and the rest is some nearby memory usage? (Is this a security problem too?)

When using 1280 x 720, 1280 x 960 and 640 x 480, all is okay. The camera is capable of capturing these resolutions. How can this be fixed or do I need to use different parameters? If needed I can send the output of the test scripts.

avafinger commented 6 years ago

@PanderMusubi I had this issue when i was experimenting with high resolutions but i was focusing on video steaming and not still image. The odd thing is that i did not have this problem with high resolution when streaming.

Try to capture two images to see if the problem persist with the second one.