You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Antonio De Lucreziis 7dcccad1c9 | 6 months ago | |
---|---|---|
images | 6 months ago | |
.gitignore | 6 months ago | |
README.md | 6 months ago | |
cv_maze.py | 6 months ago | |
main.py | 6 months ago | |
main_camera.py | 6 months ago | |
poetry.lock | 6 months ago | |
pyproject.toml | 6 months ago | |
utils.py | 6 months ago |
README.md
OpenCV Maze Solver
This is a simple maze solver using OpenCV and Python. The maze is solved using the A* algorithm from the NetworkX library.
Installation
This project uses Poetry for dependency management. To install the dependencies, run the following command:
poetry install
Usage
Image
To run the maze solver, use the following command:
poetry run python main.py --image <image_path>
Replace <image_path>
with the path to the maze image you want to solve like images/IMG_0867.jpg
.
Camera
To run the maze solver using the camera, use the following command:
poetry run python main_camera.py