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

    OV7251 tracking cam focus

    Ask your questions right here!
    2
    8
    425
    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.
    • H
      hmlow
      last edited by

      Is the OV7251 fisheye tracking cam supposed to be somewhat out of focus rather than being very sharp?

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

        @hmlow , the fisheye cameras typically have very short focal length and for OV7251 (fisheye version), anything that is farther than approximately 15cm (6in) away or even closer should be in focus for this camera. If you have a specific concern, please post an image capture with two high contrast objects : one 15cm away and one 1m away. Double check to make sure the lens is not dirty, otherwise you may gently clean it with a very soft microfiber cloth. Keep in mind the lens is made of plastic, not glass, so it can be scratched if you don't use a soft microfiber cloth.

        If you have another identical OV7251 camera, you can compare them to check if the image looks similar.

        Alex

        H 1 Reply Last reply Reply Quote 0
        • H
          hmlow @Alex Kushleyev
          last edited by hmlow

          @Alex-Kushleyev

          These two below are captured from a custom drone that is known to fly reasonably well in feature rich indoor environments.
          When flying outdoors, even if the scene is feature rich and QVIO is actively tracking 20+ features, the quality drops drastically (to -1) if they are far away like more than 200m away. I have at least 10 identically built so far and they exhibit similar behaviors indoors/outdoors.

          The Murata box is placed at around 20cm and 60cm respectively:

          e7d5fdba-f5cc-44ca-8770-abf541a99366-image.png
          617ef5e5-c9b7-47ea-9dd0-59834c6e7982-image.png

          I wont consider the lens to be sharp as you can hardly make out the words "murata" at 60cm. Got me thinking if the poor outdoor performance is due to the lenses being poorly focused.

          Then, these two below however are taken from a brand new builds:
          d227d9c6-0647-4d93-adce-6c4b0cdcdb9d-image.png
          d7cac58d-5a8f-4e3f-87c9-b842140f33b0-image.png

          This im quite sure has got something wrong with the lens/focus isnt it?
          I dont think the lens can be adjusted in the first place.

          H 1 Reply Last reply Reply Quote 0
          • H
            hmlow @hmlow
            last edited by hmlow

            Supplementary post to elaborate what i mean when i said that the VIO works well indoors but Qual drops instantly when the features are far away. The images arent exactly sharp:

            bc8793f9-5374-4597-b65c-63789b1dede6-image.png
            5f0a4e15-9614-49f1-ac1b-2c40d137f613-image.png

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

              @hmlow , the second set of images (which looks blurry) is definitely not OK. Can you check if the lens is clear and not scratched? The lenses n fisheye ov7251 cannot be adjusted as far as I know, but i will double check.

              Regarding far away features, this is normal behavior. If VIO only has features that are far away, it cannot determine their position in space unless there is significant motion (to help triangulate the features). In the capture you provided, there are only features that ate far away and none that are close, so those far features are not very useful (at least for position, but they are good for orientation).

              Also the test case is not very realistic, if you just have camera looking out of the window at far features and not move anywhere. If the drone was able to actually fly out of the window (not suggesting that 🙂 ), the motion would allow it to triangulate the features better and pick up new features.

              Ideally there should be features present both close and far so you will get really good position and orientation estimates from vio.

              Alex

              H 1 Reply Last reply Reply Quote 0
              • H
                hmlow @Alex Kushleyev
                last edited by hmlow

                @Alex-Kushleyev

                Yes the lenses is clear and unscratched.
                I just tried gently rotating the lens and it does rotate!
                I have not tried rotating the rest of the OV7251 cam lens in case i end up inadvertently damaging them.

                Regarding your point about flying out the window -
                I have flown these aircrafts outdoors before and even with motion, for as long as the features are far away, the quality metric is bad.

                However, i noticed that the quality metric shown here remains extremely good even though the features are more than 100m away:
                https://forum.modalai.com/post/11882
                Two key difference here though:
                -OV9782 is used (higher resolution)
                -Sharper images (you can see that the entire frame is sharp vs the regular OV7251 where the corner/edges are always soft (pillars in the opposite bldg)

                Should the OV7251 (even the regular, working ones) be better focused?

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

                  @hmlow , the focus on the non-blurry image looks fine. Keep in mind that the resolution of the image is low (640x480).

                  If the blurry camera lens rotates (it should not), it is possible that it was not correctly focused during production, so I think you have two choices:

                  • try to focus it yourself (and then you would need to glue it in place (i will need to check what adhesive can be used to secure the lens, but do not use CA / super glue)
                  • return the camera and we can send you a replacement part

                  Please let me know what you would like to do.

                  Alex

                  H 1 Reply Last reply Reply Quote 0
                  • H
                    hmlow @Alex Kushleyev
                    last edited by

                    @Alex-Kushleyev I'll glue it back in place myself. Thanks!

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