Quantcast

Caspa on Overo FE - 3.5 kernel

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Caspa on Overo FE - 3.5 kernel

Sertaç Olgunsoylu
Hi all,
I am trying to bring up Caspa on Overo FE. I built an image with required V4L utils (such as media-ctl, yavta) using poky. I am able to boot it up with no issues. mt9v032 module is up and running. Also, I can capture frames in Bayer format (SGRBG10 752x480) with following pipeline configuration:
media-ctl -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1]'; 
media-ctl -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]'; 
media-ctl -f '"mt9v032 3-005c":0[SGRBG10 752x480]';
media-ctl -f '"OMAP3 ISP CCDC":1[SGRBG10 752x480]';

to capture:
yavta -p -f SGRBG10 -s 752x480 -n 4 --capture=1 --skip 0 $(media-ctl -e "OMAP3 ISP CCDC output") --file=img.bin  # It works well.

However,
I want to get ISP to do bayer to YUV conversion so that I can convert YUV frames to RGB for further processing. In order to do so, I tried following ISP pipeline configuration:
media-ctl -v -l '"mt9v032 3-005c->"OMAP3 ISP CCDC":0[1]'
media-ctl -v -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
media-ctl -v -l '"OMAP3 ISP preview":1->"OMAP3 ISP preview output":0[1]'
media-ctl -v -f '"mt9v032 3-005":0 [SGRBG10 752x480]'
media-ctl -v -f '"OMAP3 ISP CCDC":2 [SGRBG10 752x480]'
media-ctl -v -f '"OMAP3 ISP preview":1 [YUYV 752x480]'

When I try to capture a frame with following yavta command, It asks me to press any key to start capturing. Then I trigger capturing but it prints 'Unable to start streaming: Invalid argument (22)' and fails.
yavta -p -f YUYV -s 752x480 -n 4 --capture=1 --skip 0 /dev/video4 --file=img.bin  # It fails. /dev/video4 is pointing to ISP preview output.

Am I missing something either in pipeline configuration or capturing command? 

Do you have any feedback to my Caspa usage strategy for image processing?
My strategy:
1 - First employ ISP for Bayer to YUV conversion
2 - Get YUV output from ISP pipeline 
3 - Convert it to RGB.

Does this strategy make sense? Is it possible to convert Bayer to RGB (bypassing YUV stage) without any significant loss? 

Thanks

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Caspa on Overo FE - 3.5 kernel

Kartik Mohta
Hi,

On Wed, Jan 2, 2013 at 5:14 PM, Sertac Olgunsoylu
<[hidden email]> wrote:

> Hi all,
> I am trying to bring up Caspa on Overo FE. I built an image with required
> V4L utils (such as media-ctl, yavta) using poky. I am able to boot it up
> with no issues. mt9v032 module is up and running. Also, I can capture frames
> in Bayer format (SGRBG10 752x480) with following pipeline configuration:
> media-ctl -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1]';
> media-ctl -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]';
> media-ctl -f '"mt9v032 3-005c":0[SGRBG10 752x480]';
> media-ctl -f '"OMAP3 ISP CCDC":1[SGRBG10 752x480]';
>
> to capture:
> yavta -p -f SGRBG10 -s 752x480 -n 4 --capture=1 --skip 0 $(media-ctl -e
> "OMAP3 ISP CCDC output") --file=img.bin  # It works well.
>
> However,
> I want to get ISP to do bayer to YUV conversion so that I can convert YUV
> frames to RGB for further processing. In order to do so, I tried following
> ISP pipeline configuration:
> media-ctl -v -l '"mt9v032 3-005c->"OMAP3 ISP CCDC":0[1]'
> media-ctl -v -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
> media-ctl -v -l '"OMAP3 ISP preview":1->"OMAP3 ISP preview output":0[1]'
> media-ctl -v -f '"mt9v032 3-005":0 [SGRBG10 752x480]'
> media-ctl -v -f '"OMAP3 ISP CCDC":2 [SGRBG10 752x480]'
> media-ctl -v -f '"OMAP3 ISP preview":1 [YUYV 752x480]'
>

You might want to try UYVY instead of YUYV here and in yavta.

> When I try to capture a frame with following yavta command, It asks me to
> press any key to start capturing. Then I trigger capturing but it prints
> 'Unable to start streaming: Invalid argument (22)' and fails.
> yavta -p -f YUYV -s 752x480 -n 4 --capture=1 --skip 0 /dev/video4
> --file=img.bin  # It fails. /dev/video4 is pointing to ISP preview output.
>
> Am I missing something either in pipeline configuration or capturing
> command?
>
> Do you have any feedback to my Caspa usage strategy for image processing?
> My strategy:
> 1 - First employ ISP for Bayer to YUV conversion
> 2 - Get YUV output from ISP pipeline
> 3 - Convert it to RGB.
>
> Does this strategy make sense? Is it possible to convert Bayer to RGB
> (bypassing YUV stage) without any significant loss?
>

--
Kartik

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Caspa on Overo FE - 3.5 kernel

Sertaç Olgunsoylu
Hi Kartik,
I tried UYVY as well. It didn't help out either.


On Thu, Jan 3, 2013 at 12:34 AM, Kartik Mohta <[hidden email]> wrote:
Hi,

On Wed, Jan 2, 2013 at 5:14 PM, Sertac Olgunsoylu
<[hidden email]> wrote:
> Hi all,
> I am trying to bring up Caspa on Overo FE. I built an image with required
> V4L utils (such as media-ctl, yavta) using poky. I am able to boot it up
> with no issues. mt9v032 module is up and running. Also, I can capture frames
> in Bayer format (SGRBG10 752x480) with following pipeline configuration:
> media-ctl -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1]';
> media-ctl -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]';
> media-ctl -f '"mt9v032 3-005c":0[SGRBG10 752x480]';
> media-ctl -f '"OMAP3 ISP CCDC":1[SGRBG10 752x480]';
>
> to capture:
> yavta -p -f SGRBG10 -s 752x480 -n 4 --capture=1 --skip 0 $(media-ctl -e
> "OMAP3 ISP CCDC output") --file=img.bin  # It works well.
>
> However,
> I want to get ISP to do bayer to YUV conversion so that I can convert YUV
> frames to RGB for further processing. In order to do so, I tried following
> ISP pipeline configuration:
> media-ctl -v -l '"mt9v032 3-005c->"OMAP3 ISP CCDC":0[1]'
> media-ctl -v -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
> media-ctl -v -l '"OMAP3 ISP preview":1->"OMAP3 ISP preview output":0[1]'
> media-ctl -v -f '"mt9v032 3-005":0 [SGRBG10 752x480]'
> media-ctl -v -f '"OMAP3 ISP CCDC":2 [SGRBG10 752x480]'
> media-ctl -v -f '"OMAP3 ISP preview":1 [YUYV 752x480]'
>

You might want to try UYVY instead of YUYV here and in yavta.

> When I try to capture a frame with following yavta command, It asks me to
> press any key to start capturing. Then I trigger capturing but it prints
> 'Unable to start streaming: Invalid argument (22)' and fails.
> yavta -p -f YUYV -s 752x480 -n 4 --capture=1 --skip 0 /dev/video4
> --file=img.bin  # It fails. /dev/video4 is pointing to ISP preview output.
>
> Am I missing something either in pipeline configuration or capturing
> command?
>
> Do you have any feedback to my Caspa usage strategy for image processing?
> My strategy:
> 1 - First employ ISP for Bayer to YUV conversion
> 2 - Get YUV output from ISP pipeline
> 3 - Convert it to RGB.
>
> Does this strategy make sense? Is it possible to convert Bayer to RGB
> (bypassing YUV stage) without any significant loss?
>

--
Kartik

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users


------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Caspa on Overo FE - 3.5 kernel

Kartik Mohta
Sorry for that, the problem is that the output of the ISP is not
752x480. The media-ctl output tells me that the output format is set
to: YUYV 734x471. I guess the size change is due to the way it
converts the bayer to YUV. Using that size (734x471) for yavta works
fine.

Also, this may have been a typo in the email, but your first media-ctl line is
media-ctl -v -l '"mt9v032 3-005c->"OMAP3 ISP CCDC":0[1]'
where it should be
media-ctl -v -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1]'


On Wed, Jan 2, 2013 at 5:48 PM, Sertac Olgunsoylu
<[hidden email]> wrote:

