Ask Your Question
0

Looking for a thinning/skeletonizing algorithm with opencv in python.

asked 2017-07-03 11:29:16 -0500

bonevale gravatar image

Currently I am implementing the zhang-suen method but my images are 300 ppi and it takes a couple of minutes. Can someone point me in the right direction. I need the skeleton to be connected and there are parallel lines so the the algorithm I've seen in python that uses open and closing is not good. Thanks

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-07-03 11:35:36 -0500

berak gravatar image

updated 2017-07-03 11:36:53 -0500

zhang-suen thinning is implemented in opencv_contrib

downside is: if you want to use it, you will have to rebuild your cv2.so with opencv3 and opencv_contrib

edit flag offensive delete link more

Comments

I had a pretty tough time installing opencv the first time around so I am not planning on rebuilding it, however thanks for the suggestion. I am looking more so for pseudo code or an algorithm which I can implement myself if need be.

bonevale gravatar imagebonevale ( 2017-07-07 13:37:19 -0500 )edit

Did you find something for Python? :)

fre2dyy gravatar imagefre2dyy ( 2018-02-13 08:35:31 -0500 )edit
-1

answered 2017-12-01 10:04:57 -0500

A good example of Skeletonization using OpenCV-Python is in https://stackoverflow.com/questions/3...

edit flag offensive delete link more

Comments

sorry, but that is a link only. not an answer. try harder !

berak gravatar imageberak ( 2017-12-01 10:15:59 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-07-03 11:29:16 -0500

Seen: 3,117 times

Last updated: Jul 03 '17