The method imwrite(String, Mat) in the type Highgui is not applicable for the arguments (String, opencv_core.Mat) 出错 之前用的包是import static org.bytedeco.javacpp.opencv_core.Mat; 后重新导入import org.opencv.core.Mat;