diff --git a/ImageDetect/ImageDetect.cxx b/ImageDetect/ImageDetect.cxx index 81c9640..9d0bb8f 100644 --- a/ImageDetect/ImageDetect.cxx +++ b/ImageDetect/ImageDetect.cxx @@ -1,7 +1,7 @@ #include #include #include -#include +#include #include #include #include @@ -22,7 +22,7 @@ using namespace cv; void detect_brightness(cv::Mat input_img, float& cast, float& da) { cv::Mat gray_img; - cv::cvtColor(input_img, gray_img, CV_BGR2GRAY); + cv::cvtColor(input_img, gray_img, COLOR_BGR2GRAY); float a = 0, Ma = 0; int hist[256] = { 0 }; @@ -65,4 +65,4 @@ int main(int argc, char *argv[]) detect_saturation(img, satu); cout<