赞
踩
matrix<rgb_pixel> img;cv::Mat image = cv::imread(path);array2d< bgr_pixel> arrimg(image.rows, image.cols);dlib::assign_image(img, cv_image<rgb_pixel>(image));