基于百度AI实现 车牌识别
linbin524 发布于2017-12 浏览:29312 回复:44
8
收藏

我的博客地址:http://www.cnblogs.com/linbin524/p/8036158.html

前言

   目前百度的AI接口相对完善,对于文字识别类的操作还需要开发者一一去尝试,去评估这效果到底是怎么的。

文字识别的接口相对简单,官方提供的SDK也集成很好,笔者只是在这上面做了一些前期性的功能数据校验和过滤,以及返回结果的处理。

 

实验效果

先来看一下识别效果:

 1、精细化车牌(识别准确)

 

 

2、实际场景车牌 (识别准确)

 

 

 

3、多车牌(只识别到一个车牌)

 

 

 

 

实际拓展思路

鉴于上述结果,目前百度车牌识别可以做到 实际应用场景的处理,但要真正结合、融合,需要开发者们自己做些前期处理,比如说,你需要在摄像头捕捉车牌时候,自己去动态抓取行驶车牌的车牌,

在使用单个请求将车牌发送给百度,从而实现在真实环境中的车牌识别。

ps:有关相关的技术 可以参考我另外一篇博客,动态视频中的人脸捕捉与人脸识别。 博客地址:http://www.cnblogs.com/linbin524/p/linbin524.html

 

/// 
        /// 车牌识别 返回实体结果
        /// 
        /// 
        /// 
        public static APIBaseModel GetPlateLicense(Image tempImage)
        {

            APIBaseModel tempModel = new APIBaseModel();
            tempModel.contextModel = new DrivingLicenseModel();

            var client = new Ocr.Ocr(Config.clientId, Config.clientSecret);
            var image = ImageHelper.ImageToBytes(tempImage, System.Drawing.Imaging.ImageFormat.Png);
            string result = client.PlateLicense(image).ToString();
            if (result.Contains("\"error_code\""))//说明异常
            {

                tempModel.state = false;
                tempModel.contextModel.errorTypeModel = Json.ToObject(result);
                tempModel.errorMsg = tempModel.contextModel.errorTypeModel.error_discription = OCR_CharacterRecognitionErrorType.GetErrorCodeToDescription(tempModel.contextModel.errorTypeModel.error_code);

            }
            else
            {
                tempModel.state = true;
                tempModel.contextModel.successModel = Json.ToObject(result);

            }
            return tempModel;
        }

 

源码地址:https://github.com/linbin524/AI_Project

收藏
点赞
8
个赞
共44条回复 最后由回复于2023-05
#26xu359642905回复于2017-12

1

0
#24daipeng_hi回复于2017-12
#22 meihysmile回复
车牌识别好多年了

恩,这个感觉政府交管部门的技术走在前沿;哈哈

0
#23zr0519回复于2017-12

果然专业!

0
#22meihysmile回复于2017-12

车牌识别好多年了

0
#21shoranxfyzhy回复于2017-12
#20 静心之王回复
这个识别很厉害,识别的时间性能如何

自己搞一个试试

0
#20静心之王回复于2017-12

这个识别很厉害,识别的时间性能如何

0
#19daipeng_hi回复于2017-12
#18 卡农LLLL回复
快来接入一起改变世界.

哈哈,之前做过一个图片,文字脱敏的案例;感觉还可以

0
#18卡农LLLL回复于2017-12
#17 daipeng_hi回复
大赞,ai越推越广

快来接入一起改变世界.

0
#17daipeng_hi回复于2017-12

大赞,ai越推越广

0
#16卡农LLLL回复于2017-12
#15 荒墨丶迷失回复
[代码]

明显烂了.哈哈哈哈

0
#15荒墨丶迷失回复于2017-12
#14 卡农LLLL回复
我就是写的A标签....结果没生效.你也试试.
0
#14卡农LLLL回复于2017-12
#13 荒墨丶迷失回复
就是插入代码 然后写一个超链接~

我就是写的A标签....结果没生效.你也试试.

0
#13荒墨丶迷失回复于2017-12
#12 卡农LLLL回复
...你代码模式的也不对啊...我选的php.可能真的要文章里面才支持.
展开

就是插入代码 然后写一个超链接~

0
#12卡农LLLL回复于2017-12
#11 linbin524回复
要以代码模式打开 [代码]

...你代码模式的也不对啊...我选的php.可能真的要文章里面才支持.

0
#11linbin524回复于2017-12
#10 卡农LLLL回复
是不是要发文章才行. [代码]

要以代码模式打开

tt
0
#10卡农LLLL回复于2017-12

是不是要发文章才行.

测试链接
0
#8用户已被禁言回复于2017-12
#7 linbin524回复
在外面包一层 <a> 标签

测试

貌似我测试不太行

1
#7linbin524回复于2017-12
#5 用户已被禁言回复
文章底部超链接可以点击。你是怎么写的?

在外面包一层 标签

0
#6linbin524回复于2017-12

html 标签不是很简单吗

 

 

0
TOP
切换版块