我将学习本教程: https://scikit-mpe.readthedocs.io/en/latest/examples.html#maze
我试图使用mpe
类来查找路径,但收到了一条错误消息,我无法理解为什么会发生这种情况
这是迷宫
这是密码
from skimage.io import imread
from skmpe import parameters, mpe, OdeSolverMethod
from skimage.exposure import rescale_intensity
start_point, end_point = [0, 126], [415, 0]
test_img = imread('cv2.jpg', as_gray=True)
speed_image = rescale_intensity(test_img, out_range=(0.005, 1.0))
with parameters(ode_solver_method=OdeSolverMethod.LSODA, integrate_max_step=1.0):
path_info = mpe(speed_image, start_point, end_point)
path = path_info.path
我收到了以下错误:
EndPointNotReachedError: The extracted path from the start point (0, 126) did not reach the end point (415, 0) in 1.2363352244019011e-05 time and 100 _step_count with distance 433.71 to the end point. Reason: the distance between old and current point stay too small for 100 _step_count
目前没有回答
相关问题 更多 >
编程相关推荐