orgicus / ofxCvPiCam

ofxCvPiCam is a minimal grabber for the Raspberry Pi Camera module. It uses the MMAL interface to grab frames and convert them the cv::Mat type which can be processed using the typical opencv calls.
Other
49 stars 10 forks source link

is different size working #2

Open emmanuelgeoffray opened 9 years ago

emmanuelgeoffray commented 9 years ago

Hey there, Is it working for other sizes than 640x480? I'm trying the size mentioned here but i get glitchy images i'm on raspberry pi2 Thanks for your feedback, Emmanuel

orgicus commented 9 years ago

Hi Emmanuel,

I remember testing the 4:3 formats, but don't think I've tested the 16:9 formats. Is there any way you can share an image of the glitches ?

Thanks, George

emmanuelgeoffray commented 9 years ago

hey, thanks for your prompt reply. I tested all the formats 16:9 and 4:3 with no success, except 640x480. I'm far away from my raspi 2 now, but I can share screencaps on monday. Best, e

emmanuelgeoffray commented 9 years ago

Here is an image of the glitches, with example-ofCvPiCam img_20150826_180126 Maybe it is an issue with the Mat not well recognized when using drawMat ?

emmanuelgeoffray commented 9 years ago

I just tried with 1024x768 and the image is fine. The image above is for 1296x972

avilleret commented 9 years ago

I also get some scrambled display with drawMat() few days ago but this was with submatrix. (see https://github.com/kylemcdonald/ofxCv/issues/163 for more) And I sucessfully grab 1920x1080 frames but the drawMat() method is slow and it displays fullHD frame at 13fps. Without displaying it, the grab runs at 60 fps (screen refresh rate) but I'm not sure to get only new image at this rate.