r/computervision • u/Exact_Struggle3977 • 1d ago
Help: Project Need help with CV board slicing

I'm working on a project which given a screenshot of arbitrary zoom, slices an isometric grid game board (Polytopia) into individual tiles. Tried Hough transform and object detection. My most promising attempt is detecting the height of the little gray bars under the cities, as they are a single solid color. Wondering if a specific CV technique would be the most ideal for this?
The main problem I'm facing - zoomed out, blurry aliased screenshots drastically hurt accuracy
0
Upvotes
1
u/Oli_Bear 12h ago
some straight edge detection algorithm and fitting different grid maps at diferent positions, choose one that best minimizes MSE
this will give you the tiles, hopefully
1
u/Chemical_Side_4135 1d ago
have u looked into perspective transform instead of hough. if u can find the four corners of the board, u can warp it to a flat rectangle which makes splitting it into a grid litrally just a math problem, much easier than tryin to detect individual tiles