# 4208x3120 resolution with IMX214 M0025-2 hires cam on VOXL 2

Source: https://forum.modalai.com/topic/2003/4208x3120-resolution-with-imx214-m0025-2-hires-cam-on-voxl-2
Category: VOXL 2 and VOXL 2 Mini (https://forum.modalai.com/category/26/voxl-2-and-voxl-2-mini)
Tags: voxl-2
Posted: 2023-03-28 02:22:20 UTC by Jeff Delaune
Replies: 6 · Views: 1394

## Jeff Delaune · 2023-03-28 02:22:20 UTC

Hello Team,

**This [page](https://docs.modalai.com/voxl2-camera-configs/) indicates that the the IMX214 M0025-2 hires cam was tested at full resolution (4208x3120) on the VOXL2. Unfortunately, we can't seem to access images at that resolution with the latest VOXL 2 image. Are we missing anything? More details below**

Test configuration:
system-image: 1.4.1-M0054-14.1a-perf
kernel:       #1 SMP PREEMPT Thu Oct 13 17:48:16 UTC 2022 4.19.125
hw version:   M0054
voxl-suite:   0.9.5

After running "voxl-configure-cameras" and changing the "preview_width" and "preview_height" entries of /etc/modalai/voxl-camera-server.conf to 4208 and 3120 respectively for the hires camera:
```
"name": "hires",
"enabled":      true,
"frame_rate":   30,
"type": "imx214",
"camera_id":    3,
"preview_width":        4208,
"preview_height":       3120,
"snapshot_width":       3840,
"snapshot_height":      2160
```

Running "voxl-camera-server" throws the following error:
```
ERROR:   Camera 3 failed to find supported preview config: 4208x3120
ERROR:   Failed to start camera: hires, exiting
```
We could verify that 4208x3120 is listed as a supported resolution when running "voxl-camera-server --list"

```
Stats for camera: 3:
ANDROID_SCALER_AVAILABLE_RAW_SIZES:
        4208x3120, 4096x2160, 2104x1560, 1920x1080, 1280x720,
ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES:
        4208x3120, 4096x2160, 2104x1560, 1920x1080, 1280x 720,
```

## Reply by Zachary Lowell 0 · 2023-03-28 14:02:44 UTC

@Jeff-Delaune said in [4208x3120 resolution with IMX214 M0025\-2 hires cam on VOXL 2](/post/9313):
> "name": "hires",
> "enabled":      true,
> "frame_rate":   30,
> "type": "imx214",
> "camera_id":    3,
> "preview_width":        4208,
> "preview_height":       3120,
> "snapshot_width":       3840,
> "snapshot_height":      2160

Hey @Jeff-Delaune - just tried recreating your issue on SDK 0.9 and can say that I also was unable to run the camera at 4208X3120:

![c1ba4b0e-52a5-46aa-8a97-b5ada9710acc-image.png](https://forum.modalai.com/assets/uploads/files/1680012049195-c1ba4b0e-52a5-46aa-8a97-b5ada9710acc-image.png) 

Looks like the reasoning is because there was not a supported PREVIEW config of 4208x3120 - something to note is that the --list basically hits a hal3 api that returns what it believes are the correct camera resolutions. We are currently building out a table of configurable resolutions that are 100% working. 

Anyways - please try a preview config of 4096 x 2160 (still 4k) and that will solve this issue.

Let me know if that is not an option though.

Thanks,
Zach

## Reply by Jeff Delaune _ · 2023-03-28 22:32:38 UTC (in reply to Zachary Lowell 0)

Thanks for the quick reply @Zachary-Lowell-0 !

We were planning a field test in 1 week for which the full resolution is needed => Is there any plan on your side to get the full resolution to work? If so, do you have a timeline for it?

## Reply by Chad Sweet (ModalAI staff) · 2023-03-30 23:00:56 UTC

We are aware of the issue. It is a very time consuming task to fix Qualcomm's camera drivers. We are working on it though and hope it will be resolved in a release this summer.

## Reply by Jeff Delaune _ · 2023-03-31 02:05:25 UTC (in reply to Chad Sweet)

Copy. Thanks @Chad-Sweet and team!

## Reply by Jeff Delaune _ · 2023-04-04 15:35:52 UTC (in reply to Chad Sweet)

Hi @Chad-Sweet,

Would you be able to tell us what has been confirmed to work with the Qualcomm driver for the IMX214 hires cam?

Can we get the full frame at a lower resolution?

Which settings crop the image and which settings down-sample the image?

We tried to explore that and now have a sense, but it would be nice if you could tell us what to expect.

I apologize in advance if you already answered these questions to Andrew by email. He is on leave this week.

## Reply by modaltb (ModalAI staff) · 2023-08-11 22:30:54 UTC (in reply to Jeff Delaune _)

@Jeff-Delaune-_ 
This is a little late, but we have 4208x3120 working now.  The changes weren't in the camera driver itself but the camera pipeline and camera-server...  we have it available in a nightly build if you're up to trying a pre-release out!

![182da38b-69b1-45f1-b775-d8f2f0bc2ec5-image.png](https://forum.modalai.com/assets/uploads/files/1691793013727-182da38b-69b1-45f1-b775-d8f2f0bc2ec5-image.png)
