« first day (256 days earlier)      last day (3100 days later) » 

4:16 PM
Please help me with this problem .. I am trying to find path between 2 points and i am using this python program to do the path finding based on whether the 8 connected pixels are obstacles or not, where in the obstacles are indicated as pixel value of 0, the problem is that the program is not able to give me a straight to the destination, even though it finds a path between source and destination.



def bfs(arr,dist,parentx,parenty,sourcex,sourcey,destinationx,destinationy,height,width):

Qx = Queue.Queue()
the line show in red is the path traced
 
3 messages moved from Python
 

« first day (256 days earlier)      last day (3100 days later) »