VehicleX icon indicating copy to clipboard operation
VehicleX copied to clipboard

How to set camera intrinsics?

Open srikanthmalla opened this issue 2 years ago • 3 comments

Hi, Is it possible to set different camera parameters while creating images from the 3d models using your plugin? Please let me know.

Thank you, Srikanth

srikanthmalla avatar May 22 '22 18:05 srikanthmalla

I think you can simply change them in https://github.com/yorkeyao/VehicleX/blob/master/VehicleX%20Interface/settings/VehicleID.json

yorkeyao avatar May 24 '22 10:05 yorkeyao

Hi @yorkeyao , None of your settings files contains camera focal or distortion parameters. Are they available with different key names? Please let me know.

srikanthmalla avatar May 24 '22 22:05 srikanthmalla

Oh, you mean intrinsic parameters? I think I give a fixed value for focal and distortion parameters in my code. You can refer to our new paper for details. https://arxiv.org/pdf/2202.14034.pdf

If you want to change them, you may need to go through the Unity source code (https://github.com/yorkeyao/VehicleX/tree/master/Unity%20Source). I have a camera defined in my scene. You can change the focal and distortion there.

yorkeyao avatar May 27 '22 05:05 yorkeyao