Coder Social home page Coder Social logo

car-ocr's Introduction

Car-OCR

基于机器学习和OCR的车牌识别系统 @fujunhao

1、运行环境

服务端:jdk1.8、OpenCV 2.4.9 客户端:能上网的浏览器即可(windows、linux、android不限)

2、 开发环境

操作系统:windows7 64位 编程语言:Java(要求至少jdk1.8以上) 开发工具:Eclipse 第三方库:OpenCV2.4.9 、Spring Boot Maven依赖以及版本要求:

		<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-web</artifactId>
		</dependency>
		<dependency>
			<groupId>org.bytedeco</groupId>
			<artifactId>javacv</artifactId>
			<version>0.11</version>
		</dependency>
		<dependency>
			<groupId>org.bytedeco</groupId>
			<artifactId>javacpp</artifactId>
			<version>0.11</version>
		</dependency>

3、OpenCV安装说明(windows下)

4、将Car-OCR项目导入Eclipse工作空间里

注意:这个项目使用Maven管理的,所以要在开发环境中配置好Maven

4、添加Spring Boot依赖(用作web接口开发)

5、添加好依赖后,如果项目不报错就可以运行启动了

  • 启动类 src/org.easypr/MainApplication
  • 启动方法 运行MainApplication里的主方法即可
  • 控制台的日志正常输出,不报错即可

6、系统测试

  • 访问主页 http://localhost:8080/ (默认8080端口,如果需要部署到公网上,改成80端口即可)

  • 图片上传

  • 车牌识别 控制台输出识别日志如下:

结果返回形式为json

{"status":201,"response":["川C2888B"],"date":"2017-06-06 20:35:36"}

7、 接口参数说明

{"status":201,"response":["川C2888B"],"date":"2017-06-06 20:35:36"}
  • 字段说明
status: 201 表示成功调用接口;-1 表示调用接口失败
response: 识别结果数组(返回的识别为可能的字符top2)
date:代表当前时间戳

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.