车牌识别--OMAP4430处理器上測试
OMAP4430(ME865)
arm-linux-gcc 4.5.1(FriendlyARM)
软浮点执行结果:
root@lj:/workspace/carid# arm-linux-gcc car.c -o softcar -lm -static
640x480BMP位图须要大概380ms
320x140BMP位图须要大概140ms
O3优化后性能提升一倍多
root@lj:/workspace/carid# arm-linux-gcc car.c -o softcar -lm -static -O3
640x480BMP位图须要大概175ms
320x140BMP位图须要大概60ms
没有优化測试:
root@edison:/data # ./softcar /sdcard/test/1.bmp
./softcar /sdcard/test/1.bmp BMP Size IS:921654
W:640 H:480 The Car ID IS:
粤 A F Q 7 8 7 time 375ms
root@edison:/data # ./softcar /sdcard/test/2.bmp
./softcar /sdcard/test/2.bmp BMP Size IS:921654
W:640 H:480 The Car ID IS:
粤 A 8 S 3 0 8 time 382ms
root@edison:/data # ./softcar /sdcard/test/3.bmp
./softcar /sdcard/test/3.bmp BMP Size IS:230454
W:320 H:240 The Car ID IS:
粤 A G F 7 5 1 time 140ms
root@edison:/data # ./softcar /sdcard/test/4.bmp
./softcar /sdcard/test/4.bmp BMP Size IS:230454
W:320 H:240 The Car ID IS:
粤 A 8 S 3 0 8 time 145ms
root@edison:/data # ./softcar /sdcard/test/5.bmp
./softcar /sdcard/test/5.bmp BMP Size IS:921654
W:640 H:480 The Car ID IS:
粤 M 0 7 3 6 9 time 342ms
root@edison:/data # ./softcar /sdcard/test/6.bmp
./softcar /sdcard/test/6.bmp BMP Size IS:921654
W:640 H:480 The Car ID IS:
粤 A 6 Y 2 6 8 time 372ms
root@edison:/data # ./softcar /sdcard/test/7.bmp
./softcar /sdcard/test/7.bmp BMP Size IS:230454
W:320 H:240 The Car ID IS:
粤 A 9 X 6 6 7 time 137ms
root@edison:/data # ./softcar /sdcard/test/8.bmp
./softcar /sdcard/test/8.bmp BMP Size IS:921654
W:640 H:480 The Car ID IS:
粤 A P 6 8 3 8 time 422ms
root@edison:/data # ./softcar /sdcard/test/9.bmp
./softcar /sdcard/test/9.bmp BMP Size IS:879414
W:640 H:458 The Car ID IS:
粤 A F N 5 5 3 time 378ms
root@edison:/data # ./softcar /sdcard/test/10.bmp
./softcar /sdcard/test/10.bmp BMP Size IS:1004214
W:640 H:523 The Car ID IS:
皖 J 0 8 0 3 6 time 397ms
root@edison:/data # ./softcar /sdcard/test/11.bmp
./softcar /sdcard/test/11.bmp BMP Size IS:1035978
W:665 H:519 The Car ID IS:
苏 B H 6 0 8 2 time 393ms
root@edison:/data # ./softcar /sdcard/test/12.bmp
./softcar /sdcard/test/12.bmp BMP Size IS:921654
W:640 H:480 The Car ID IS:
粤 A F Z 9 0 5 time 380ms
root@edison:/data # ./softcar /sdcard/test/13.bmp
./softcar /sdcard/test/13.bmp BMP Size IS:921654
W:640 H:480 The Car ID IS:
粤 A A D 2 6 3 time 391ms
root@edison:/data #
O3优化后測试结果:
root@edison:/data # ./softcar /sdcard/test/1.bmp
./softcar /sdcard/test/1.bmp BMP Size is:921654
W:640 H:480 The Car ID IS:
粤 A F Q 7 8 7 time 165ms
root@edison:/data # ./softcar /sdcard/test/2.bmp
./softcar /sdcard/test/2.bmp BMP Size is:921654
W:640 H:480 The Car ID IS:
粤 A 8 S 3 0 8 time 173ms
root@edison:/data # ./softcar /sdcard/test/3.bmp
./softcar /sdcard/test/3.bmp BMP Size is:230454
W:320 H:240 The Car ID IS:
粤 A G F 7 5 1 time 62ms
root@edison:/data # ./softcar /sdcard/test/4.bmp
./softcar /sdcard/test/4.bmp BMP Size is:230454
W:320 H:240 The Car ID IS:
粤 A 8 S 3 0 8 time 61ms
root@edison:/data # ./softcar /sdcard/test/5.bmp
./softcar /sdcard/test/5.bmp BMP Size is:921654
W:640 H:480 The Car ID IS:
粤 M 0 7 3 6 9 time 152ms
root@edison:/data # ./softcar /sdcard/test/6.bmp
./softcar /sdcard/test/6.bmp BMP Size is:921654
W:640 H:480 The Car ID IS:
粤 A 6 Y 2 6 8 time 169ms
root@edison:/data # ./softcar /sdcard/test/7.bmp
./softcar /sdcard/test/7.bmp BMP Size is:230454
W:320 H:240 The Car ID IS:
粤 A 9 X 6 6 7 time 59ms
root@edison:/data # ./softcar /sdcard/test/8.bmp
./softcar /sdcard/test/8.bmp BMP Size is:921654
W:640 H:480 The Car ID IS:
粤 A P 6 8 3 8 time 179ms
root@edison:/data # ./softcar /sdcard/test/9.bmp
./softcar /sdcard/test/9.bmp BMP Size is:879414
W:640 H:458 The Car ID IS:
粤 A F N 5 5 3 time 179ms
root@edison:/data # ./softcar /sdcard/test/10.bmp
./softcar /sdcard/test/10.bmp BMP Size is:1004214
W:640 H:523 The Car ID IS:
皖 J 0 8 0 3 6 time 180ms
root@edison:/data # ./softcar /sdcard/test/11.bmp
./softcar /sdcard/test/11.bmp BMP Size is:1035978
W:665 H:519 The Car ID IS:
苏 B H 6 0 8 2 time 172ms
root@edison:/data # ./softcar /sdcard/test/12.bmp
./softcar /sdcard/test/12.bmp BMP Size is:921654
W:640 H:480 The Car ID IS:
粤 A F Z 9 0 5 time 175ms
root@edison:/data # ./softcar /sdcard/test/13.bmp
./softcar /sdcard/test/13.bmp BMP Size is:921654
W:640 H:480 The Car ID IS:
粤 A A D 2 6 3 time 174ms
代码本身有非常多优化的地方,尤其是浮点和for循环。
假设做好优化,预计再S5PV210上可以在100ms以内处理单张车牌。
代码稍后提供
车牌识别--OMAP4430处理器上測试的更多相关文章
- 深度学习之Matlab 转C++在iOS上測试CNN手型识别
1 前言 在上一篇Blog.我介绍了在iOS上执行CNN的一些方法. 可是,一般来说.我们须要一个性能强劲的机器来跑CNN,我们仅仅只是须要将得到的结果用于移动端. 之前在Matlab使用UFLDL的 ...
- Mali GPU OpenGL ES 应用性能优化--測试+定位+优化流程
1. 使用DS-5 Streamline定位瓶颈 DS-5 Streamline要求GPU驱动启用性能測试,在Mali GPU驱动中激活性能測试对性能影响微不足道. 1.1 DS-5 Streamli ...
- UIAutomation使用測试入门
自己主动化測试的优点: 1.自己主动化能够自己主动測试,不须要人的干预.同一时候还能够不断地反复某一个动作. 2.自己主动化測试在添加了新的功能之后.还能够回归到原理的功能,使其原来的功能不会受到影响 ...
- Android自己主动化測试解决方式
如今,已经有大量的Android自己主动化測试架构或工具可供我们使用,当中包含:Activity Instrumentation, MonkeyRunner, Robotium, 以及Robolect ...
- Qt Quick + OpenGL + Bullet初次測试
Qt Quick + OpenGL + Bullet初次測试 眼下Qt的Quick模块已经表现得很出色,并且可以预留接口来渲染OpenGL场景.一般来说,已经可以满足大部分编程须要了.这次呢.尝试使用 ...
- 车牌识别--S5PV210測试第二次优化
优化: 1.RGB转HSV 浮点运算改成定点运算: 2.匹配模板由图片改成C语言数组: 3.优化測试BMP车牌图片读取(两层for循环改为一层for循环). 总体相比优化之前时间降低110ms左右. ...
- MAC中在eclipse luna上搭建移动平台自己主动化測试框架(UIAutomator/Appium/Robotium/MonkeyRunner)关键点记录
这几天由于原来在用的hp laptop的电池坏掉了,机器一不小心就断电.所以仅仅能花时间在自己的mackbook pro上又一次搭建整套环境.大家都知道搭建好开发环境是个非常琐碎须要耐心的事情,特别是 ...
- 基于RYU控制器(controller)上的simple-switch 的APP做的測试-SDN/OpenFlow
近期一直在学习RYU控制器,在使用的过程中,发现有下面几方面的长处:RYU控制器全然使用Python语言编写,在理解起来和上手速度上是挺快的:RYU控制器的总体架构清晰明了,在日后有时间我会整理一个关 ...
- ⽤运营的思路来做无线产品測试-第13届BQConf上的分享
⽤运营的思路来做无线产品測试,在2014.10.25.第13届B'QConf(北京软件质量大会)上分享的一个主题.主要是关于京东无线測试的一些实践,包含android和ios的代码覆盖率.无线的接口自 ...
随机推荐
- 【Luogu】P2766最长不下降子序列问题(暴力网络流)
题目链接 水题qwq,数据都那么水. 我要是出数据的人我就卡$n^3$建图. qwq. 然而这么水的题我!居!然!没!有!1!A!!还!提!交!了!五!遍!!! md从现在开始要锻炼1A率了 看我从今 ...
- hihoCoder #1246 王胖浩与环
题目大意 $n$($1\le n\le 2000$)个正整数 $a_1, a_2, \dots, a_n$($a_i\le 5\times 10^7$)分布在一个圆环上. 定义 $b_k$ 为:将环上 ...
- ACM程序设计选修课——1036: Hungar的菜鸟赛季(YY)
1036: Hungar的菜鸟赛季 Time Limit: 1 Sec Memory Limit: 64 MB Submit: 20 Solved: 14 [Submit][Status][Web ...
- Codeforces Round #345 (Div. 2)——B. Beautiful Paintings(贪心求上升序列个数)
B. Beautiful Paintings time limit per test 1 second memory limit per test 256 megabytes input standa ...
- [LOJ#2255][BZOJ5017][Snoi2017]炸弹
[LOJ#2255][BZOJ5017][Snoi2017]炸弹 试题描述 在一条直线上有 N 个炸弹,每个炸弹的坐标是 Xi,爆炸半径是 Ri,当一个炸弹爆炸时,如果另一个炸弹所在位置 Xj 满足: ...
- HDU-2853 Assignment
求二分最大匹配,但还要尽量接近原匹配... 解决方法:对于N个顶点的二分图,每条边同时乘上一个比N稍微大的数N',然后对于在原匹配的边就都+1. 经过这样处理,求得的答案Ans乘除N'即是原图的最大匹 ...
- <定时主库导出/备库导入>
1.设置定时任务时间及所需要的dmp文件路径 [mm1@localhost ~]$ crontab -e 0 0 * * * sh /home/mm1/exp_table.sh 2>& ...
- node--http小爬虫&事件模块
//http小爬虫 var http=require('http') var cheerio=require('cheerio') var url='http://www.imooc.com/lear ...
- PXC部署,配置,操作原理
参考:https://www.cnblogs.com/kevingrace/p/5685371.html?utm_source=itdadao&utm_medium=referra ...
- js-className修改class属性
1.修改className 1)修改class类名为p-a-0 2)在保留class="p1"的基础上再添加一个类名为p-a-0 2.删除className 1).结果需删除cla ...