112 Star 988 Fork 403

endless / idCardCv

 / 详情

车牌识别报错

待办的
创建于  
2021-01-13 16:27

Exception in thread "main" java.lang.RuntimeException: OpenCV(3.4.3) C:\projects\javacpp-presets\opencv\cppbuild\windows-x86_64\opencv-3.4.3\modules\ml\src\ann_mlp.cpp:900: error: (-5:Bad argument) input training data should be a floating-point matrix with the number of rows equal to the number of training samples and the number of columns equal to the size of 0-th (input) layer in function 'cv::ml::ANN_MLPImpl::prepare_to_train'

在CHAR_ANN类:
boolean r = getAnn().train(trainData, Ml.ROW_SAMPLE, trainClasses);

评论 (3)

LiRui 创建了任务
LiRui 关联仓库设置为endless/idCardCv
展开全部操作日志

这个项目是 学习https://gitee.com/nbsl/idCardCv 来的。我因为业务需要主要修改了 身份证号码部分。但是从报错信息来看,是因为训练数据有些肯能为null导致的

这个项目是 学习https://gitee.com/nbsl/idCardCv 来的。我因为业务需要主要修改了 身份证号码部分。但是从报错信息来看,是因为训练数据有些肯能为null导致的

@endless 不太懂这个,因为没接触过图像识别

@endless 不太懂这个,因为没接触过图像识别

@LiRui 一样的原理,都是用opencv对图片进行 过滤,高斯模糊,边界判断,都是opencv的方法。可以百度。把需要的图片范围进行裁剪,比如车牌,先识别出车牌的框,然后进行分割成单个字母或数字,然后识别字母和数字。车牌识别可以看看https://gitee.com/zeusees/HyperLPR?_from=gitee_search,应该是开源中比较好的了。

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
743955 endlesshh 1578931925
Java
1
https://gitee.com/endlesshh/idCardCv.git
git@gitee.com:endlesshh/idCardCv.git
endlesshh
idCardCv
idCardCv

搜索帮助

E71a60c3 8189591 Df7b7c6b 8189591