about i.MX6 opencv

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

about i.MX6 opencv

跳至解决方案
6,801 次查看
宗標廖
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

标签 (4)
0 项奖励
回复
1 解答
4,449 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
回复
5 回复数
4,450 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
回复
4,449 次查看
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 项奖励
回复
4,449 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
回复
4,449 次查看
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 项奖励
回复
4,449 次查看
igorpadykov
NXP Employee
NXP Employee

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 项奖励
回复