Mat image = imread("address2.jpg"); Mat gray_image; cvtColor(image, gray_image, CV_BGR2GRAY); Mat bluredImage; GaussianBlur(gray_image, bluredImage, Size(1, 1), 0); Mat threshImage; threshold(bluredImage, threshImage, 0, 255, THRESH_OTSU); imwrite("result.jpg", asd);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)