Open hisygg opened 4 years ago
Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.0.1) D:\source\opencv-4.0.1\modules\dnn\src\layers\convolution_layer.cpp:265: error: (-215:Assertion failed) ngroups > 0 && inpCn % ngroups == 0 && outCn % ngroups == 0 in function 'cv::dnn::ConvolutionLayerImpl::getMemoryShapes' ] at org.opencv.dnn.Net.forward_1(Native Method) at org.opencv.dnn.Net.forward(Net.java:62) at OcrTest.ocr(OcrTest.java:83) at OcrTest.main(OcrTest.java:53)
+1
java版本只有自己解决了
同出现这个问题
python 也出现了这个问题
Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: OpenCV(4.0.1) D:\source\opencv-4.0.1\modules\dnn\src\layers\convolution_layer.cpp:265: error: (-215:Assertion failed) ngroups > 0 && inpCn % ngroups == 0 && outCn % ngroups == 0 in function 'cv::dnn::ConvolutionLayerImpl::getMemoryShapes' ] at org.opencv.dnn.Net.forward_1(Native Method) at org.opencv.dnn.Net.forward(Net.java:62) at OcrTest.ocr(OcrTest.java:83) at OcrTest.main(OcrTest.java:53)