基于百度AI实现 车牌识别
linbin524 发布于2017-12 浏览:29210 回复: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
#67回复于2023-05

感谢分享

0
#46hefeitest回复于2018-07

希望官方把实用的例子共享出来

0
#45hefeitest回复于2018-07

感谢楼主分享

0
#44丶夜7回复于2018-06

请问下 有python的版本吗 

0
#43yangjingyuan02回复于2018-04

车牌新版本优化了,提供了置信度和位置输出了

0
#42K零度以下回复于2018-03
#24 daipeng_hi回复
恩,这个感觉政府交管部门的技术走在前沿;哈哈

这个是事实啊

0
#41风搅火回复于2018-03
#40 下雨天不吃饭w回复
实时的么?  

应该是实时的,否则就没有意义了

0
#40下雨天不吃饭w回复于2018-03

实时的么?

 

0
#39yangjingyuan02回复于2018-02

最近车牌识别有提升哈!!!

0
#38K零度以下回复于2018-02

现在车牌识别技术已经很成熟了

0
#37风搅火回复于2018-02
#31 bijiben618回复
有python版的代码么

可以去对应的API的文档区去看看,所有的API都有Java和Python等语言的例代码的。

0
#36吴江华555回复于2018-02

报这个错是什么意思

 

0
#35吴江华555回复于2018-02

Unexpected character encountered while parsing value: <. Path '', line 0, position 0.:

413 Request Entity Too Large

413 Request Entity Too Large

nginx

0
#34风搅火回复于2018-02

不知道瞬间识别性如何

0
#32独孤焰坤回复于2018-02
#31 bijiben618回复
有python版的代码么

文章中写链接还是不错的~

0
#31bijiben618回复于2018-02

有python版的代码么

0
#30a13531732231回复于2018-01

可以可以  楼主给力

0
#29yuefeixyz回复于2018-01

收藏点赞一气呵成...谢谢楼主分享.

识别车牌很有用啊,感谢分享

0
#28daipeng_hi回复于2017-12

这是什么语言?PHP吗?

0
#2715053535385回复于2017-12

这个好

0
TOP
切换版块