Skip to main content
. 2021 Jul 9;21(14):4708. doi: 10.3390/s21144708
Algorithm 1 Aruco estimates tag attitude.
  Input: n pairs of left and right panoramic images
if i < n then
  Binocular stereo panoramic image distortion correction
  Image preprocessing, extracting Aruco tag
  If Aruco tag is found in both left and right images then
  Extract the posture of Aruco tag, i=1nj=1k||Tc2c1·Pijc1Pijc2||22 is added to the nonlinear optimization equations
  else i = i + 1
  end if
Else
  Solving nonlinear optimization equations with MATLAB
  if the average reprojection error is less than ±5 pixels then
     Calibration successful
    Else
   Calibration failed
  end if
end if