about i.MX6 opencv

cancel
Showing results for 
Search instead for 
Did you mean: 

about i.MX6 opencv

Jump to solution
2,953 Views
宗標廖
Contributor V

Hello,Community

Could you tell me if OpenCV uses GPU(2D/3D) or not on i.MX6.

Or tell me the method how to confirm it on i.MX6Sabre board.

Thank you!

ZongbiaoLiao

Labels (4)
0 Kudos
1 Solution
601 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi ZongbiaoLiao

yes it uses gpu, usage is described on

http://imxcv.blogspot.ca/2014/02/building-opencv-24x-for-freescales-imx6.html

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
5 Replies
602 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi ZongbiaoLiao

yes it uses gpu, usage is described on

http://imxcv.blogspot.ca/2014/02/building-opencv-24x-for-freescales-imx6.html

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
601 Views
ezerochiou
Contributor III

Hi Igorpadykov,

I'm confused on a comment in the link you provided:

http://imxcv.blogspot.ca/2014/02/building-opencv-24x-for-freescales-imx6.html

I saw Andre's comment ,the OpenCV seems couldn't take any advantage of iMX6 GPU. Not sure if I'm misunderstanding?

So far, I encountered facedetect uvc video performance issue both on iMX6Q Yocto 1.7 and Litb(linux BSP 4.1.0).

The symptom is CPU usage is around 99% and video capture from UVC(resolution is 720P) is very leg.

I'm not sure what can I improve. Thanks.

***********************************************************************************************************************************

Andre SilvaFebruary 4, 2015 at 2:06 AM

Hi Orion,

unfortunately it doesnt take any advantage of the gpu. OpenCV deals with CUDA and Full profile OpenCL, imx6 only supports the embedded profile. The performance is good as long you don´t use large images, I could run the face detection demo (modified to only detected front faces), on a 320x240 image at about 30fps, if I am not wrong.

0 Kudos
601 Views
igorpadykov
NXP TechSupport
NXP TechSupport

seems this refers only to image detection and mentioned

in sect.5 AN4629 Fast Image Processing with i.MX 6 Series

http://cache.freescale.com/files/32bit/doc/app_note/AN4629.pdf

0 Kudos
601 Views
ezerochiou
Contributor III

Hi Igorpadykov,

Could we have a way to enable OpenCL EP in OpenCV? (According to OpenCV SEPC, it seems need OpenCL full profile.)

Thanks.

0 Kudos
601 Views
igorpadykov
NXP TechSupport
NXP TechSupport

according to sect.32.1 Overview i.MX6DQ Reference Manual

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6DQRM.pdf

GPU module supports the following graphics APIs:

OpenCL 1.1 E

there is no way to change it as this is defined in hardware.

~igor

0 Kudos