How C++ opencv converts blue background photos into white background photos
This article mainly introduces how C++ opencv converts a blue background photo into a white background photo, which has a certain reference value, and interested friends can refer to it. I hope you can learn a lot after reading this article.
The details are as follows:
# include # include using namespace std;using namespace cv;// contains the cv namespace int main () {char * origin= "Original"; char * window= "Image"; char * str= "G:\\ yay.jpg"; namedWindow (origin,1); namedWindow (window,1); Mat image=imread (str); if (! image.data) {cout