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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. Save camera frames using OpenCV

Save camera frames using OpenCV

Scheduled Pinned Locked Moved Software Development
5 Posts 3 Posters 1.7k Views 3 Watching
  • 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
    Alex123
    Contributor
    wrote on last edited by
    #1

    Hi,
    I'm working on OpenCV using the voxl core-board. I've connected hires + tracking camera.

    I want to save the frames of hires camera using cv2.VideoCapture(0) method but it prompts an error.
    I'm unable to open the video stream using cv2.VideoCapture(0).

    I also want to know the scope of OpenCV using the voxl core-board. (Any limitations?)

    Any suggestions would be greatly appreciated!

    Thanks!

    1 Reply Last reply
    0
    • modaltbM Offline
      modaltbM Offline
      modaltb
      ModalAI Team
      wrote on last edited by
      #2

      Hi @Alex123 ,

      Here's an example that is in development that should similar to what you need:

      https://gitlab.com/voxl-public/modal-pipe-architecture/voxl-dfs-server/-/blob/master/clients/voxl-camera-logger.cpp

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Alex123
        Contributor
        wrote on last edited by
        #3

        Hi @modaltb
        The above example is in development and it's not that useful. As I'm looking for on-board processing.
        Is there any option to access the video feed of Hires camera directly using OpenCV for on-board processing?
        (on-board operations like Object Tracking)

        1 Reply Last reply
        0
        • Eric KatzfeyE Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

          There is no direct interface with the hires camera in OpenCV that would allow you to use the VideoCapture API. You will need to get the frames from the camera and feed them to your OpenCV application directly. You could use voxl-rtsp in pipe mode (-m) which would output raw nv21 frames in a named pipe (/dev/frame0). In your application you can read the frames from the pipe (/dev/frame0).

          A 1 Reply Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            There is no direct interface with the hires camera in OpenCV that would allow you to use the VideoCapture API. You will need to get the frames from the camera and feed them to your OpenCV application directly. You could use voxl-rtsp in pipe mode (-m) which would output raw nv21 frames in a named pipe (/dev/frame0). In your application you can read the frames from the pipe (/dev/frame0).

            A Offline
            A Offline
            Alex123
            Contributor
            wrote on last edited by
            #5

            @Eric-Katzfey
            Yes! There is no direct interface with the hires camera in OpenCV.
            I'll follow the steps as you suggested.

            Thanks!

            1 Reply Last reply
            0

            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