trace patterns such that each node is visited only once(eulerian path) using opencv

前端 未结 1 1827
青春惊慌失措
青春惊慌失措 2021-02-11 08:19

Here is my problem which I am trying to solve since one complete year. With no success till end of the year. I have to seek help and a concrete solutions from the stackoverflow

1条回答
  •  伪装坚强ぢ
    2021-02-11 08:36

    Perhaps you can look into the traveling salesman problem if your still struggling with the above. TSP visits cities only once. And if in your case each node is a crossing for your strike-through then this might help.

    Check here for the python code to look at. I've checked and the print statement looks nice and structured. Well done cMinor!

    Edit based on discussion: file 1, file2, file3.

    0 讨论(0)
提交回复
热议问题