using namespace cv;
int main()
{
string filepath = "C:\\Users\Administrator\Desktop\qq\fire2.jpg";
Mat inputImg = imread(filepath, 1);
CheckColor(inputImg);
return 0;
}
//////////////////////////////////
//The Color Check is According to "An Early Fire-Detection Method Based on Image Processing"
//The Author is:Thou-Ho (Chao-Ho) Chen, Ping-Hsueh Wu, and Yung-Chuen Chiou
//////////////////////////////////////
Mat CheckColor(Mat &inImg)
{
Mat fireImg;
。。。。