How do I remove perspective view and separate the object of interest in the image?
5 次查看(过去 30 天)
显示 更早的评论
I am working on a nonogram solver in matlab. The whole thing would be able to solve a nonogram from a digital image of the puzzle.
I have a problem with removing perspective from the image. I have already tried to apply similar algorithm as this sudoku solver: https://www.mathworks.com/matlabcentral/fileexchange/30088-video-sudoku-solver Firstly, the puzzle does not have a shape of a square or a rectangle, so finding the 4 corners is rather hard. I have tried using ‘kmeans’ (according to the link ) on the convex hull of the image and ‘quadprog’ ( link ) to get the tangent line to the hull, from which the intersection of these lines would define the corners. Quadprog would be quite good if not for the complexity of the algorithm.
Secondly, the puzzle grid has no pre-defined dimensions like sudoku (9x9), which could also help. Also the grid can be partially filled in already. How should I remove perspective from the image?
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!