1 | initial version |
there are 2 problems:
new Mat()
won't do.Mat ocv = new Mat(400,400,16,Scalar.all(127));
Imgproc.putText(ocv, "Original Image",
new org.opencv.core.Point(ocv.cols() / 4, ocv.rows() / 2),
Core.FONT_HERSHEY_COMPLEX, 1, new Scalar(255, 255, 255));