Ask Your Question
0

Raspberry Pi Opencv 64x64 pixels

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

MRDaniel gravatar image

Hellom

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 2.4.6.1, but this has not resolved the issue.

Any advice on this issue?

edit retag flag offensive close merge delete

Comments

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 -0600 )edit

Hi Steven,

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

Thank you.

Daniel

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

But did you try to manually change it in 2.4.7? It is weird that a fix of 2.4.6.1 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 -0600 )edit

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

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

Yes. 2.4.6.1. :)

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

And is it possible to debug your code in 2.4.6.1 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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

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

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 = capture.read() cv2.imshow("Picamera", im)

Cyb

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 566 times

Last updated: Nov 30 '13