项目作者: ieee-uv-project

项目描述 :
Maze Solving and Vehicle Routing Algorithm
高级语言: Python
项目地址: git://github.com/ieee-uv-project/maze-solver.git
创建时间: 2019-03-23T18:37:04Z
项目社区:https://github.com/ieee-uv-project/maze-solver

开源协议:MIT License

下载


maze-solver

Maze Solving and Vehicle Routing Algorithm

DOI
Build Status

License: MIT

application

First, we need to import package

  1. from modules.MazeSolver import MazeSolver

Then, we will create object while typing maze imaze as param 1 and result folder as param 2

  1. # call the object defining the maze image
  2. mz = MazeSolver(BASE_DIR + '/contents/no4.png',
  3. BASE_DIR + '/results', "RESULTFILE")

Finally, we will call function respectively

  1. mz.FourPointTransformation() # rotating the image for operation
  2. mz.ShowResult() # showing result image
  3. mz.FindPath() # finding the path ino the maze image
  4. mz.ShowResult() # showing result image
  5. mz.FindRoute() # finding the route in the maze image
  6. mz.ShowResult() # showing result image

FourPointTransformation()

It transform the image, which was naturally tilted due to camera angle, to proper image for algorithm

FindPath()

It solves the given maze image and saves the path in binary format.

FindRoute()

It takes the binary image and exacts the path using algorithm, then save it as datafile

ShowResult()

It shows the previous process result