Code Monkey home page Code Monkey 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:代表当前时间戳

car-ocr's People

Contributors

initaction avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

car-ocr's Issues

jar执行方式,识别图片的时候必须先训练,请问如何解决

eclipse导入包识别的时候能够正确识别,但是当jar包方式执行的时候,始终需要先训练才行,请问如何训练?报错信息如下:java.lang.RuntimeException: ........\opencv\modules\ml\src\svm.cpp:2131: error: (-5) The SVM should be trained first in function CvSVM::predict

项目引用了org.apache.cxf:cxf-core等5个开源组件,存在1个漏洞,建议升级

大佬,我IDE运行您这个项目的时候,提醒我有几个漏洞,项目调用了org.apache.cxf:cxf-core等5个开源组件,存在1个安全漏洞,建议你升级下。

漏洞标题:Apache CXF 安全漏洞
漏洞编号:CVE-2017-12624
漏洞描述:
Apache CXF是美国阿帕奇(Apache)软件基金会的一个开源的Web服务框架。该框架支持多种Web服务标准、多种前端编程API等。
Apache CXF 3.2.1之前的版本和3.1.14之前的版本中的JAX-WS和JAX-RS服务存在安全漏洞。攻击者可通过制作消息附件包头利用该漏洞造成拒绝服务。
国家漏洞库信息:https://www.cnvd.org.cn/flaw/show/CNVD-2017-34229
影响范围:(∞, 3.1.14)
最小修复版本:3.1.14
引入路径:
com.java1234:[email protected]>org.apache.cxf:[email protected]

还有其它几个漏洞,信息有点多我就不贴了,你自己看下完整报告:https://www.mfsec.cn/jr?p=add46e

你对这个issues有任何疑问可以回复我哈,系统会提醒我的,谢谢了。

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.