dm8148 开发记录 六 dsp和arm 端 opencv测试时间

本文详细记录了在C6Accel平台下使用OpenCV进行函数性能测试的过程,包括Canny边缘检测、Affine变换、2D旋转矩阵等操作的比较,并特别关注了人脸识别任务的执行时间。尽管DSP和A8的表现不尽如人意,但提供了深入的性能分析。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

成功测试时间如下:

root@dm814x-evm:/opt/c6accel_app/c6accel_opencv_testapp# ls

c6accel_opencv_testapp         opencv_images
cmemk.ko                       syslink.ko
go.sh                          ti814x.xe674
loadmodules_ti8148_c6accel.sh
root@dm814x-evm:/opt/c6accel_app/c6accel_opencv_testapp# ./c6accel_opencv_testap
p
******************************************************************************
Sample application for testing kernels in C6Accel started.
******************************************************************************
-----------------------------------------------------------------------------
Test for OpenCV Functions in C6accel
-----------------------------------------------------------------------------
Called ARM cvCanny function 1 times (average time: 105.791000 ms)
Called DSP cvCanny function 1 times (average time: 70.645000 ms)
Difference (L2 norm) between ARM and DSP outputs: 0.000000
Test for Canny edge detection done
Called ARM get Affine transform matrix 1 times (average time: 12.956000 ms)
Called DSP get Affine transform matrix 1 times (average time: 0.608000 ms)
Difference (L2 norm) between ARM and DSP outputs: 0.000000
Called ARM Affine transform function 1 times (average time: 75.894000 ms)
Called DSP Affine transform function 1 times (average time: 59.631000 ms)
Difference (L2 norm) between ARM and DSP outputs: 7926.342031
Called ARM 2D Rotation Matrix function 1 times (average time: 0.263000 ms)
Called DSP 2D Rotation Matrix function 1 times (average time: 0.541000 ms)
Difference (L2 norm) between ARM and DSP outputs: 0.000000
Called ARM Rotation using Affine function 1 times (average time: 89.467000 ms)

Called DSP Rotation using Affine function 1 times (average time: 67.128000 ms)

........................


root@dm814x-evm:/opt/c6accel_app/c6accel_opencv_testapp# ./c6accel_opencv_testap
p
******************************************************************************
Sample application for testing kernels in C6Accel started.
******************************************************************************
-----------------------------------------------------------------------------
Test for OpenCV Functions in C6accel
-----------------------------------------------------------------------------
cvHaarDetectObjects Test (opencv_images/faces_320x240.png, opencv_images/haarcascade_frontalface_alt2.xml)
(Overhead time is 0.004000 ms.)
Memory for images,cascade and
Memory allocation for images and storage done
Reading of Cascade complete
top= 40027010
bottom= 40027010
Called ARM HaarDetectObjects function (time: 4097.659000 ms)
ARM sequence contains 5 elements:
   0:   46,   48 (42x42)
   1:  174,   48 (37x37)
   2:  240,   51 (38x38)
   3:  110,   48 (40x40)
   4:   92,   37 (131x131)
Memory allocation for images and storage done
Called DSP HaarDetectObjects function (time: 832.643000 ms)
DSP sequence contains 5 elements:
   0:   46,   48 (41x41)
   1:  175,   49 (35x35)
   2:  240,   52 (37x37)
   3:   17,  198 (34x34)
   4:  110,   48 (39x39)
C6accel_cvHaarDetectObjects test completed successfully
******************************************************************************
All tests done.
******************************************************************************

人脸识别的时间,怎么那么长??dsp 和a8都不怎么理想啊

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

听海拉拉

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值