MINI High Quality Camera imx477 blur image

Hello I recently bought the MINI High Quality Camera imx477 for jetson nano. (https://www.arducam.com/product/arducam-high-quality-camera-for-jetson-nano-and-xavier-nx-12mp-m12-mount/)
When I try to use the nvgstcapture-1.0 --camsrc=1 --automate --capture-auto command, the captured image is blur. I think may be there is an issue to the camera focus.
You can find attached the capture picture
nvcamtest_8440_s00_00000

Any suggestions?

Hi,
This camera uses an M12 lens that can be twisted to get the best focus. If you find out there’s an adhesive around the lens, you can use a heat gun or hair dry to melt it and then try twisting the lens to capture a clear image.

Thank you for your answer, I will try it!

I also note that there is lens distortion in the images.
Any recomendation?

Hi,
Sorry, I cannot figure out the lens distortion you mentioned. Afaik, you should see the lens distortion within a clear image. However, you can only get blurry images.
Not sure what you mean. Do you use the original lens?

For image focusing issue, I tried your solution and it worked perfectly.
Regarding to lens distortion I capture an image without blurring.
This is the original photo

and this is the captured
nvcamtest_9236_s00_00000

As you can notice the squares were captured as rectangles, especially in the vertical side.
I am using the orignal lens from the provided link.

Hi
How long is between the camera and the object?

Hi,
approximatelly 35cm