Log in or register to post comments

Advanced Camera API Fields

February 16, 2021 - 2:19pm #1

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.

Advanced Camera API Fields

February 23, 2021 - 2:35am #6

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

 

Advanced Camera API Fields

February 22, 2021 - 10:08am #5

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

February 22, 2021 - 6:02am #4

Hi,

Thank you for the pictures.

We don't believe that VE can add that sort of distortion, this looks like artifacts from oem's camera or software stack.

Vuforia Engine Support

Advanced Camera API Fields

February 17, 2021 - 1:57pm #3

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.

Advanced Camera API Fields

February 17, 2021 - 2:57am #2

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

Log in or register to post comments