Skip to content

A python script that uses Computer Vision and Data Structures & Algorithms to trace a solution path in a maze.

Notifications You must be signed in to change notification settings

sparsh-18/BFS-Maze-Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BFS-Maze-Solver

BFS-Maze-Solver is a Python script that uses Computer Vision and Data Structures & Algorithms to trace a solution path in a maze.

The idea is to treat every pixel as a node of a graph and the surrounding pixels as connected nodes. Now with the help of OpenCv library a BFS traversal is performed to reach the destination point and to create a path.

Installation

Use the package manager pip to install the following.

pip install cv2
pip install threading

Usage

Run the script: maze.py

Click once to select the starting point

Click again to select the destination point

Preview

image.2021-10-18.10-59-13.mp4
image.2021-10-18.10-58-26_x264.mp4

About

A python script that uses Computer Vision and Data Structures & Algorithms to trace a solution path in a maze.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages