1 #include<opencv2opencv.hpp>
2 #include <iostream>
3 using namespace cv;
4 using namespace std;
5 int main()
6 {
7
8 //int threshval = 100;
9 Mat img = imread("33.jpg");
10 img = img >230;
11 namedWindow("Img", 1);
12 imshow("Img", img);
13 waitKey(0);
14 return 0;
15 }