车牌识别--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的代码覆盖率.无线的接口自 ...
随机推荐
- Rust 内存管理
Rust 内存管理 Rust 与其他编程语言相比,最大的亮点就是引入了一套在编译期间,通过静态分析的方式,确定所有对象的作用域与生命周期,从而可以精确的在某个对象不再被使用时,将其销毁,并且不引入任何 ...
- 浅谈android反调试之 转发端口
反调试方案: 我们最通常使用的动态工具是IDA, IDA的动态调试端口默认为23946,我们可以通过/pro/net/tcp 查看android 系统所有TCP Socket 启动android_se ...
- 详解keepalived配置和使用
标签:keepalived 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://lanlian.blog.51cto.com/6790 ...
- lucas定理 +证明 学习笔记
lucas定理 p为素数 \[\dbinom n m\equiv\dbinom {n\%p} {m\%p} \dbinom {n/p}{m/p}(mod p)\] 左边一项直接求,右边可递归处理,不包 ...
- 【NOIP2016练习】T3 质数 (分块)
题意:共有N盏灯,标号为1到N,有M个标有不同质数的开关,开关可以控制所有标号为其标号倍数的灯,按一次开关,所有其控制的灭着的灯都点亮,所有其控制的亮着的灯将熄灭.现在,宿管可以无限的按所有开关,所有 ...
- windows7下如何生成ssh公钥(git相关)
1. 安装git,从程序目录打开 "Git Bash" 2. 键入命令:ssh-keygen -t rsa -C "email@email.com" &q ...
- 05深入理解C指针之---指针声明和解引
该系列文章源于<深入理解C指针>的阅读与理解,由于本人的见识和知识的欠缺可能有误,还望大家批评指教. 一.指针声明: 1.声明普通变量:“数据类型 + 空格 + 变量名 + :”实现普通 ...
- ../wxs/utils.wxs not found from
../wxs/utils.wxs not found from 微信小程序,使用Vant Weapp时,引入到项目中时报以下错误: ... ../wxs/utils.wxs not found fro ...
- Linux 之 网络相关设置
网络相关设置 参考教程:[千峰教育] 命令: ping: 作用:通常用于检测网络设备的连通性. 格式:ping IP/域名 选项:-c,指定方式测试数据包的次数 实例:ping www.baidu.c ...
- jq ajax之beforesend(XHR)
用于在向服务器发送请求前添加一些处理函数.例如:搜寻附近店铺,未搜寻出来的时候显示:正在搜寻中... 常见的一种效果,在用ajax请求时,没有返回前会出现前出现一个转动的loading小图标或者“内容 ...