How to recognize maze to move on it with a drone.

asked 2018-11-08 02:39:28 -0600

SYeter gravatar image

updated 2018-11-08 02:42:33 -0600

Hello everyone, I'm working on a project based on maze solving with image processing.

Whole process works like that in the simulation : Simulation video

However, the problem I'm facing is: I want my drone to move center of the maze. However, thresholding the image taken by drone inversely, then moving on the white area works on simulation but not in real.

Maze Image

As you can see in this image there are so many other black and white objects. Under effect of irregular lighting conditions, it becomes really hard to distinguish colors of the maze from other substances, even with adaptive thresholding method.

I don't have any problem with solving the maze. Birefly, I want my drone to move the center of the maze autonomously. If you guys offer me any idea or solution I'll really be appreciated.

I'm using python-opencv

edit retag flag offensive close merge delete

Comments

please show us, what you tried, so far. (we can only mend code, we can actually see)

berak gravatar imageberak ( 2018-11-08 02:42:41 -0600 )edit

and looking at your image, it probably gets better, if you use lime-green or such to mark the borders of your maze, not black. then you could mask the borders using inRange() (and yes, thesholding is a quite brittle process here)

berak gravatar imageberak ( 2018-11-08 03:14:31 -0600 )edit