There is a 2nd card consisting of several colors. The red character on the map is the one with the direction. It is necessary that the character moves only along a certain color (in this example, only along white paths).
I don’t understand how to get information from photos. In theory, the algorithm should receive an image and orient the characters along the paths
example of image
I’m guessing this question is related to neural networks.