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

    Modifying frames with OpenCV before writing to encoded video file

    Ask your questions right here!
    1
    2
    87
    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.
    • V
      voxluser12341
      last edited by voxluser12341 7 May 2025, 13:36 7 May 2025, 13:31

      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 Reply Quote 0
      • V
        voxluser12341
        last edited by voxluser12341 8 May 2025, 13:40 8 May 2025, 13:35

        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 Reply Quote 0
        1 out of 2
        • First post
          1/2
          Last post
        Powered by NodeBB | Contributors