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

    M0025-1 Hires Camera capture with opencv

    Ask your questions right here!
    2
    4
    351
    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.
    • Philemon BennerP
      Philemon Benner
      last edited by

      Hey,
      i want to integrate the https://docs.modalai.com/M0025/ Camera from you in my application. I'm currently using opencv to capture video frames.
      Is it required that i use the hal3 module used in https://gitlab.com/voxl-public/voxl-sdk/services/voxl-camera-server/-/tree/master/ ?
      If yes wich libraries do i have to link to my application in order to use the hal3 module ?
      And can i build these on my own or are these built alongside the system-image ?

      Platform: Voxl 1 ap8096

      1 Reply Last reply Reply Quote 0
      • Chad SweetC
        Chad Sweet ModalAI Team
        last edited by

        No, you'll need to use voxl-camera-server which is why voxl-camera-server exists. You can develop a client that uses the simple camera helper to receive hires preview frames which are in the NV12 format. You should be able to use OpenCV to convert NV12 to RGB and continue processing as normal from there.

        A google search revealed this as a possible solution https://envyen.com/posts/2020-12-11-opencv-yuv-nv12-to-bgr-conversion/

        1 Reply Last reply Reply Quote 0
        • Philemon BennerP
          Philemon Benner
          last edited by

          Thanks for the fast reply

          1 Reply Last reply Reply Quote 0
          • Philemon BennerP
            Philemon Benner
            last edited by

            @Chad-Sweet what is the reason for using Gralloc allocator on apq8096 for buffer allocation instead of ION memory allocator used in the qrb5165 implementation ?

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