Modifying frames with OpenCV before writing to encoded video file
-
Hi, I'd like to develop a program very similar to
voxl-record-videofor the camera i have connected ashires, except that upon receiving a frame, I want to edit it using OpenCV's drawing functionalities, specificallyarrowedLine()andputText(), before writing it to file. Invoxl-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? -
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?
Reading along? Create a free ModalAI Forum account to join in.
With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.
Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.
Register Login