12-23-2022 12:09 AM
Hi,
I am trying to get a better image to detect the circular edge of the hole. I have tried to use vision assistant to adjust the brightness, contrast, and gamma to make the hole clearer. However, I am still not satisfied as the hole image is not clear enough. Would appreciate if there are any suggestions that I can try. Here's the raw image.
12-23-2022 10:13 AM
Are you in a position to improve the image, or are you stuck with processing the image you have.
Increasing magnification by getting closer, or changing the focal length of the lens will help with the size issue. The edge of the circle is not sharp - is this a focus issue?
Cheers
Robert
12-23-2022 09:38 PM
It is possible to find this hole in the image.
But I would suggest first step to try to improve your illumination if you can.
It will make the problem much easier.
12-24-2022 09:30 AM - edited 12-24-2022 11:55 AM
First of all, please explain what the "hole" is in this case because there are two circular objects.
Also explain your definition of "better image". More contrast? More focus? Do you just need to detect the circular boundaries or detect patterns in the lighter area? Is the object center always in the middle of the image or do you need to find where it is? are the diameters always the same or can they differ? Are the two boundaries concentric?
Sorry, I don't have the vision tools, but my guess is that detecting the edges of the two concentric circular objects should be easy even in plain LabVIEW.
12-24-2022 11:25 AM - edited 12-24-2022 11:29 AM
Here's a quick attempt using plain LabVIEW:
Would be easy to tune the inputs more if needed.
12-24-2022 11:53 AM
@altenbach wrote:
Would be easy to tune the inputs more if needed.
If you set the threshold to 150 instead of 127, here's what you get instead. (r~162)
12-26-2022 06:38 PM
This is the "hole" in this case:
"Better image" means I would like to have a clearer circular shape at the center. The object center always in the middle of the image. The diameters always the same. I able to get the diameter using "Find Circular Edge" feature, however I did not always get the same diameter for other sample images.
12-26-2022 06:44 PM
I'm stuck with processing the image. Is there any feature in Vision Builder that I can try without changing the focal length? Cause this is the most focus image that I can get.
12-27-2022 11:25 AM
Sorry, I am not sure what problem you are trying to solve. If the diameter is always the same, why do you need to measure it?
If the image is more blurry than expected, maybe there is a hardware problem (wrong focus, dirty lens, vibration, etc.).
If this is the best possible image, you need to explain the purpose of the exercise. Some possibilities:
12-27-2022 06:38 PM
Sorry for the unclear explanation. There is a hole. I would like to measure the diameter of the hole. The diameter should be the same, however I did not get the same diameter everytime I measure it. The measured diameter that I got was too small, and sometimes too big. And I am not sure which point is the correct centre as it is not consistent. I think it is because of blurry part at the hole that
makes the circular shape of the hole is not sharp and clear enough to be detected correctly. I have tried to sharpen the image using filter but still did not get clearer circular shape at the centre. Is it possible if I want to process the image to artificially sharpen the image?