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);
这个项目是 学习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,应该是开源中比较好的了。
登录 后才可以发表评论