Ask Your Question

Revision history [back]

Image captured by opencv is not good as normal.

I have captured two images, one by opencv Image captured by Opencv

another one by these command lines,

v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=3
v4l2-ctl --stream-mmap=3 --stream-count=1 --stream-to=somefile.jpg

Image captured by another software

As the result, image captured by opencv is not good as the remaining. How can I set the setting of VideoCapture to get the good image. Please help me, thanks.

Image captured by opencv is not good as normal.

I have captured two images, one by opencv Image captured by Opencv

another one by these command lines,

v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=3
v4l2-ctl --stream-mmap=3 --stream-count=1 --stream-to=somefile.jpg

Image captured by another software

As the result, image captured by opencv is not good as the remaining. How can I set the setting of VideoCapture to get the good image. image? Please help me, thanks.

Image captured by opencv is not good as normal.

I have captured two images, one by opencv Image captured by Opencv

another one by these command lines,

v4l2-ctl --set-fmt-video=width=2592,height=1944,pixelformat=3
--set-fmt-video=width=640,height=480,pixelformat=3
v4l2-ctl --stream-mmap=3 --stream-count=1 --stream-to=somefile.jpg

Image captured by another software

As the result, image captured by opencv is not good as the remaining. remaining. The size of image captured by opencv is just 50kB and the remaining size is 110kb. Why are they different?
How can I set the setting of VideoCapture to get the good image? Please help me, thanks.