Jan-20-2020, 03:59 PM
Hi.
I have built a physical maze (black background, white walls) and want to make it digital.
I have used edge detection in open cv and it detects all walls.
Now I want to make an AI (A* search) walk through the maze.
However, I do not know how to go from this image to a (pygame) grid with walls so an AI can walk through.
Does anyone know how to do this?
Should I use line or color detection instead?
Thanks a lot in advance.
Edit: the image link below shows the maze and working edge detection.
![[Image: VqBXuEj]](https://imgur.com/VqBXuEj)
I have built a physical maze (black background, white walls) and want to make it digital.
I have used edge detection in open cv and it detects all walls.
Now I want to make an AI (A* search) walk through the maze.
However, I do not know how to go from this image to a (pygame) grid with walls so an AI can walk through.
Does anyone know how to do this?
Should I use line or color detection instead?
Thanks a lot in advance.
Edit: the image link below shows the maze and working edge detection.