相关的opencv的操作:
采图与灰度图的相互转换
cv::Mat sr_image;
sr_image = cv::imread(input_path + image);
cv::cvtColor(sr_image, req.image, cv::COLOR_BGR2GRAY);
相关的opencv的操作:
采图与灰度图的相互转换
cv::Mat sr_image;
sr_image = cv::imread(input_path + image);
cv::cvtColor(sr_image, req.image, cv::COLOR_BGR2GRAY);