ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    ToF v2 outdoor noise

    Image Sensors
    6
    14
    928
    Loading More Posts
    • 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.
    • M
      MattK
      last edited by MattK

      So I actually was able to filter out the noise pretty well by adding a temporal filter to confidence and depth values in PerCameraMgr::RoyaleDataDone in hal3_camera_mgr.cpp.

      013592c5-8fed-4b9a-96b7-7b7dadaf8a84-image.png

      ^ I used an exponential moving average with alpha = 0.25. After updating the EMA buffer, I cleaned things up further by reducing all confidence values below an ~80% threshold (200/255) to zero,

      That seems to be working pretty well at reducing/ignoring noise artifacts from sunlight while still being able to see large objects.

      248cc9ca-c602-4799-9fd8-7b4635702ba1-image.png

      I've only tested it out on the ground so far though, and expect to encounter reliability issues in the air when everything is in motion. I've already noticed that when I walk around in frame, I ghost and become lost in the noise due to the temporal nature of the filter. I'll probably tweak things more and try to experiment with median/spatial filters as well, but for now this at least seems like it should work for things like large trees, buildings, and the ground, when the drone is flying slowly.

      Still interested to know more about how outdoor obstacle avoidance is addressed with the Starling Max v2.

      Alex KushleyevA 1 Reply Last reply Reply Quote 1
      • Alex KushleyevA
        Alex Kushleyev ModalAI Team @MattK
        last edited by

        @MattK , there are some filtering settings that can be tweaked in TOF processing libraries. https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/blob/master/src/tof_interface.cpp?ref_type=heads#L1017

        @James-Strawson, do you have any recommendations for better tuning parameters for outdoor use case?

        Alex

        ModeratorM 1 Reply Last reply Reply Quote 1
        • ModeratorM
          Moderator ModalAI Team @Alex Kushleyev
          last edited by

          @Alex-Kushleyev Generally these sensors are not expected to work well outdoors as they are IR-based. The v2 modules operate at 940nm, which should be a little better than the previous gen which operated at 850nm. That being said, the sun will create a lot of noise in the image. You should try the shortest range mode possible

          1 Reply Last reply Reply Quote 1
          • James StrawsonJ
            James Strawson ModalAI Team
            last edited by

            That's a typo on the website we've just corrected. The Starling 2 Max does not include a TOF sensor, and this sensor is not intended for outdoor use.

            I spent some time tuning the TOF point cloud processing filter params on Friday to reduce noise. These changes are in the dev branch now: https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/commit/919c24bef21cbea2eb7be33853884f5f606a0763

            These these changes are likely to help in the outdoor use case too so I suggest giving it a go.

            M 1 Reply Last reply Reply Quote 1
            • M
              MattK @James Strawson
              last edited by

              @James-Strawson Hmmm, unfortunate typo. Does the Starling Max 2 use its dual IMX412 color image sensors to get depth-from-stereo, in order to do outdoor VOA? I wasn't too impressed with the quality of outdoor DFS that I got from the M0015, but perhaps the IMX412s are better?

              Appreciate the extra help/guidance on TOF processing, I'll try take a look. Even though the outdoor use case is not ideal, I'm still leaning towards trying to make the TOF sensors work for us, as the results I'm getting still seem more promising than what I was getting from stereo.

              Alex KushleyevA 1 Reply Last reply Reply Quote 0
              • Alex KushleyevA
                Alex Kushleyev ModalAI Team @MattK
                last edited by

                @MattK ,

                James is out of office, so i will respond. The dual IMX412 will not be used for DFS, in fact the cameras will be pointed in different directions (one forward, one down).

                Also, IMX412 are rolling shutter cameras, which would make it difficult to get accurate DFS while in motion.

                M 1 Reply Last reply Reply Quote 0
                • M
                  MattK @Alex Kushleyev
                  last edited by

                  Thanks, @Alex-Kushleyev .

                  If that's the case, then what kind of VOA solution is present on the Starling 2 Max?

                  ModeratorM 1 Reply Last reply Reply Quote 0
                  • ModeratorM
                    Moderator ModalAI Team @MattK
                    last edited by Moderator

                    @MattK There is currently no VOA capability on Starling 2 Max

                    M 1 Reply Last reply Reply Quote 0
                    • M
                      MattK @Moderator
                      last edited by MattK

                      @Moderator Oh... interesting. You might want to remove this bullet point from its sales page then. https://www.modalai.com/products/starling-2-max?variant=48172375310640

                      9baa1fb3-7afe-4d1e-9644-9905ec7eefc7-image.png

                      Would you be able to recommend a drone with a working VOA solution? We're interesting in getting one to get a baseline for the quality we can expect from VOXL2's built in VOA SDK. I'm particularly interested in assessing depth-from-stereo, I've gotten good enough results for now from the TOF v2 sensor. But TOF recommendations are welcome as well.

                      ModeratorM Jetson NanoJ 2 Replies Last reply Reply Quote 0
                      • ModeratorM
                        Moderator ModalAI Team @MattK
                        last edited by

                        @MattK said in ToF v2 outdoor noise:

                        to remove this bullet point from its sales pag

                        Thank you, fixed

                        1 Reply Last reply Reply Quote 1
                        • dleeD
                          dlee @MattK
                          last edited by

                          @MattK Have you ever tested the EXTRA_LONG_RANGE mode of tof v2? I am also testing VOA outdoors using tof sensor. But it was not enough for me. I tested all of the modes in v2, Extra long-range mode has less noise than other modes. Even though extra long-range mode is better than others, VOA using tof v2 makes the drone stop 2m away from obstacles.

                          M 1 Reply Last reply Reply Quote 1
                          • M
                            MattK @dlee
                            last edited by

                            @dlee Ah, no I have not. I'll give that a try when I get the chance. Thanks!

                            1 Reply Last reply Reply Quote 0
                            • Jetson NanoJ
                              Jetson Nano @MattK
                              last edited by

                              @MattK @Moderator
                              If the Starling V2 Max doesn't support a DFS server due to IMX412 being rolling shutter cameras and no TOF, then how is the 3D map generated?
                              Since in my understanding, to generate a map you need depth values/ point cloud data.
                              If the depth estimates are being obtained by some other means then why can't the same point cloud be made available for VOA in vision-hub server?

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post
                              Powered by NodeBB | Contributors