Hello,
while been able to estimate the rectangle for an array (or a list) or points by using opencv-java as:
MatOfPoint2f mat = new MatOfPoint2f(pointList.toArray(new Point[] {}));
org.opencv.core.RotatedRect rrect = Imgproc.minAreaRect(mat);
I have problems to implement the same with javacv and getting
(-5:Bad argument) Unknown array type in function 'cvarrToMat'
E.g.
CvSeq seq = new CvSeq(cvPointsList.size());
for (int i = 0; i < cvPointsList.size(); i++) {
seq.position(i).put(cvPointsList.get(i));
}
RotatedRect box = cvMinAreaRect2(seq).asRotatedRect(); <--- throws (-5:Bad argument) Unknown array type in function 'cvarrToMat'
Can you provide an example how to do that with javacv?
Many thanks in advance
Oleksandr