Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to make HoughlinesP to detect more lines?

Hello everyone, I am trying to detect the straight lines in a bottle. I am using the example provided by OpenCV tutorials however the maximum I can get is just one.

I have played with most of the parameters of CannyEdge and Houghlinesp, however the maximum I can get is always maximum 1 (I got 2 but just in one example) I am sending the examples of bottles that I am trying also with it's resulting example.

I have several suspects about the problems with this non-detection: one could be the shadow, other one could be the light reflect, and even I am thinking that the camera is not well calibrated. However if someone knows or has worked with this function before and thinks that this doesn't have any relation, I would thank you too much.

Thanks a lot for everything.

image description

How to make HoughlinesP to detect more lines?

Hello everyone, I am trying to detect the straight lines in a bottle. I am using the example provided by OpenCV tutorials however the maximum I can get is just one.

I have played with most of the parameters of CannyEdge and Houghlinesp, however the maximum I can get is always maximum 1 (I got 2 but just in one example) I am sending the examples of bottles that I am trying also with it's resulting example.

I have several suspects about the problems with this non-detection: one could be the shadow, other one could be the light reflect, and even I am thinking that the camera is not well calibrated. However if someone knows or has worked with this function before and thinks that this doesn't have any relation, I would thank you too much.

Thanks a lot for everything.

image description!

The original images

image description image description image description image description