网站加载速度影响因素,网页设计师培训需要多少钱,公司做个网站多少钱,文创产品设计稿前言目前百度的AI接口相对完善#xff0c;对于文字识别类的操作还需要开发者一一去尝试#xff0c;去评估这效果到底是怎么的。文字识别的接口相对简单#xff0c;官方提供的SDK也集成很好#xff0c;笔者只是在这上面做了一些前期性的功能数据校验和过滤#xff0c;以及返… 前言 目前百度的AI接口相对完善对于文字识别类的操作还需要开发者一一去尝试去评估这效果到底是怎么的。 文字识别的接口相对简单官方提供的SDK也集成很好笔者只是在这上面做了一些前期性的功能数据校验和过滤以及返回结果的处理。 实验效果先来看一下识别效果 1、精细化车牌识别准确 2、实际场景车牌 识别准确 3、多车牌只识别到一个车牌 实际拓展思路鉴于上述结果目前百度车牌识别可以做到 实际应用场景的处理但要真正结合、融合需要开发者们自己做些前期处理比如说你需要在摄像头捕捉车牌时候自己去动态抓取行驶车牌的车牌在使用单个请求将车牌发送给百度从而实现在真实环境中的车牌识别。ps有关相关的技术 可以参考我另外一篇博客动态视频中的人脸捕捉与人脸识别。代码解析1、接口方法/// summary /// 车牌识别 返回实体结果 /// /summary /// param nametempImage/param /// returns/returns public static APIBaseModelDrivingLicenseModel GetPlateLicense(Image tempImage) { APIBaseModelDrivingLicenseModel tempModel new APIBaseModelDrivingLicenseModel(); 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.ToObjectErrorTypeModel(result); tempModel.errorMsg tempModel.contextModel.errorTypeModel.error_discription OCR_CharacterRecognitionErrorType.GetErrorCodeToDescription(tempModel.contextModel.errorTypeModel.error_code); } else { tempModel.state true; tempModel.contextModel.successModel Json.ToObjectDrivingLicenseSuessResultModel(result); } return tempModel; }源码地址https://github.com/linbin524/AI_Project 相关文章 认识微软Visual Studio Tools for AI基于Emgu CV百度人脸识别实现视频动态 人脸抓取与识别百度OCR文字识别-身份证识别微软人工智能和对话平台--知识商城体验原文地址:http://www.cnblogs.com/linbin524/p/8036158.html.NET社区新闻深度好文欢迎访问公众号文章汇总 http://www.csharpkit.com