How can I detect a Cable in a iamge or video? [closed]

asked 2016-06-28 23:54:17 -0500

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?image description

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-09-17 05:19:29.025222



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

pklab gravatar imagepklab ( 2016-06-29 12:37:32 -0500 )edit

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.

LarryR gravatar imageLarryR ( 2016-06-29 17:01:17 -0500 )edit

Is this the original image, or did you already apply something to this?

StevenPuttemans gravatar imageStevenPuttemans ( 2016-06-30 06:36:18 -0500 )edit

This is original image (taken from camera). and thanks for your comments.@pklab@LarryR You helped me a lot,thank you very much.

Dean Feng gravatar imageDean Feng ( 2016-07-01 02:05:35 -0500 )edit

Then indeed their sugestiong of morphology will simply solve this!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-07-01 03:54:27 -0500 )edit

@pklab Hiļ¼Œthe iamge is a sample. it may be inclined.

Dean Feng gravatar imageDean Feng ( 2016-07-06 02:10:03 -0500 )edit

ok the cable isn't horizontal but you can remove only vertical features than check what is left

pklab gravatar imagepklab ( 2016-07-08 10:38:48 -0500 )edit