Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sizing and Hough Line accuracy problem

Hi,

I am trying to do segmentation of book spines stacked both horizontal and vertically. I have came across a problem when the picture is too big. image description image description Only part of the image can be seen in the whole window, the next image shows the source where the hough line is applied to. image description

this is the original image it is suppose to process: image description

As you can see in the image above, I cannot view the whole image. Hence, I tried to minimise the window just for this picture using=>

cv::resize(image, image, cv::Size2i(image.cols/6, image.rows/6) ); // resize to 1/6 of the image

which lead to another problem, when the picture is small, it become too small that the straight lines cannot even be detected.

Hence, I tried => cv::resize(image, image, cv::Size2i(750, 400) );

this lead to another problem. While the image above is above to display the whole window, for smaller pictures, my houghline detection becomes more unstable. Please refer to the 2 images below

before I resize image description

Hough line detection while not perfect, just at least close?

but after i resize, the hough detection becomes worse!!

image description

Do anybody have an idea on how to solve this sizing problem? And also how to improve my Hough Line detection which is pretty unstable now to separate the books? I wish to draw a line in between the stack of books.

Hope to hear from you guys soon. Thanks!!!

Sizing Area of Interest and Hough Line accuracy problemproblem( detect slightly distorted lines)

Hi,

I am trying to do segmentation of book spines stacked both horizontal and vertically. I have came across a problem when the picture is too big. image description image description Only part of the image can be seen in the whole window, the next image shows the source where the hough line is applied to. image description

this is the original image it is suppose to process: image description

As you can see in the image above, I cannot view the whole image. Hence, I tried to minimise the window just for this picture using=>

cv::resize(image, image, cv::Size2i(image.cols/6, image.rows/6) ); // resize to 1/6 of the image

which lead to another problem, when the picture is small, it become too small that the straight lines cannot even be detected.

Hence, I tried => cv::resize(image, image, cv::Size2i(750, 400) );

this lead to another problem. While the image above is above to display the whole window, for smaller pictures, my houghline detection becomes more unstable. Please refer to the 2 images below

before I resize image description

Hough line detection while not perfect, just at least close?

but after i resize, the hough detection becomes worse!!

image description

Do anybody have an idea on how to solve this sizing problem? And also how to improve my Hough Line detection which is pretty unstable now to separate the books? I wish to draw a line in between the stack of books.

Hope to hear from you guys soon. Thanks!!!