2017-05-08 18:47:12 -0600 | received badge | ● Notable Question (source) |
2016-04-11 04:18:38 -0600 | received badge | ● Popular Question (source) |
2014-06-16 07:34:04 -0600 | commented question | Split connected blobs I have added it to the question |
2014-06-16 05:32:27 -0600 | asked a question | Split connected blobs Hello I am using contours to detect the balls by their area. The problem arises when the balls are next to each other. I have tried the erode function but I can't get it right. This is a sample picture: This is the binary image I get after using inRange. How would you guys tackle this problem? Would you use erode? In that case, which parameters would you give to the function? Is there any other way than erode, which is not very complex? EDIT: Adding eroded image by request. Im using this code to get it: |
2014-06-15 13:34:10 -0600 | commented question | Detection of table tennis balls and color correction Thanks for the reply. I solved the problem by applying a GuassianBlur, adaptiveThreshold, erode, removed the noise (erode, dilate, dilate, erode) and findContours. For each contour I checked whether the area was in a acceptable interval and used boundingRect to find the center of the circle countour. |
2014-06-15 13:34:00 -0600 | commented answer | Detection of table tennis balls and color correction Thanks for the reply. As you said in the answer, the method did not work on all my test images. I solved the problem by applying a GuassianBlur, adaptiveThreshold, erode, removed the noise (erode, dilate, dilate, erode) and findContours. For each contour I checked whether the area was in a acceptable interval and used boundingRect to find the center of the circle countour. |
2014-06-13 14:48:58 -0600 | commented question | Detection of table tennis balls and color correction Thanks for the comment. I will look into it and tell if it works. |
2014-06-13 06:10:12 -0600 | received badge | ● Student (source) |
2014-06-12 21:22:22 -0600 | received badge | ● Editor (source) |
2014-06-12 21:19:45 -0600 | asked a question | Detection of table tennis balls and color correction Hello I am making a robot project and I am trying to detect the tables tennis balls in pictures (from a webcam) like this.
I have tried different smoothing functions and tried a lot different numbers in the parameters to the functions, but the image (pre-processed) that gives best results look like this. The camera stand foot got detected as a circle but I removed that result and 4 balls are not found. This is the balls I find at the end.
This is my code: Do you guys have any ideas about why the last 4 balls are not detected and how the pre-processing can be improved? I am also having trouble detecting the colored circles on the robot. Sometimes it works, sometimes it doesn't. I think the sunlight affects the detection. I found this color balance technique which is implemented in Matlab (I think) and I have no idea how I would translate that to OpenCV. Any advice on how to translate that would also be appreciated. |
2014-06-12 18:54:09 -0600 | received badge | ● Supporter (source) |