How can I detect a Cable in a iamge or video? [closed]
Photos taken from the camera. It maybe a gray iamge. And I want detect the object in green rectangle. I want a fast and accurate algorithms.I mean that I will detect it Real-time. Can you help me?
If a detection like "All that is not vertical" Is enough you could use a morphology. Chek this tutorial, or this answer.
otherwise try to describe needed detection with a short sentence
More specifically with the morphology approach and assuming you want non-vertical features, you might consider a top-hat (subtract opened image from original image) with a vertical line segment.
Is this the original image, or did you already apply something to this?
This is original image (taken from camera). and thanks for your comments.@pklab@LarryR You helped me a lot,thank you very much.
Then indeed their sugestiong of morphology will simply solve this!
@pklab Hiļ¼the iamge is a sample. it may be inclined.
ok the cable isn't horizontal but you can remove only vertical features than check what is left