* Re: Aptina MT9V024
[not found] <CAF-NajsBJGtC2RCgzyX6=f8BkYtzFEcLu4q9XOhiE+Lgd+ux+Q@mail.gmail.com>
@ 2015-03-08 20:38 ` Guennadi Liakhovetski
[not found] ` <CAF-NajvjMgZ9X8w=vZVTwVd3FQr4NKMU3Z6pv1d8Y=8a2cdK5A@mail.gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Guennadi Liakhovetski @ 2015-03-08 20:38 UTC (permalink / raw)
To: Ayhan KÜÇÜKMANİSA; +Cc: Linux Media Mailing List
Hi,
On Sun, 8 Mar 2015, Ayhan KÃ~\Ã~GÃ~\KMANÄ°SA wrote:
> Hi Guennadi,
>
> Previously i asked you a problem about accesing camera i2c bus. I solved
> camera i2c detect problem. Now i can get images using mplayer and v4l2 lib.
> But i couldnt get right images. I try to get test pattern but when i get
> image that in attachment. Could you give an advice about this problem?
The first problem, that appears in your image is geometry. There seem to
be more pixels in the image than you think there are. Also, I don't know
what your test image should look like, but I doubt it should be that pink.
So, looks like you also wrongly decode pixels. Maybe these two problems
are related - your bytes-per-pixel is wrong, so the width is wrong and the
pixel format too.
Thanks
Guennadi
>
> Thanks.
>
>
>
> ---------------------------------------------------------------------------------------------------
> ArÅ. Gör. Ayhan KÃÃÃKMANÄ°SA
> Kocaeli Ãniversitesi, GömÃŒlÃŒ Sistemler ve GörÃŒntÃŒleme Sistemleri
> Laboratuvarı
>
> Res. Asst. Ayhan KÃÃÃKMANÄ°SA
> Kocaeli University, Laboratory of Embedded and Vision Systems
>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Aptina MT9V024
[not found] ` <CAF-Najso-kd3dWNMQvPpnWKFeohsYQSjHLLbS8VXonQ1FnH9LA@mail.gmail.com>
@ 2015-03-11 14:05 ` Guennadi Liakhovetski
0 siblings, 0 replies; 2+ messages in thread
From: Guennadi Liakhovetski @ 2015-03-11 14:05 UTC (permalink / raw)
To: Ayhan KÜÇÜKMANİSA; +Cc: Linux Media Mailing List
Hi,
On Wed, 11 Mar 2015, Ayhan KÃ~\Ã~GÃ~\KMANÄ°SA wrote:
> Hi Guennadi,
>
> My sensor Color filter array is RGB Bayer. Can i get image values and save
> in any image format using v4l2?
The kernel v4l2 doesn't do any pixel format conversions. I'm not sure, but
check libv4l, it probably supports Bayer format conversions in the
meantime. You just have to pick up your correct colour order. gstreamer
might be able to do that too.
Thanks
Guennadi
>
> Thanks, regards.
>
> ---------------------------------------------------------------------------------------------------
> ArÅ. Gör. Ayhan KÃÃÃKMANÄ°SA
> Kocaeli Ãniversitesi, GömÃŒlÃŒ Sistemler ve GörÃŒntÃŒleme Sistemleri
> Laboratuvarı
>
> Res. Asst. Ayhan KÃÃÃKMANÄ°SA
> Kocaeli University, Laboratory of Embedded and Vision Systems
>
> 2015-03-09 17:06 GMT+02:00 Ayhan KÃÃÃKMANÄ°SA <ayhan.kucukmanisa@gmail.com>:
>
> > Hi Guennadi,
> >
> > Thanks for your quick reply. I solved my width problem. In the attachment
> > test pattern and normal camera image that i can get now. I think problem
> > yuv / bayer conversion problem that you said before.
> >
> > I get images using mplayer like that : mplayer tv:// -tv
> > driver=v4l2:width=752:height=480:device=/dev/video0:fps=10 -vo jpeg
> > And using mpeg-streamer like that : sudo ./mjpg_streamer -i
> > "/usr/local/lib/input_uvc.so -y -d /dev/video0 -r 752x480" -o
> > "/usr/local/lib/output_http.so -w ./www -p 5000"
> > now im trying to get images with code using v4l2(using derek molloy code
> > on his web page). In the attachment there is my code. But i always get this
> > error : Error 22, Invalid argument.
> > I tried to change "fmt.fmt.pix.pixelformat = V4L2_PIX_FMT_RGB24". But i
> > couldnt solve problem.
> >
> >
> > [image: Satır içi resim 1]
> >
> >
> >
> > ---------------------------------------------------------------------------------------------------
> > ArÅ. Gör. Ayhan KÃÃÃKMANÄ°SA
> > Kocaeli Ãniversitesi, GömÃŒlÃŒ Sistemler ve GörÃŒntÃŒleme Sistemleri
> > Laboratuvarı
> >
> > Res. Asst. Ayhan KÃÃÃKMANÄ°SA
> > Kocaeli University, Laboratory of Embedded and Vision Systems
> >
> > 2015-03-08 22:38 GMT+02:00 Guennadi Liakhovetski <g.liakhovetski@gmx.de>:
> >
> >> Hi,
> >>
> >> On Sun, 8 Mar 2015, Ayhan KÃ~\Ã~GÃ~\KMANðSA wrote:
> >>
> >> > Hi Guennadi,
> >> >
> >> > Previously i asked you a problem about accesing camera i2c bus. I solved
> >> > camera i2c detect problem. Now i can get images using mplayer and v4l2
> >> lib.
> >> > But i couldnt get right images. I try to get test pattern but when i get
> >> > image that in attachment. Could you give an advice about this problem?
> >>
> >> The first problem, that appears in your image is geometry. There seem to
> >> be more pixels in the image than you think there are. Also, I don't know
> >> what your test image should look like, but I doubt it should be that pink.
> >> So, looks like you also wrongly decode pixels. Maybe these two problems
> >> are related - your bytes-per-pixel is wrong, so the width is wrong and the
> >> pixel format too.
> >>
> >> Thanks
> >> Guennadi
> >>
> >> >
> >> > Thanks.
> >> >
> >> >
> >> >
> >> >
> >> ---------------------------------------------------------------------------------------------------
> >> > ArÃ
. Gör. Ayhan Kà à à KMANðSA
> >> > Kocaeli à niversitesi, GömÃÅlÃÅ Sistemler ve GörÃÅntÃÅleme Sistemleri
> >> > Laboratuvarñ
> >> >
> >> > Res. Asst. Ayhan Kà à à KMANðSA
> >> > Kocaeli University, Laboratory of Embedded and Vision Systems
> >> >
> >>
> >
> >
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-11 14:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAF-NajsBJGtC2RCgzyX6=f8BkYtzFEcLu4q9XOhiE+Lgd+ux+Q@mail.gmail.com>
2015-03-08 20:38 ` Aptina MT9V024 Guennadi Liakhovetski
[not found] ` <CAF-NajvjMgZ9X8w=vZVTwVd3FQr4NKMU3Z6pv1d8Y=8a2cdK5A@mail.gmail.com>
[not found] ` <CAF-Najso-kd3dWNMQvPpnWKFeohsYQSjHLLbS8VXonQ1FnH9LA@mail.gmail.com>
2015-03-11 14:05 ` Guennadi Liakhovetski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.