Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changing camera field of view #21

Open
DangerDay opened this issue Oct 12, 2020 · 3 comments
Open

Changing camera field of view #21

DangerDay opened this issue Oct 12, 2020 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@DangerDay
Copy link

Moving this question over from AKVJ.

Looking for a way to set the Azure Kinect to 120 degree FOV, found this bit here in ThreadedDriver.cs:

new DeviceConfiguration
{ ColorFormat = ImageFormat.ColorBGRA32,
ColorResolution = ColorResolution.R1536p, // 2048 x 1536 (4:3)
DepthMode = DepthMode.NFOV_Unbinned, // 640x576
SynchronizedImagesOnly = true });

Along with these settings here:

public static int ImageWidth => 640;
public static int ImageHeight => 576;

When I try to match what should be the WFOV_2x2Binned or WFOV_Unbinned settings with the ImageWidth and ImageHeight I either get a device error or it will start up but I get some pretty bad lines across the VFX graph effects.

My question is are there more settings that I haven't found yet, or is there another way to set the field of view?

@keijiro keijiro self-assigned this Oct 13, 2020
@keijiro keijiro added the question Further information is requested label Oct 13, 2020
@keijiro
Copy link
Owner

keijiro commented Oct 13, 2020

@nextnow
Copy link

nextnow commented Oct 13, 2020

I think this line must be modified too:

https://github.com/keijiro/Akvfx/blob/master/Packages/jp.keijiro.akvfx/Resources/Akvfx.compute#L26

I was able to get WFOV_2x2Binned 512x512 working by changing that, but I still get a device error with WFOV_Unbinned 1024x1024:

"AzureKinectStartCamerasException: result = K4A_RESULT_FAILED"

Do you know if there's anything else I need to change when setting WFOV_Unbinned?

@keijiro
Copy link
Owner

keijiro commented Oct 14, 2020

According to the hardware specification, the WFOV Unbinned mode doesn't support 30 FPS.

https://docs.microsoft.com/en-us/azure/kinect-dk/hardware-specification

So you may have to change the FPS to 15.

https://microsoft.github.io/Azure-Kinect-Sensor-SDK/master/class_microsoft_1_1_azure_1_1_kinect_1_1_sensor_1_1_device_configuration_a68756d38f2bc49df2dc9316fa88e8115.html#a68756d38f2bc49df2dc9316fa88e8115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants