From: Carlos Rafael Giani <dv@pseudoterminal.org>
To: meta-freescale@yoctoproject.org
Subject: Re: OpenCV capture
Date: Tue, 14 Jul 2015 16:53:25 +0200 [thread overview]
Message-ID: <55A52265.1040406@pseudoterminal.org> (raw)
In-Reply-To: <55A521DF.2040902@mlbassoc.com>
On 07/14/2015 04:51 PM, Gary Thomas wrote:
> On 2015-07-14 08:33, Carlos Rafael Giani wrote:
>> On 07/14/2015 04:13 PM, Gary Thomas wrote:
>>> I'd like to use OpenCV with my i.MX6 system to capture and
>>> process data directly from the camera(s) I have connected
>>> to the CPU. Sadly, these cameras (CCS, MIPI) produce I420
>>> data but the OpenCV capture code can only work with GBR24.
>>>
>>> Is there a way to make this conversion happen, perhaps using
>>> the VPU/IPU (I'm not sure which)?
>>>
>>
>> I420 -> RGB/BGR should be doable with IPU and G2D. I recommend using
>> G2D, since it is much more straightforward to use. GBR is not
>> supported, but could you swap G and B inside OpenCV?
>
> Perhaps. How would I set things up to do this conversion
> in the IPU/G2D?
>
If you are using GStreamer, gstreamer-imx has imxipuvideotransform and
imxg2dvideotransform elements that can do this.
You can also look at their source code.
next prev parent reply other threads:[~2015-07-14 14:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-14 14:13 OpenCV capture Gary Thomas
2015-07-14 14:33 ` Carlos Rafael Giani
2015-07-14 14:51 ` Gary Thomas
2015-07-14 14:53 ` Carlos Rafael Giani [this message]
2015-07-15 3:08 ` Alfonso Tamés
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55A52265.1040406@pseudoterminal.org \
--to=dv@pseudoterminal.org \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.