Ask Your Question

Raspberry Pi Opencv 64x64 pixels

asked 2013-11-30 09:31:34 -0500

MRDaniel gravatar image


I am currently experiencing issues with the uv4l driver on the Raspberry Pi and OpenCV.

When images are captured from the web cam, they are only 64x64 pixels. This is not the case when taking images from other applications.

Some links suggest installing OpenCV, but this has not resolved the issue.

Any advice on this issue?

edit retag flag offensive close merge delete


First of all use OpenCV version 2.4.7, which is latest stable release and contains even more fixes. Secondly, there is the set and get parameter of the videocapture interface, look at docs. Try setting it manually to a higher rate.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-12-01 04:50:45 -0500 )edit

Hi Steven,

Turns out 2.4.7 still leaves the issue. 2.6.1 however fixes it. Go figure.

Thank you.


MRDaniel gravatar imageMRDaniel ( 2013-12-01 15:01:33 -0500 )edit

But did you try to manually change it in 2.4.7? It is weird that a fix of is skipped in 2.4.7. @Vladislav Vinogradov, @Andrey Pavlenko or @Kirill Kornyakov, any of you guys got an idea how this is possible?

StevenPuttemans gravatar imageStevenPuttemans ( 2013-12-02 02:38:45 -0500 )edit

Uhm and did you make a typo? Do you mean master branch or instead of 2.6.1?

StevenPuttemans gravatar imageStevenPuttemans ( 2013-12-02 02:39:46 -0500 )edit

Yes. :)

MRDaniel gravatar imageMRDaniel ( 2013-12-03 04:52:08 -0500 )edit

And is it possible to debug your code in simoultaneous with 2.4.7 and see where the difference is? I am up for writing a fix if it is needed, but I need some directions of where it is going wrong.

StevenPuttemans gravatar imageStevenPuttemans ( 2013-12-03 06:38:08 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-06-29 03:40:25 -0500

Cyborg21 gravatar image

Hi, I fixed this problem with installation of v4l drivers instead of uv4l drivers. With OpenCV2, my simple source code is :

import cv2

capture = cv2.VideoCapture(0) // For camera in dev/video0 capture.set(3, 640) // ID 3 for width capture.set(4,480) // ID4 for height

while True: ret, im = cv2.imshow("Picamera", im)


edit flag offensive delete link more

Question Tools


Asked: 2013-11-30 09:31:34 -0500

Seen: 436 times

Last updated: Nov 30 '13