I added the calibration dump to the same folder (https://drive.google.com/drive/folders/1CVXPqhDcZUiZ2mwpr0SuMn01XbnaRlPP?usp=sharing).
Regarding to " the lens are out of focus". How could I fix that?
Thanks,
Adrian
I added the calibration dump to the same folder (https://drive.google.com/drive/folders/1CVXPqhDcZUiZ2mwpr0SuMn01XbnaRlPP?usp=sharing).
Regarding to " the lens are out of focus". How could I fix that?
Thanks,
Adrian
Hi!
You were right, The calibration I used to flash the EEPROM was with 5cm between cameras ( I moved the cameras to that distance) but the disparity is almost as bad.
I attatch another full configuration (images used, dump file, reprojection errors, ffc json conf and disparity error). I have tried many different configurations but I cannot get a lower epipolar error of 2.5 ( I think it is too much). Watching the images, do you have any recommendation or maybe any conf that I could try?
https://drive.google.com/drive/folders/1sGeHljsd4kI0ILADPgCvLULOnQ3uTewE?usp=drive_link
Kind regards,
Adrian
Thanks,
Jaka
I updated the repo and changed the resolution to THE4K:
'LCM48' : dai.ColorCameraProperties.SensorResolution.THE_4_K
The reprojection error was reduced but the epipolar error is still above 2.
This is the new calibration with the calibrate.py I am using:
https://drive.google.com/drive/folders/1pACZ2lLaIlww9yqOEIQOuYEM_tQTt4-k?usp=drive_link
adrivg
Don't point the camera at the bright window, it throws off the AE.
Set lens position manually with -rlp {position 0-255}
'-rlp', '--rgbLensPosition', nargs='*', action=ParseKwargs, required=False, default={} , help="Set the manual lens position of the camera for calibration. Example -rlp rgb=135 night=135")
Thanks
Jaka
I will try it and give you a respond.
What do you mean by "set lens position manually"?. I do not understand what that number between 0-255 refers to.
Thanks
Adrian
I tried to calibrate again. I used python3 calibrate.py -s 3.9 -nx 15 -ny 8 -brd OAK-FFC-4P.json -dst calib_3_7_C -ep 2 -rlp right=135 left=135.
I tested different rlp values to focus a distance of 90/100 cm from the cameras and the example values were the ones that gave me the best results. The reprojection error was reduced a bit but the epipolar error is still too high (1.06)
I send you the setup for the new calibration: https://drive.google.com/drive/folders/1wITNra_xuafv5RCj7222uhPM0IfPHbqV?usp=drive_link
I added the script to the same drive under disparity.py
(https://drive.google.com/drive/folders/1wITNra_xuafv5RCj7222uhPM0IfPHbqV). It is based on https://docs.luxonis.com/software/depthai/examples/stereo_depth_video/
Distance from the camera is around 130cm
PD the image's titles are set wrongly (left and rectifiedLeft should be right and rectified right and vice versa)
the distribution is the one shown in the harware mounting, They should be in the same horizontal... I am going to check if there is any slack
I swapped the sockets based on your previous comment:
Try switching the left and right when performing stereo.
Linking
monoLeft.out.link(depth.right)
monoRight.out.link(depth.left)
depth.disparity.link(xout.input)
or switch sockets for left and right.Thanks,
Jaka
Should I change them back?
I am trying to correct camera positions, not sure why I have such slack using OAK-FFC 4P
Hi Jakaskerl,
I realised that I had the cameras swapped on OAK-FFC-4P.json.
I also discovered that there is an inconsistency when you add the parameter -rlp.
As you can see from the images below. When you are capturing the images, you get the name mapping your camId
(the socket name). However, when you set the calibration, you get the name mapping the cam_info
(from json file)
If you change the mapping when capturing the images from camId
mapping to cam_info
should work fine.
That being said, I have redefined the workflow and uploaded it here There are different calibration folders name as calib_X
being X the horizontal distance between cameras
I have added more info than before:
disparity.py
the images are zoomed in compared to when I run cam_test.py
from the depthai_python repository. It also seems that the autofocus is still set even after using -rlp
when calibrating
These are the depth and disparity results for calib_5. The epipolar error I am getting is still too high (2.81) and there is a big difference between right and left reprojection error (almost double, I am not sure if that is normal)
Thank you in advance
Adrián
I have changed those attributes:
However, when I run te script the windows are frozen:
At least, the left frame where it hangs up seems to be fixed.
Any idea?
I set setIspScale to (1,3) to meet the restrictions and now it works:
PD: Do you have any module/script for color correction?