> Hi Kartik,
> I tried UYVY as well. It didn't help out either.
>
>
> On Thu, Jan 3, 2013 at 12:34 AM, Kartik Mohta <[hidden email]> wrote:
>>
>> Hi,
>>
>> On Wed, Jan 2, 2013 at 5:14 PM, Sertac Olgunsoylu
>> <[hidden email]> wrote:
>> > Hi all,
>> > I am trying to bring up Caspa on Overo FE. I built an image with
>> > required
>> > V4L utils (such as media-ctl, yavta) using poky. I am able to boot it up
>> > with no issues. mt9v032 module is up and running. Also, I can capture
>> > frames
>> > in Bayer format (SGRBG10 752x480) with following pipeline configuration:
>> > media-ctl -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1]';
>> > media-ctl -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]';
>> > media-ctl -f '"mt9v032 3-005c":0[SGRBG10 752x480]';
>> > media-ctl -f '"OMAP3 ISP CCDC":1[SGRBG10 752x480]';
>> >
>> > to capture:
>> > yavta -p -f SGRBG10 -s 752x480 -n 4 --capture=1 --skip 0 $(media-ctl -e
>> > "OMAP3 ISP CCDC output") --file=img.bin  # It works well.
>> >
>> > However,
>> > I want to get ISP to do bayer to YUV conversion so that I can convert
>> > YUV
>> > frames to RGB for further processing. In order to do so, I tried
>> > following
>> > ISP pipeline configuration:
>> > media-ctl -v -l '"mt9v032 3-005c->"OMAP3 ISP CCDC":0[1]'
>> > media-ctl -v -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
>> > media-ctl -v -l '"OMAP3 ISP preview":1->"OMAP3 ISP preview output":0[1]'
>> > media-ctl -v -f '"mt9v032 3-005":0 [SGRBG10 752x480]'
>> > media-ctl -v -f '"OMAP3 ISP CCDC":2 [SGRBG10 752x480]'
>> > media-ctl -v -f '"OMAP3 ISP preview":1 [YUYV 752x480]'
>> >
>>
>> You might want to try UYVY instead of YUYV here and in yavta.
>>
>> > When I try to capture a frame with following yavta command, It asks me
>> > to
>> > press any key to start capturing. Then I trigger capturing but it prints
>> > 'Unable to start streaming: Invalid argument (22)' and fails.
>> > yavta -p -f YUYV -s 752x480 -n 4 --capture=1 --skip 0 /dev/video4
>> > --file=img.bin  # It fails. /dev/video4 is pointing to ISP preview
>> > output.
>> >
>> > Am I missing something either in pipeline configuration or capturing
>> > command?
>> >
>> > Do you have any feedback to my Caspa usage strategy for image
>> > processing?
>> > My strategy:
>> > 1 - First employ ISP for Bayer to YUV conversion
>> > 2 - Get YUV output from ISP pipeline
>> > 3 - Convert it to RGB.
>> >
>> > Does this strategy make sense? Is it possible to convert Bayer to RGB
>> > (bypassing YUV stage) without any significant loss?
>> >
>>
>> --
>> Kartik
>>
>>
>> ------------------------------------------------------------------------------
>> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
>> and much more. Keep your Java skills current with LearnJavaNow -
>> 200+ hours of step-by-step video tutorials by Java experts.
>> SALE $49.99 this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122612
>> _______________________________________________
>> gumstix-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
>
> ------------------------------------------------------------------------------
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE $49.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
> _______________________________________________
> gumstix-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>



--
Kartik

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Caspa on Overo FE - 3.5 kernel

Sertaç Olgunsoylu

Thanks so much Kartik. I'll give it a try and let you know.

On Jan 3, 2013 1:17 AM, "Kartik Mohta" <[hidden email]> wrote:
Sorry for that, the problem is that the output of the ISP is not
752x480. The media-ctl output tells me that the output format is set
to: YUYV 734x471. I guess the size change is due to the way it
converts the bayer to YUV. Using that size (734x471) for yavta works
fine.

Also, this may have been a typo in the email, but your first media-ctl line is
media-ctl -v -l '"mt9v032 3-005c->"OMAP3 ISP CCDC":0[1]'
where it should be
media-ctl -v -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1]'


