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处理器上測试的更多相关文章

  1. 深度学习之Matlab 转C++在iOS上測试CNN手型识别

    1 前言 在上一篇Blog.我介绍了在iOS上执行CNN的一些方法. 可是,一般来说.我们须要一个性能强劲的机器来跑CNN,我们仅仅只是须要将得到的结果用于移动端. 之前在Matlab使用UFLDL的 ...

  2. Mali GPU OpenGL ES 应用性能优化--測试+定位+优化流程

    1. 使用DS-5 Streamline定位瓶颈 DS-5 Streamline要求GPU驱动启用性能測试,在Mali GPU驱动中激活性能測试对性能影响微不足道. 1.1 DS-5 Streamli ...

  3. UIAutomation使用測试入门

    自己主动化測试的优点: 1.自己主动化能够自己主动測试,不须要人的干预.同一时候还能够不断地反复某一个动作. 2.自己主动化測试在添加了新的功能之后.还能够回归到原理的功能,使其原来的功能不会受到影响 ...

  4. Android自己主动化測试解决方式

    如今,已经有大量的Android自己主动化測试架构或工具可供我们使用,当中包含:Activity Instrumentation, MonkeyRunner, Robotium, 以及Robolect ...

  5. Qt Quick + OpenGL + Bullet初次測试

    Qt Quick + OpenGL + Bullet初次測试 眼下Qt的Quick模块已经表现得很出色,并且可以预留接口来渲染OpenGL场景.一般来说,已经可以满足大部分编程须要了.这次呢.尝试使用 ...

  6. 车牌识别--S5PV210測试第二次优化

    优化: 1.RGB转HSV 浮点运算改成定点运算: 2.匹配模板由图片改成C语言数组: 3.优化測试BMP车牌图片读取(两层for循环改为一层for循环). 总体相比优化之前时间降低110ms左右. ...

  7. MAC中在eclipse luna上搭建移动平台自己主动化測试框架(UIAutomator/Appium/Robotium/MonkeyRunner)关键点记录

    这几天由于原来在用的hp laptop的电池坏掉了,机器一不小心就断电.所以仅仅能花时间在自己的mackbook pro上又一次搭建整套环境.大家都知道搭建好开发环境是个非常琐碎须要耐心的事情,特别是 ...

  8. 基于RYU控制器(controller)上的simple-switch 的APP做的測试-SDN/OpenFlow

    近期一直在学习RYU控制器,在使用的过程中,发现有下面几方面的长处:RYU控制器全然使用Python语言编写,在理解起来和上手速度上是挺快的:RYU控制器的总体架构清晰明了,在日后有时间我会整理一个关 ...

  9. ⽤运营的思路来做无线产品測试-第13届BQConf上的分享

    ⽤运营的思路来做无线产品測试,在2014.10.25.第13届B'QConf(北京软件质量大会)上分享的一个主题.主要是关于京东无线測试的一些实践,包含android和ios的代码覆盖率.无线的接口自 ...

随机推荐

  1. 【Luogu】P1419寻找段落(单调队列)

    题目链接 不知为何状态突然奇差无比,按说这题本来应该是水题的,但不仅不会做,还比着题解爆零五次 二分平均值(想到了),单调队列维护最大区间和(想到了但是不会,???为什么我不会???) #includ ...

  2. [NOIP2009] 提高组 洛谷P1074 靶形数独

    题目描述 小城和小华都是热爱数学的好学生,最近,他们不约而同地迷上了数独游戏,好胜的他 们想用数独来一比高低.但普通的数独对他们来说都过于简单了,于是他们向 Z 博士请教, Z 博士拿出了他最近发明的 ...

  3. c#.net分类上升达人~~~呵呵。。。

    原文发布时间为:2008-11-11 -- 来源于本人的百度文章 [由搬家工具导入] 觉得自己蛮无聊的~~~~~~~~~(>_<)~~~~

  4. mybatis传入map参数,map中包含list(输入参数)

    1.xml中配置: <!-- 根据条件查询满足条件的ID集合开始 --> <select id="getQuestionsIdsForExamPaper" res ...

  5. LNMP 之 Nginx负载均衡服务器

    Nginx负载均衡服务器 参考教程:[千峰教育] 准备工作: 三台服务器,每台服务器都需要安装nginx. 1.关闭防火墙 service iptables stop2.关闭Selinux seten ...

  6. TopCoder SRM 701 Div2 Problem 900 ThueMorseGame(博弈+预处理)

    题意  Alice和Bob在玩一个游戏,Alice先手. 每次一个人可以从一堆式子中拿走任意数量(不超过m)的式子. 取走最后一颗式子的人胜利. 当一个取完某一步的时候剩下的石子数量的二进制表示中1的 ...

  7. Codeforces 536C Tavas and Pashmaks(凸壳)

    题目链接 Tavas and Pashmaks 题目大意:n个人比赛,游泳和赛跑,游泳距离S,赛跑R.每个人对应两个速度(陆地和水上的),如果存在S,R,使得第i个人胜利,那么输出i 题目要求输出所有 ...

  8. BZOJ——1622: [Usaco2008 Open]Word Power 名字的能量

    http://www.lydsy.com/JudgeOnline/problem.php?id=1622 Description     约翰想要计算他那N(1≤N≤1000)只奶牛的名字的能量.每只 ...

  9. mac下mysqldump找不到命令

    之所以会出现MySQL或者mysqldump这样的命令找不到, 我们可以打开/usr/bin文件夹,发现bin目录中并没有mysql打头的UEF文件, 而在/usr/local/mysql/bin中可 ...

  10. VS&quot;后生成事件&quot; 菜单的使用

    网上有很多的文章都在介绍怎样创建一个自己定义的dll文件,以及怎样使用一个dll文件,在此不在赘述.本文主要介绍怎样使用VS2008的"生成后事件"的命令行,将一个dll文件直接复 ...