You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question regarding the use of the Gemini 2L model.
I need to retrieve the camera's intrinsic and distortion values, so I tried using the getIntrinsic and getDistortion functions provided in the StreamProfile.hpp file. However, when I called these functions, I encountered the error: 'Error: Cannot find matched camera param!'. All related logs are as follows.
While functions like width, height, and fps work correctly and appear to be implemented, it seems that the getIntrinsic and getDistortion functions are either not properly implemented or cannot be called. I would like to know why these functions fail to execute.
The function code I wrote is shown below. The build process completes without issues, but the error occurs during runtime.
void printStreamProfile(const std::shared_ptr<ob::StreamProfile> &profile, const std::string &streamName) {
auto videoProfile = profile->as<ob::VideoStreamProfile>();
if (videoProfile) {
uint32_t width = videoProfile->width();
uint32_t height = videoProfile->height();
auto intrinsic = videoProfile->getIntrinsic();
auto distortion = videoProfile->getDistortion();
std::cout << streamName << " Stream - Width: " << width << ", Height: " << height << std::endl;
} else {
std::cout << "Stream profile for " << streamName << " is not a video profile!" << std::endl;
}
}
For reference, if I remove the two sections below and run the code, it works correctly.
auto intrinsic = videoProfile->getIntrinsic();
auto distortion = videoProfile->getDistortion();
Best Regard
The text was updated successfully, but these errors were encountered:
Do I need to provide the code I wrote for you to review the issue? or has it already been confirmed that the variables are being appropriately output when using the corresponding function?
I have a question regarding the use of the Gemini 2L model.
I need to retrieve the camera's intrinsic and distortion values, so I tried using the getIntrinsic and getDistortion functions provided in the StreamProfile.hpp file. However, when I called these functions, I encountered the error: 'Error: Cannot find matched camera param!'. All related logs are as follows.
While functions like width, height, and fps work correctly and appear to be implemented, it seems that the getIntrinsic and getDistortion functions are either not properly implemented or cannot be called. I would like to know why these functions fail to execute.
The function code I wrote is shown below. The build process completes without issues, but the error occurs during runtime.
For reference, if I remove the two sections below and run the code, it works correctly.
Best Regard
The text was updated successfully, but these errors were encountered: