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

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

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

Comments

1

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 -0600 )edit
1

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 -0600 )edit

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

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

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 -0600 )edit

Then indeed their sugestiong of morphology will simply solve this!

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

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

Dean Feng gravatar imageDean Feng ( 2016-07-06 02:10:03 -0600 )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 -0600 )edit