基本信息
源码名称:Java 车牌识别系统源码
源码大小:0.98M
文件格式:.zip
开发语言:Java
更新时间:2016-03-22
   友情提示:(无需注册或充值,赞助后即可获取资源下载链接)

     嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300

本次赞助数额为: 2 元 
   源码介绍


第一步找到车牌图片区域,如下图:

第二步 识别车牌号

“蓝牌:苏EUK722”







实际车牌识别的代码 在单元测试代码中,路径:sxde-easypr\src\test\java\com\crenjoy\easypr\test\PlateRecognizeTest.java

调试步骤如下:



package com.crenjoy.easypr.test;

import java.io.File;
import java.util.Map;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.junit.Test;

import com.crenjoy.easypr.core.Plate;
import com.crenjoy.easypr.core.PlateRecognition;
import com.crenjoy.easypr.core.PlateRecognitionImpl;

/**
 * 车牌识别测试
 * @author CGD
 *
 */
public class PlateRecognizeTest {

	
	private static final Log log = LogFactory.getLog(PlateRecognizeTest.class);
	
	@Test
	public void test(){
		log.debug("TEST Start");
		
		//加载识别机器XML 
		PlateRecognition pr=new PlateRecognitionImpl("D:\\Projects\\JavaProjects\\sxde-easypr\\src\\main\\resources");
		log.debug("TEST ----1");
		
		
		File files=new File("D:\\Projects\\JavaProjects\\sxde-easypr\\svm");
		while(true){
			//识别车牌 
			for(File file : files.listFiles()){
				if (file.isDirectory()){
					continue;
				}
				System.out.println(file.getAbsolutePath());
				Map<String,Plate> ps= pr.plateRecognize(file.getAbsolutePath());
				for(Plate p:ps.values()){
					System.out.println(p.toString());
				}
				if (ps.size()<=1){
				//	File dest=new File("D:\\test\\easypr\\test_ok\\" file.getName());
				//	file.renameTo(dest);
				}
			}
		}
		
		
	}
}