`

2.图片剪切矩形

阅读更多
Rect rect = Imgproc.boundingRect(contours.get(0));
// 剪切矩形区域
Mat croppedImage = new Mat(image, rect);
Imgcodecs.imwrite("2023-2.jpg", croppedImage);
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics