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

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. Modifying frames with OpenCV before writing to encoded video file

Modifying frames with OpenCV before writing to encoded video file

Scheduled Pinned Locked Moved Ask your questions right here!
2 Posts 1 Posters 363 Views
  • 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.
  • V Offline
    V Offline
    voxluser12341
    wrote on last edited by voxluser12341
    #1

    Hi, I'd like to develop a program very similar to voxl-record-video for the camera i have connected as hires, except that upon receiving a frame, I want to edit it using OpenCV's drawing functionalities, specifically arrowedLine() and putText(), before writing it to file. In voxl-record-video, I believe that the frame is already encoded when received as a char*. Is there a way to transform this into a matrix of pixel values that OpenCV's methods can work with, then transform it back into the format it needs to be in to be written to video? Or is there another approach that you recommend to do this?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      voxluser12341
      wrote on last edited by voxluser12341
      #2

      It seems that a similar functionality has been shown in an experimental python branch: https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-tools/-/blob/pympa-experimental/tools/python/pympa-resize.py. Is this a recommended way to go about this (if so, how do I get these libraries and their C-bindings onto my voxl2) or is there an easier approach?

      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