Closed ranjitkathiriya544 closed 1 month ago
Hi, @ranjitkathiriya544.
Are you able to move the calibration pattern closer to the camera or print a larger calibration pattern? Could you explain your use case? Maybe that would help us understand the need to have a calibration pattern that takes up a small portion of the camera's field of view.
I'm not terribly familiar with Ocean's square array pattern calibration process, but I imagine that calibration pattern taking up a large portion of the field of view of the camera is desirable. So the behavior you observed may be intentional and true to design rather than a bug.
our camera and the pattern distance is 2.6 meters, and also the maximum size of pattern A1.
With OpenCV it works fine, we are comparing the both methods.
I've been able to reproduce your problem with the large image you attached to the Issue. Unfortunately, it turns out that Ocean's calibration pattern detector is not very robust to visible edges that are not part of the pattern itself. If I start with your image and use gimp to fill the red background (and the "Scene" text) with white, the pattern is detected successfully and the code you posted in your now-closed issue seems to work, after correcting the number of columns to 3. For a quick fix, if it's possible to put the calibration pattern in front of a quiet white background, the detector is likely to work better. We will work on making the detector more robust and hope to have an improvement for you next week.
Hi @ranjitkathiriya544,
Could you share with us the field of view and resolution figures for your camera?
And is this an RGB camera or monochrome? And is there anything special about the lighting conditions or objects visible in the background?
Hi, @ranjitkathiriya544, commit f41f9bd401514f5c424c3f983fe547ecfad819a4 just landed. It fixes an oversight in the configuration of calibration pattern detection and your example images now work for me. If you have a chance to try it out, please let us know how it goes!
Could you share with us the field of view and resolution figures for your camera?
180 - 185 degree fov, an fisheye camera.
And is this an RGB camera or monochrome?
RGB camera.
And is there anything special about the lighting conditions or objects visible in the background?
Not much, just a normal environment with a cool light.
@ASchneiderMeta, thanks, it's works, for the image which I uploaded, but, if I twist the image by adding more corners and colours, it got failed, I am looking for an robust solution. Try this below image, this got failed.
In OpenCV if there are multiple patterns, it detect one, but doesn't failed the patten detection. In Ocean, it fails to detect any patten. Hence, we cannot use for multi patten exist.
The current calibration pattern detector depends on a strong assumption that a single coherent calibration pattern dominates the scene. Providing exactly what you're looking for is probably a larger project than we can take on right now. In principle, one larger coherent pattern could be manually constructed from separate sheets taped to a wall in prescribed positions, but I understand that's a lot of work and might not be practical at all for you.
Thanks for the reply,
I have added an example of a patten below, that might failed in scenario.
what I have observed, that if you crop a image, in below way then I can be able to detect. That's proofs 2 point.
Originally posted by @ranjitkathiriya544 in https://github.com/facebookresearch/ocean/issues/40#issuecomment-2384135730