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

    M0025-1 Hires Camera capture with opencv

    Ask your questions right here!
    2
    4
    397
    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.
    • P
      Philemon Benner
      last edited by 22 May 2023, 08:52

      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
      • C
        Chad Sweet ModalAI Team
        last edited by 23 May 2023, 03:23

        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
        • P
          Philemon Benner
          last edited by 23 May 2023, 07:59

          Thanks for the fast reply

          1 Reply Last reply Reply Quote 0
          • P
            Philemon Benner
            last edited by 23 May 2023, 10:23

            @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
            1 out of 4
            • First post
              1/4
              Last post
            Powered by NodeBB | Contributors