车牌识别--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】P3311数数(AC自动机上DP)
题目链接 蒟蒻今天终于学会了AC自动机,感觉很稳 (后一句愚人节快乐) 这题开一个f[i][j][k]表示有没有受到限制,正在枚举第j位,来到了AC自动机的第k个节点 的方案数 随后可以刷表更新 注意 ...
- [JSOI2007]字符加密Cipher SA
[JSOI2007]字符加密Cipher Time Limit: 10 Sec Memory Limit: 162 MBSubmit: 7859 Solved: 3410[Submit][Stat ...
- Unity Microphone 录音时 检测声音大小
刚开始以为只取录音时的最后一个sample来判断音量大小,发现都检测不到. 后来搜索了一下,原来需要取一段sample来判断,有的是这一段取平均值作为音量大小.我这里是取出一段sample中的峰值(p ...
- C语言第四题
今天就一道题 阅读printf代码的具体实现,要求在阅读过程中要做下列的事 1.至少列出十个c标准库的方法,并且说明他们方法的含义,以及参数的含义 2.至少列出2个c标准库的引入(或者是依赖),并且说 ...
- 介绍一款移动端滚动加载的插件---dropload
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8&quo ...
- 转 python基础学习笔记(一)
http://www.cnblogs.com/fnng/category/454439.html 下面我们创建一个文件 root@fnngj-H24X:/hzh/python# touch hell. ...
- 天梯赛 - L2-003 月饼
题目链接:https://www.patest.cn/contests/gplt/L2-003 现在只能做水题~ #include <iostream> #include <cstd ...
- 标题:如何使用ShareSDK实现Cocos2d-x的Android/iOS分享与授权
Cocos2DX 简介 Cocos2d-x是一套成熟的开源跨平台游戏开发框架.其引擎提供了图形渲染.GUI.音频.网络.物理.用户输入等丰富的功能,被广泛应用于游戏开发及交互式应用的构建.引擎的核心采 ...
- 教你写Linux设备驱动程序:一个简短的教程
教你写Linux设备驱动程序:一个简短的教程 http://blog.chinaunix.net/uid-20799298-id-99675.html
- Maven的构建配置文件(Build Profiles)
在命令行使用构建配置文件时,是-P,比如:mvn -Pinput 注意:这里的构建配置文件并不是一个真正的文件,而是通过指定参数来做特定的事. 以下内容引用自https://ayayui.gitboo ...