Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Stereo camera calibration not working during extrinsics

Stereo camera calibration not working during extrinsics

Scheduled Pinned Locked Moved Ask your questions right here!
7 Posts 2 Posters 1.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    AndriiHlyvko
    Contributor
    wrote on last edited by
    #1

    Hi I am trying to calibrate a M0015 stereo module on a VOXL 2. When the calibration reaches taking images of the chessboard I cant seem to get it to pass. I just get stuck during this step. I tried to take a skewed image of the chessboard but cant seem to get it to work. Before this I was able to calibrate the hires and the tracking cameras and they calibrated fine. I also calibrated other stereo cameras in the past without encountering this problem.
    I've attached some screenshots of where I am getting stuck. I already tried different lighting conditions as well as moving the cameras closer. I have overhead lighting so I dont think that is the problem.

    camera_calibrator_overlay_1686700970.png

    camera_calibrator_overlay_1686700218.png

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AndriiHlyvko
      Contributor
      wrote on last edited by
      #2

      Here is a picture of my setup

      setup.jpeg

      1 Reply Last reply
      0
      • James StrawsonJ Offline
        James StrawsonJ Offline
        James Strawson
        ModalAI Team
        wrote on last edited by
        #3

        voxl-calibrate-cameras should print out why it is failing. Based on your setup, I'm going to guess the computed extrinsics (rotation and translation) between the cameras are out of bounds. The stereo cameras are meant to be rigidly mounted and co-planer. We have checks within the calibration routine to catch when a camera mount may be warped or installed incorrectly in production.

        A 1 Reply Last reply
        0
        • James StrawsonJ James Strawson

          voxl-calibrate-cameras should print out why it is failing. Based on your setup, I'm going to guess the computed extrinsics (rotation and translation) between the cameras are out of bounds. The stereo cameras are meant to be rigidly mounted and co-planer. We have checks within the calibration routine to catch when a camera mount may be warped or installed incorrectly in production.

          A Offline
          A Offline
          AndriiHlyvko
          Contributor
          wrote on last edited by
          #4

          @James-Strawson thanks for the reply. Do you have any recommendation for the camera mount setup? Like the recommended distance between the cameras? I will 3D print a fixed camera mount and try to calibrate them that way.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            AndriiHlyvko
            Contributor
            wrote on last edited by
            #5

            I mounted the stereo cameras on a fixed 3d printed mount and now I can pass the extrinsics calibration process. Hovewer, the calibration still fails. The reprojection error is too large. Any idea how to reduce the error?
            This is the output I get:

            Calibrating Extrinsics
            4 frames will be processed
            R
            [0.9999654568466109, -0.006073323950560179, -0.005674491143737275;
             0.006031326960414343, 0.999954511527035, -0.007389044040033025;
             0.005719109077940352, 0.00735456408772951, 0.9999566001474435]
            T
            [0.05207460048086331;
             0.001363653767474578;
             0.0015327261966316]
            Re-projection error reported by stereoCalibrate: 0.589027
            Detected horizontal stereo pair
            Distance between cameras: -0.0521
            Extrinsics Calibration Failed
            exceeded allowable max reprojection error:  0.5
            
            Saved intrinsics to: /data/modalai/opencv_stereo_intrinsics.yml
            Exiting Cleanly```
            
            ![setup2.jpg](/assets/uploads/files/1686941494260-setup2.jpg)
            1 Reply Last reply
            0
            • A Offline
              A Offline
              AndriiHlyvko
              Contributor
              wrote on last edited by
              #6

              Also I had to manually switch the camera IDs in the file voxl-camera-server.conf because the left and right cameras were swapped. The camera calibration tool was reporting a negative distance between cameras.

              {
              			"name":	"stereo",
              			"enabled":	true,
              			"frame_rate":	30,
              			"type":	"ov7251",
              			"camera_id":	1,
              			"camera_id_second":	0,
              			"independent_exposure":	false,
              			"ae_desired_msv":	60,
              			"ae_filter_alpha":	0.600000023841858,
              			"ae_ignore_fraction":	0.20000000298023224,
              			"ae_slope":	0.05000000074505806,
              			"ae_exposure_period":	1,
              			"ae_gain_period":	1
              		}
              
              1 Reply Last reply
              1
              • A Offline
                A Offline
                AndriiHlyvko
                Contributor
                wrote on last edited by
                #7

                Ok. I figured out the problem. The problem was my calibration chessboard. I taped the pattern to a cardboard box which resulted in some warping of the pattern. After I glued the pattern onto a flat hard surface the calibration worked.

                1 Reply Last reply
                1

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                ModalAI
                Categories Recent Tags ModalAI.com Docs
                © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups