How to repair incomplete grid cells and fix missing sections in image
问题 I used Hough lines to get intersection of horizontal and vertical lines in this image: but the complexity grows with the grid cells count significantly. Is there any simple way to complete the grid without using line detection ? Thank you. 回答1: Here's a potential solution using morphological operations with OpenCV Obtain binary image. Load image, grayscale, Gaussian blur, Otsu's threshold Obtain horizontal/vertical lines masks. Create horizontal/vertical kernel and isolate horizontal/vertical