1 | initial version |
the proble is here:
private Mat rectOut = new Mat();
that is an empty Mat, with no pixels, of size (0,0)
if you want to draw something, you need to allocate pixels:
private Mat rectOut = new Mat(480, 640, CvType.CV_8UC3, Scalar.all(0));