I am developing for a custom headset and I am having issues with the camera preview. When I enabled passthrough I see vertical banding on the image which looks to be possibly shutter related. We have noticed this issue in various camera related apps, but it looks like changing the resolution can fix it in some cases. Is there a way to change the camera resolution via this API? I tried changing between the speed and quality optimizations, but no luck. Also, when I run the example script to poll the fields I don't get any plain strings, just things like android.colorCorrection.gains, android.colorCorrection.mode, etc.
- Sort Posts
- 5 replies
- Last post
Advanced Camera API Fields
That's what I figured. Just wanted to see if it was something that had been observed before. One last question. When I dump the image properties through GetVideoMode inside of Unity I see the format as 64 for both optimizations. What do that actually mean? I can't seem to find anything in the documentation that says what format 64 is.
Advanced Camera API Fields
Advanced Camera API Fields
Thanks for the suggestion about limiting the resolution options. Will definitely look into that. I have attached some screenshots capture of the passthrough camera looking at some default markers.
Attachment | Size |
---|---|
![]() | 1.27 MB |
![]() | 1.28 MB |
![]() | 1.25 MB |
Advanced Camera API Fields
Hi,
The resolution is based on the custom driver implemented. The video mode Default/Quality and Speed are determinted by a heuristic based on the camera resolutions reported by the Driver. If the camera reports multiple resolutions than based on the above option Default/Speed/Quality a resolution is selected. A possible solution would be to force the camera to report only 1 resolution. This should be done in the custom driver implementation.
Also could you please provide us an image with the vertical banding that you observe?
Thank you.
Vuforia Engine Support
Hi,
My understanding is that its corresponds to this enum values: https://library.vuforia.com/sites/default/files/references/unity/namespaceVuforia.html#a8f7511b96bcb33bc2ea176a1a8dafb59 and 64 is NV12.
To have an overview the output from GetVideoMode are as follows:
0 -> UNKOWN_FORMAT
1 -> RGB565
2 -> RGB888
4 -> GRAYSCALE
16 -> RGBA8888
32 -> NV21
64 -> NV12
128 -> YV12
256 -> YUV420P
512 -> YUYV
Thank you.
Vuforia Engine Support