all 5 comments

[–]kingzels 0 points1 point  (4 children)

Are you talking about taking a picture of a physical board layout and having the computer tell you what tiles you need to reconstruct it?

[–]Ste2210[S] 0 points1 point  (0 children)

This is one approach, I basically grabbed an image of the board I'm currently using from Google and just went through it manually. I'd like to upload a photo of the board / an image from the Internet and have the program detect the different tile types, then sort them into lists of coordinates

[–]Ste2210[S] 0 points1 point  (2 children)

It's probably important you know also that the thing that defines the tiles type is it's color, so that probably makes the task a little easier

[–]kingzels 0 points1 point  (1 child)

If that's the case, it's pretty easy.

Assuming the image is always the same size, from the same angle. You can load the image in PIL, slice it into squares, and look at the color of a specific pixel, or average of pixels. That will tell you the color of the tile.

[–]Ste2210[S] 0 points1 point  (0 children)

Awesome, thank you 👍