车牌识别--S5PV210測试第二次优化
优化:
1、RGB转HSV 浮点运算改成定点运算;
2、匹配模板由图片改成C语言数组;
3、优化測试BMP车牌图片读取(两层for循环改为一层for循环)。
总体相比优化之前时间降低110ms左右。
640x480: 160ms 左右
320x240: 55ms 左右
[liujia@210]#./car test/1.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
ÔÁ A F Q 7 8 7 Total Time: time use:158ms
[liujia@210]#./car test/2.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
ÔÁ A 8 S 3 0 8 Total Time: time use:162ms
[liujia@210]#./car test/3.bmp
BMP Size:230454, Info_length:54, H:320, W:240 The Car ID IS:
ÔÁ A G F 7 5 1 Total Time: time use:57ms
[liujia@210]#./car test/4.bmp
BMP Size:230454, Info_length:54, H:320, W:240 The Car ID IS:
ÔÁ A 8 S 3 0 8 Total Time: time use:55ms
[liujia@210]#./car test/5.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
ÔÁ M 0 7 3 6 9 Total Time: time use:141ms
[liujia@210]#./car test/6.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
ÔÁ A 6 Y 2 6 8 Total Time: time use:163ms
[liujia@210]#./car test/7.bmp
BMP Size:230454, Info_length:54, H:320, W:240 The Car ID IS:
ÔÁ A 9 X 6 6 7 Total Time: time use:59ms
[liujia@210]#./car test/8.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
ÔÁ A P 6 8 3 8 Total Time: time use:186ms
[liujia@210]#./car test/9.bmp
BMP Size:879414, Info_length:54, H:640, W:458 The Car ID IS:
ÔÁ A F N 5 5 3 Total Time: time use:167ms
[liujia@210]#./car test/10.bmp
BMP Size:1004214, Info_length:54, H:640, W:523 The Car ID IS:
Íî J 0 8 0 3 6 Total Time: time use:169ms
[liujia@210]#./car test/11.bmp
BMP Size:1035978, Info_length:54, H:665, W:519 The Car ID IS:
ËÕ B H 6 0 8 2 Total Time: time use:172ms
[liujia@210]#./car test/12.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
ÔÁ A F Z 9 0 5 Total Time: time use:172ms
[liujia@210]#./car test/13.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
ÔÁ A A D 2 6 3 Total Time: time use:172ms
眼下影响时间的问题,已经不是浮点了。而是大量的for循环中的运算,60%的时间都使用在车牌定位中。 一旦车牌定位后。后面的字符切割和匹配使用10ms左右时间。就能够完毕。
对照測试使用的笔记本I3-380cpu,虚拟机执行结果
640X480:27ms左右
320x240: 9ms左右
root@lj:/work/carid/0532# ./car test/1.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
▒▒ A F Q 7 8 7 Total Time: time use:27ms
root@lj:/work/carid/0532# ./car test/2.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
▒▒ A 8 S 3 0 8 Total Time: time use:103ms
root@lj:/work/carid/0532# ./car test/3.bmp
BMP Size:230454, Info_length:54, H:320, W:240 The Car ID IS:
▒▒ A G F 7 5 1 Total Time: time use:9ms
root@lj:/work/carid/0532# ./car test/4.bmp
BMP Size:230454, Info_length:54, H:320, W:240 The Car ID IS:
▒▒ A 8 S 3 0 8 Total Time: time use:9ms
root@lj:/work/carid/0532# ./car test/5.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
▒▒ M 0 7 3 6 9 Total Time: time use:23ms
root@lj:/work/carid/0532# ./car test/6.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
▒▒ A 6 Y 2 6 8 Total Time: time use:33ms
root@lj:/work/carid/0532# ./car test/7.bmp
BMP Size:230454, Info_length:54, H:320, W:240 The Car ID IS:
▒▒ A 9 X 6 6 7 Total Time: time use:9ms
root@lj:/work/carid/0532# ./car test/8.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
▒▒ A P 6 8 3 8 Total Time: time use:28ms
root@lj:/work/carid/0532# ./car test/9.bmp
BMP Size:879414, Info_length:54, H:640, W:458 The Car ID IS:
▒▒ A F N 5 5 3 Total Time: time use:25ms
root@lj:/work/carid/0532# ./car test/10.bmp
BMP Size:1004214, Info_length:54, H:640, W:523 The Car ID IS:
▒▒ J 0 8 0 3 6 Total Time: time use:27ms
root@lj:/work/carid/0532# ./car test/11.bmp
BMP Size:1035978, Info_length:54, H:665, W:519 The Car ID IS:
▒▒ B H 6 0 8 2 Total Time: time use:27ms
root@lj:/work/carid/0532# ./car test/12.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
▒▒ A F Z 9 0 5 Total Time: time use:27ms
root@lj:/work/carid/0532# ./car test/13.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
▒▒ A A D 2 6 3 Total Time: time use:25ms
对照ME865(OMAP4430)
640x480:130ms左右
320x240:50ms左右
root@edison:/data # ./car /sdcard/test/1.bmp
./car /sdcard/test/1.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
粤 A F Q 7 8 7 Total Time: time use:122ms
root@edison:/data # ./car /sdcard/test/2.bmp
./car /sdcard/test/2.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
粤 A 8 S 3 0 8 Total Time: time use:125ms
root@edison:/data # ./car /sdcard/test/3.bmp
./car /sdcard/test/3.bmp
BMP Size:230454, Info_length:54, H:320, W:240 The Car ID IS:
粤 A G F 7 5 1 Total Time: time use:50ms
root@edison:/data # ./car /sdcard/test/4.bmp
./car /sdcard/test/4.bmp
BMP Size:230454, Info_length:54, H:320, W:240 The Car ID IS:
粤 A 8 S 3 0 8 Total Time: time use:42ms
root@edison:/data # ./car /sdcard/test/5.bmp
./car /sdcard/test/5.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
粤 M 0 7 3 6 9 Total Time: time use:94ms
root@edison:/data # ./car /sdcard/test/6.bmp
./car /sdcard/test/6.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
粤 A 6 Y 2 6 8 Total Time: time use:134ms
root@edison:/data # ./car /sdcard/test/7.bmp
./car /sdcard/test/7.bmp
BMP Size:230454, Info_length:54, H:320, W:240 The Car ID IS:
粤 A 9 X 6 6 7 Total Time: time use:51ms
root@edison:/data # ./car /sdcard/test/8.bmp
./car /sdcard/test/8.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
粤 A P 6 8 3 8 Total Time: time use:132ms
root@edison:/data # ./car /sdcard/test/9.bmp
./car /sdcard/test/9.bmp
BMP Size:879414, Info_length:54, H:640, W:458 The Car ID IS:
粤 A F N 5 5 3 Total Time: time use:124ms
root@edison:/data # ./car /sdcard/test/10.bmp
./car /sdcard/test/10.bmp
BMP Size:1004214, Info_length:54, H:640, W:523 The Car ID IS:
皖 J 0 8 0 3 6 Total Time: time use:171ms
root@edison:/data # ./car /sdcard/test/11.bmp
./car /sdcard/test/11.bmp
BMP Size:1035978, Info_length:54, H:665, W:519 The Car ID IS:
苏 B H 6 0 8 2 Total Time: time use:207ms
root@edison:/data # ./car /sdcard/test/12.bmp
./car /sdcard/test/12.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
粤 A F Z 9 0 5 Total Time: time use:204ms
root@edison:/data # ./car /sdcard/test/13.bmp
./car /sdcard/test/13.bmp
BMP Size:921654, Info_length:54, H:640, W:480 The Car ID IS:
粤 A A D 2 6 3 Total Time: time use:138ms
车牌识别--S5PV210測试第二次优化的更多相关文章
- 车牌识别--S5PV210測试
cortex-A8(S5PV210) Linux-3.9.7 arm-linux-gcc 4.5.1(FriendlyARM) 根文件系统:NFS 软浮点执行结果: [liujia@210]#./so ...
- 泛泰A820L (高通MSM8660 cpu) 3.4内核的CM10.1(Android 4.2.2) 測试版第二版
欢迎关注泛泰非盈利专业第三方开发团队 VegaDevTeam (本team 由 syhost suky zhaochengw(z大) xuefy(大星星) tenfar(R大师) loogeo cr ...
- QTP,自己主动化測试学习笔记,六月九号
測试自己主动化实现的两个难点设计--功能分解 实现--对象的识别 測试自己主动化实现的两个难点-功能分解 清晰画出业务流程图 依据业务流程分解业务功能.能够被复用的功能也要被分解出来. 依照路径覆盖的 ...
- 车牌识别--OMAP4430处理器上測试
OMAP4430(ME865) arm-linux-gcc 4.5.1(FriendlyARM) 软浮点执行结果: root@lj:/workspace/carid# arm-linux-gcc ca ...
- 深度学习之Matlab 转C++在iOS上測试CNN手型识别
1 前言 在上一篇Blog.我介绍了在iOS上执行CNN的一些方法. 可是,一般来说.我们须要一个性能强劲的机器来跑CNN,我们仅仅只是须要将得到的结果用于移动端. 之前在Matlab使用UFLDL的 ...
- 真机測试时的错误:No matching provisioning profiles found
1.出现错误的原因是这种---- 公司接收一个外包项目,原来做真机測试的时候,用的是公司申请的苹果开发人员账号.如今项目结束了,准备上线,但客户要求使用客户自己的苹果开发人员是账号上线,于是就用客户的 ...
- 【金阳光測试】基于控件核心技术探讨---Android自己主动化系列(2)---2013年5月
第一讲分享了下安卓自己主动化一些概况和一些自己主动化框架现状和技术可以解决什么样的问题. 这次课就深入到android世界里面.遨游.翱翔.深入了解自己主动化測试核心技术. 搞过编程开发的同学听到in ...
- 【金阳光測试】大话Android自己主动化測试--Android自己主动化系列(1)--金阳光于2013年4月份
Android自己主动化測试框架和工具在四年多的发展日趋成熟. 从五年前的第一代自己主动化架构演进到眼下第四代(本系列讲座第7篇后将具体剖析第三代和第四代自己主动化框架)从曾经最早谷歌推崇的monke ...
- EasyPR--一个开源的中文车牌识别系统
我正在做一个开源的中文车牌识别系统,Git地址为:https://github.com/liuruoze/EasyPR. 我给它取的名字为EasyPR,也就是Easy to do Plate Reco ...
随机推荐
- center os 7最小化安装后按table无法补全命令的问题
闲来无趣,这两天huskiesir又重新安装了下center os 7操作系统,结果呢,发现一个问题:按table键无法补全命令啊. 咦,奇怪了,这次怎么回事,完全没遇到过啊.哦,回想了一下,和以往的 ...
- .ashx 实现自动路由和参数填充
在Mvc中访问控制器,参数填充和路由控制都非常方便,但之前项目用的是webFrom,和js交互的ashx页面,路由非常麻烦要根据传进来关键字来做switch,参数填充更坑,要一个一个去form中取出来 ...
- linux学习之高并发服务器篇(二)
高并发服务器 1.线程池并发服务器 两种模型: 预先创建阻塞于accept多线程,使用互斥锁上锁保护accept(减少了每次创建线程的开销) 预先创建多线程,由主线程调用accept 线程池 3.多路 ...
- ArcGIS api for javascript——地图配置-增加标注到滑动器
描述 ArcGISTiledMapServiceLayer,这意味着图层有一个在明确的比例的预先渲染的地图切片的cache.能够从tileInfo属性获得图层的的缓存比例数组.这是本例中标注如何被得到 ...
- Qt 5.3 下OpenCV 2.4.11 开发(0)图像处理基本概念
1.普通情况下的RGB彩色图像:它的每一个像素点都是由三个通道组成,即红色(R).绿色(G)和蓝色(B).8位三通道彩色图像就是每一个像素中每一个通道的取值范围都是 0~255(即二进制下的8位数), ...
- IIS 无法读取配置节"system.web.extensions",由于它缺少节声明
作者:jiankunking 出处:http://blog.csdn.net/jiankunking 今天在本地安装iis.搭建站点,应用程序的时候报错以下的错误: server错误 Internet ...
- webpack02
consumer-index.html <!DOCTYPE html> <html lang="en"> <head> <meta cha ...
- css footer not displaying at the bottom of the page
https://stackoverflow.com/questions/15960290/css-footer-not-displaying-at-the-bottom-of-the-page The ...
- SGU 461 Wiki Lists dfs
不难的题,不过蛮有意思的dfs #include <iostream> #include <cstdio> #include <fstream> #include ...
- Python(五) 包、模块、函数与变量作用域
一.while循环与使用场景 CONDITION=1 while CONDITION <=5 : CONDITION +=1 print("hello") else: pri ...