On Wed, Jan 2, 2013 at 5:48 PM, Sertac Olgunsoylu
<[hidden email]> wrote:
> Hi Kartik,
> I tried UYVY as well. It didn't help out either.
>
>
> On Thu, Jan 3, 2013 at 12:34 AM, Kartik Mohta <[hidden email]> wrote:
>>
>> Hi,
>>
>> On Wed, Jan 2, 2013 at 5:14 PM, Sertac Olgunsoylu
>> <[hidden email]> wrote:
>> > Hi all,
>> > I am trying to bring up Caspa on Overo FE. I built an image with
>> > required
>> > V4L utils (such as media-ctl, yavta) using poky. I am able to boot it up
>> > with no issues. mt9v032 module is up and running. Also, I can capture
>> > frames
>> > in Bayer format (SGRBG10 752x480) with following pipeline configuration:
>> > media-ctl -l '"mt9v032 3-005c":0->"OMAP3 ISP CCDC":0[1]';
>> > media-ctl -l '"OMAP3 ISP CCDC":1->"OMAP3 ISP CCDC output":0[1]';
>> > media-ctl -f '"mt9v032 3-005c":0[SGRBG10 752x480]';
>> > media-ctl -f '"OMAP3 ISP CCDC":1[SGRBG10 752x480]';
>> >
>> > to capture:
>> > yavta -p -f SGRBG10 -s 752x480 -n 4 --capture=1 --skip 0 $(media-ctl -e
>> > "OMAP3 ISP CCDC output") --file=img.bin  # It works well.
>> >
>> > However,
>> > I want to get ISP to do bayer to YUV conversion so that I can convert
>> > YUV
>> > frames to RGB for further processing. In order to do so, I tried
>> > following
>> > ISP pipeline configuration:
>> > media-ctl -v -l '"mt9v032 3-005c->"OMAP3 ISP CCDC":0[1]'
>> > media-ctl -v -l '"OMAP3 ISP CCDC":2->"OMAP3 ISP preview":0[1]'
>> > media-ctl -v -l '"OMAP3 ISP preview":1->"OMAP3 ISP preview output":0[1]'
>> > media-ctl -v -f '"mt9v032 3-005":0 [SGRBG10 752x480]'
>> > media-ctl -v -f '"OMAP3 ISP CCDC":2 [SGRBG10 752x480]'
>> > media-ctl -v -f '"OMAP3 ISP preview":1 [YUYV 752x480]'
>> >
>>
>> You might want to try UYVY instead of YUYV here and in yavta.
>>
>> > When I try to capture a frame with following yavta command, It asks me
>> > to
>> > press any key to start capturing. Then I trigger capturing but it prints
>> > 'Unable to start streaming: Invalid argument (22)' and fails.
>> > yavta -p -f YUYV -s 752x480 -n 4 --capture=1 --skip 0 /dev/video4
>> > --file=img.bin  # It fails. /dev/video4 is pointing to ISP preview
>> > output.
>> >
>> > Am I missing something either in pipeline configuration or capturing
>> > command?
>> >
>> > Do you have any feedback to my Caspa usage strategy for image
>> > processing?
>> > My strategy:
>> > 1 - First employ ISP for Bayer to YUV conversion
>> > 2 - Get YUV output from ISP pipeline
>> > 3 - Convert it to RGB.
>> >
>> > Does this strategy make sense? Is it possible to convert Bayer to RGB
>> > (bypassing YUV stage) without any significant loss?
>> >
>>
>> --
>> Kartik
>>
>>
>> ------------------------------------------------------------------------------
>> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
>> and much more. Keep your Java skills current with LearnJavaNow -
>> 200+ hours of step-by-step video tutorials by Java experts.
>> SALE $49.99 this month only -- learn more at:
>> http://p.sf.net/sfu/learnmore_122612
>> _______________________________________________
>> gumstix-users mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
>
> ------------------------------------------------------------------------------
> Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
> and much more. Keep your Java skills current with LearnJavaNow -
> 200+ hours of step-by-step video tutorials by Java experts.
> SALE $49.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122612
> _______________________________________________
> gumstix-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>



--
Kartik

------------------------------------------------------------------------------
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Loading...