opencv 1.

int main(int argc, char* argv[])
{
	
	Mat t1 ,t3,t4;

	t1=imread("D:/images/111.jpg"); 
	
	

	if (t1.empty() ) {
		cout << "无图片" << endl;
		return 0;
	}
	cvtColor(t1, t3, COLOR_BGR2HSV);
	

	inRange(t3, Scalar(10,34,160),Scalar(34,255,255), t4);


	waitKey(0);
	destroyAllWindows();
	
	return 0;
}

 

猜你喜欢

转载自blog.csdn.net/m0_73580268/article/details/130185019