no commit message

devA
yuxue 5 years ago
parent 2e840a3663
commit 380a1beb25

@ -265,6 +265,7 @@ public class CoreFunc {
Mat lowData = new Mat(); Mat lowData = new Mat();
if (sizeData > 0) { if (sizeData > 0) {
// resize.cpp:3784: error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'
resize(in, lowData, new Size(sizeData, sizeData)); resize(in, lowData, new Size(sizeData, sizeData));
} }
@ -281,7 +282,7 @@ public class CoreFunc {
} }
for (int x = 0; x < lowData.cols(); x++) { for (int x = 0; x < lowData.cols(); x++) {
for (int y = 0; y < lowData.rows(); y++, ++j) { for (int y = 0; y < lowData.rows(); y++, ++j) {
float val = lowData.ptr(x, y).get() & 0xFF; float val = lowData.ptr(x, y).get(0) & 0xFF;
idx.put(0, j, val); idx.put(0, j, val);
} }
} }

@ -14,7 +14,15 @@ import com.yuxue.util.Convert;
import com.yuxue.util.FileUtil; import com.yuxue.util.FileUtil;
/** /**
* org.bytedeco.javacpp
* *
*
*
*
* svm.xml
* 1res/model/svm.xml
* 2com.yuxue.easypr.core.PlateJudge.plateJudge(Mat)
*
* @author yuxue * @author yuxue
* @date 2020-05-14 22:16 * @date 2020-05-14 22:16
*/ */

Loading…
Cancel
Save