You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mat srcImg = Imgcodecs.imread("2.jpg");
Mat image = new Mat();
if (srcImg.empty()){
System.out.println("图片不存在");
return;
}
// 转为 hsv 空间
Imgproc.cvtColor(srcImg,image,Imgproc.COLOR_BGR2HSV);