Hi,
I have photos like this : Dropbox - image.jpg - Simplify your life and want to detect the grid of a graph paper.
My code for now is :
String imageName("image.jpg"); // by default
src = imread( imageName , IMREAD_COLOR ); // Load an image
Mat gray;
cvtColor( src, gray, COLOR_BGR2GRAY ); // Convert the image to Gray
cv::Ptr<cv::LineSegmentDetector> det;
det = cv::createLineSegmentDetector();
cv::Mat lines;
det->detect(gray, lines);
Mat output = src.clone();
det->drawSegments(output, lines);
imwrite("res.jpg", output);
but like you can see the lines detected are small, I want to deduct from these small lines the entire grid.
Please help me !
Best regards