Voxl-logger
-
Question about Voxl-logger. Is there a way to get the camera data that is saved in voxl-logger to have a different format or is the the format locked based on the camera's meta data? What I am asking is there a flag that changes a RAW data stream from the camera to PNG or JPEG?
Thank you for you time,
Aaron Porter -
@Aaron-Porter That's not really the point of voxl-logger. voxl-logger saves the data as close to native as possible so it can be used with voxl-replay for simulation. PNG is often used as it's lossless compression. You could fork the project and add a new format. We're always interested in pull requests for new future additions
-
@Aaron-Porter , the voxl-logger does not control what format the images are coming from
voxl-camera-server
. Currently, voxl-camera-server can output images in RAW8, YUV format and JPEG only in the case of a snapshot (not continuous). So, to answer your first question, the camera server does not support outputting PNG or JPEG in continuous streams.voxl-logger already supports saving images in png or jpeg format, depending on the type of image that is being logged (RAW8 mono or YUV color, etc). You could tweak the behavior to your needs or add a flag to voxl-logger to force a logging format : https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-logger/-/blob/master/tools/voxl-logger.cpp?ref_type=heads#L1455 .
Alex