# Voxl2 camera RAW

Source: https://forum.modalai.com/topic/4556/voxl2-camera-raw
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2025-07-01 11:11:02 UTC by robertociuch
Replies: 5 · Views: 886

## robertociuch · 2025-07-01 11:11:02 UTC

Hi everyone,

is there a way to take some raw snapshot from the HiRes camera (IMX412 w microcoax wires)?
I see that the file created by "voxl-send-command hires_large_color snapshot" is pretty small (less then 800KB)
The preview on the voxl portal seems even better compared to the jpg image

thank you in advance!

## Reply by Riccardo Benedetti · 2025-07-01 14:55:19 UTC

Hi all, I work with Roberto, adding here the voxl-camera-server.conf file we are currently using.
```
{
	"version":	0.1,
	"fsync_en":	true,
	"fsync_gpio":	109,
	"cameras":	[{
			"type":	"imx412",
			"name":	"hires",
			"enabled":	true,
			"camera_id":	1,
			"fps":	30,
			"en_preview":	false,
			"preview_width":	640,
			"preview_height":	480,
			"en_raw_preview":	false,
			"en_small_video":	true,
			"small_video_width":	1024,
			"small_video_height":	768,
			"small_venc_mode":	"h264",
			"small_venc_br_ctrl":	"cqp",
			"small_venc_Qfixed":	30,
			"small_venc_Qmin":	15,
			"small_venc_Qmax":	40,
			"small_venc_nPframes":	9,
			"small_venc_mbps":	2,
			"small_venc_osd":	false,
			"en_large_video":	true,
			"large_video_width":	4056,
			"large_video_height":	3040,
			"large_venc_mode":	"h264",
			"large_venc_br_ctrl":	"cqp",
			"large_venc_Qfixed":	40,
			"large_venc_Qmin":	15,
			"large_venc_Qmax":	50,
			"large_venc_nPframes":	29,
			"large_venc_mbps":	40,
			"large_venc_osd":	false,
			"en_snapshot":	true,
			"en_snapshot_width":	4056,
			"en_snapshot_height":	3040,
			"exif_focal_length":	4.5,
			"exif_focal_length_in_35mm_format":	25,
			"exif_fnumber":	4.5,
			"ae_mode":	"off",
			"gain_min":	54,
			"gain_max":	8000,
			"snapshot_jpeg_quality":	100
		}]
}

```
We are using the snapshots for one of our projects and we would need to have the most detailed image possible to be processed with an external algo.
Thanks

## Reply by robertociuch · 2025-07-09 13:04:13 UTC (in reply to Riccardo Benedetti)

@Alex-Kushleyev 
We updated the voxl-camera-server to the last release, now setting the snapshot quality to 100 we get a bigger file, but it is still compressed.
I read on a different topic that you already saw something about this

thank you

## Reply by Alex Kushleyev (ModalAI staff) · 2025-07-09 13:46:20 UTC (in reply to robertociuch)

@robertociuch , jpg quality of 100 will still result in a lossy / compressed output. What is your goal ?

## Reply by robertociuch · 2025-07-10 12:55:45 UTC (in reply to Alex Kushleyev)

@Alex-Kushleyev 

We need to take snapshot with the best possible image quality, without compression if possible.
It would be nice if we can save the single frames of the hires (few snapshots) in YUV NV12, which is the native format for the software we are using

thanks

## Reply by Alex Kushleyev (ModalAI staff) · 2025-07-11 16:16:12 UTC (in reply to robertociuch)

@robertociuch , you can use a tool `voxl-record-raw-image` which is a part of `voxl-mpa-tools` package, should be installed by default in the VOXL2 SDK. (see help for details for the tool)

This allows you to save any image (whether it is bayer or yuv) at any time from command line. Would that work for you?

Alex
