rectangle function
void
rectangle(})
Implementation
void rectangle(
VARP img,
(double, double) pt1,
(double, double) pt2,
Scalar color, {
int thickness = 1,
int lineType = LINE_8,
int shift = 0,
}) {
final cPt1 = Point.fromTuple(pt1);
final cPt2 = Point.fromTuple(pt2);
c.mnn_cv_rectangle(img.ptr, cPt1.ref, cPt2.ref, color.ref, thickness, lineType, shift);
cPt1.dispose();
cPt2.dispose();
}