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. HDU——2054A==B?

    A == B ? Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total S ...

  2. [图论训练]BZOJ 3245: 最快路线【最短路】

    Description 精 明的小R每每开车出行总是喜欢走最快路线,而不是最短路线.很明显,每条道路的限速是小R需要考虑的关键问题.不过有一些限速标志丢失了,于是小R将不知 道能开多快.不过有一个合理 ...

  3. CentOS7 Failed to start iptables.解决方法

    Shit, CentOS怎么这么多bug.... 公司机房周日突然掉电,之前的Openstack环境就不能用了. 重新Run了一遍安装脚本,发现这个错误: iptables 咋又起不来了呢..... ...

  4. 关于VBA和“网抓”的一些贴

    https://zhuanlan.zhihu.com/p/20701359 使用Excel+VBA对网页进行操作 http://club.excelhome.net/thread-1215914-1- ...

  5. Java 微信公众号开发--- 接入微信

    开发微信公众号在没有正式的公众平台账号时,我们可以使用测试平台账号--- 测试平台申请地址:https://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandb ...

  6. 【NOIP2016练习】T1 string (计数)

    题意: 思路: ; ..]of int64; n,k,i:longint; ans,x,y:int64; s,t:ansistring; function c(x,y:longint):int64; ...

  7. 35深入理解C指针之---结构体基础

    一.结构体基础 1.定义:结构体大大加强了C的数据聚合能力,可以使得不同类型的数据进行结合 2.特征: 1).结构体可以使得不同类型的数据进行结合 2).结构体可以使用内置的数据类型,包括指针 3). ...

  8. 开发使用mysql的一些必备知识点整理(一)初阶

    简介 主要知识点包括:能够与mysql建立连接,创建数据库.表,分别从图形界面与脚本界面两个方面讲解 相关的知识点包括:E-R关系模型,数据库的3范式,mysql中数据字段的类型,字段约束 数据库的操 ...

  9. LeetCode OJ——Word Ladder

    http://oj.leetcode.com/problems/word-ladder/ 图的最短路径问题,可以用最短路径算法,也可以深搜,也可以广搜. 深搜版本: 第一次写的时候,把sum和visi ...

  10. AC日记——合唱队形 洛谷 P1901

    题目描述 N位同学站成一排,音乐老师要请其中的(N-K)位同学出列,使得剩下的K位同学排成合唱队形. 合唱队形是指这样的一种队形:设K位同学从左到右依次编号为1,2…,K,他们的身高分别为T1,T2, ...