Software Archive
Read-only legacy content
17061 Discussions

Calling properties from the code

Oluwasijibomi_O_
Beginner
484 Views

I am using Microsoft visual studio to edit the code for the camera. Would anyone by any chance know what I can write in the wmain() in order to call Property_color_focal_length_mm? The documentation says that I can use the helper functions QueryXXX and SetXXX of the device interface to get the property values without involving the property enumerator. So does this mean that I should write in wmain the following:

pp ->QueryCaptureManager() ->Set(I don't know what I would put here) ->(PXCCapture::Device::Property_color_focal_length_mm)

0 Kudos
1 Reply
Henning_J_
New Contributor I
484 Views

The method would be PXCCapture::Device::QueryColorFocalLengthMM.You can use it like this:

PXCCapture::Device* device = pp ->QueryCaptureManager()->QueryDevice();
if (device) // the device might not exist before you started any streams
{
    device->QueryColorFocalLengthMM();
}

 

 

0 Kudos
Reply