TypQxQ / kTAMV

Klipper Tool Alignment (using) Machine Vision
GNU General Public License v3.0
71 stars 8 forks source link

doesn't correctly recognize the nozzle center #8

Closed seene closed 9 months ago

seene commented 9 months ago

Hey,

I've spent quite some time with the automatic calibration, but unfortunately, it fails for me very often, almost always. It seems like it doesn't correctly recognize the nozzle center.

The software identifies all sorts of things as the nozzle center or a circle. I've tried many things already. image1 image2 image3

The image quality is good the nozzle is very clean I've tried getting closer and moving further away and I've tested various lighting conditions extensively, but unfortunately, without success.

Is there something I might be overlooking?

TypQxQ commented 9 months ago

From the images you provide, only the 5th is a good image. The other ones are too skewed. The circle of the nozzle hole isn't quite round there. The 5th image should work...

Lightning conditions are important for OpenCV. Both direct and indirect lightning. Both the lightning directed from the camera, microscope or endoscope light and the general lightning in the room. You can try to diffuse the light with some semitransparent white paper, electrical tape or a white sock. :D

When it finds more than one circle, it will pick the one nearest to the middle.

Hope it helps.

seene commented 9 months ago

Okay, good to know, thank you. I'll try to improve the camera's mounting.

In general, is it better to have the camera closer to the nozzle?

TypQxQ commented 9 months ago

Yes, in general closer to the nozzle and less reflections, dimmer light.