Ask Your Question

lamer's profile - activity

2021-07-06 00:57:31 -0600 received badge  Popular Question (source)
2017-01-24 03:50:15 -0600 commented answer Recognize and track "closed line" objects

Sorry, it's my fault; I just setup wrong the erosion an dilation

2017-01-24 02:28:17 -0600 commented answer Recognize and track "closed line" objects

I think that too, and now the whole concept works great! Another problem was that relatively short tracking distance, as you can see at the example image, the contour is broken many times in the color based segmentation with OpenCV. I don't know exactly how it's works in OpenCV, but it looks like the thresholded picture would be much lower resolution as the input, perhaps this may be causing problem:

https://postimg.org/image/nux70qhe1/

What do you think? Thank you!

2017-01-22 09:45:37 -0600 received badge  Enthusiast
2017-01-20 09:23:34 -0600 commented answer Recognize and track "closed line" objects

Hi, thanks! Fortunately I successfully solved the mentioned problem, with your help everything works fine, but it's another question I have relates to this; Example, I have an "C" and "O" letter printed on the paper, and When I see the whole image, it's perfect, the "O" was filled. But when the "C" will be out of the picture, it is filled too, becouse the image edge is closed the line, like this: https://postimg.org/image/pv5cklmcn/

(the lower letter is an "O", but upper is a "C" on the attached picture)

Have you any idea how can I solve this?

Thanks!

2017-01-19 14:50:05 -0600 commented answer Recognize and track "closed line" objects

Hi Mstankie, what do you think, maybe with your solution can I avoid this problem?

From this example, https://www.learnopencv.com/filling-h... the problem when I use "filling holes" in python, I have to set # Floodfill from point (x, y) the starting point. When it is (0, 0) it's fill false areas from the left top, and do not get so far as to fill the real holes. Have you any idea how to solve this?

Thanks!

2017-01-19 14:44:23 -0600 commented answer Recognize and track "closed line" objects

Hi Pedro!

Thanks a lot, great idea! I tested the solution from video source (webcam), surprisingly run with good framrate, but there are a big problem in practical application, and I'm very interested in your opinion!

From this example, https://www.learnopencv.com/filling-h... the problem when I use "filling holes" in python, I have to set # Floodfill from point (x, y) the starting point. When it is (0, 0) it's fill false areas from the left top, and do not get so far as to fill the real holes. Have you any idea how to solve this?

Thanks!

2017-01-18 13:41:39 -0600 commented answer Recognize and track "closed line" objects

Sorry Mstankie, unfortunately I can't able to post, just to comment today, but; The first part of the question about the realtime video capture is for everyone, and the second part is for Pedro, becouse I don't tested your solution yet, but I try it soon!

Thanks a lot!

2017-01-18 09:58:23 -0600 commented answer Recognize and track "closed line" objects

Hi,

Thank you very much for the quick answer! What do you think, is it possible to do that from cv2.VideoCapture(0) in realtime? I tried this solution, with simple images works fine, but with more complicated images only find what I want, if I set manually the # Floodfill from the point (x, y), otherwise, most of the time it makes mistake.

Thanks!

2017-01-18 09:56:37 -0600 received badge  Supporter (source)
2017-01-18 09:55:33 -0600 received badge  Scholar (source)
2017-01-18 04:06:06 -0600 received badge  Editor (source)
2017-01-17 17:48:53 -0600 asked a question Recognize and track "closed line" objects

Hi,

I would like to recognize and track an object, which is a "closed line" (...?, first figure on the attached image), and separate from other objects with OpenCV!

https://postimg.org/image/9kj0zfv6v/ ... (the little line in the middle of the first object is not necessary, just a mistake)

Anyone had idea wich is the best way can I do that?

Thank you very much!