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

Failure to load calibration from ZED Open Capture #1400

Open
marius851000 opened this issue Dec 7, 2024 · 3 comments
Open

Failure to load calibration from ZED Open Capture #1400

marius851000 opened this issue Dec 7, 2024 · 3 comments

Comments

@marius851000
Copy link

I recently bought a ZED mini camera that I plan to use with zed open capture. The program correctly fetch the calibration, but it appear that file parsing fail with the "ZED File invalid" error message.

The file, download from "https://www.stereolabs.com/developers/calib?SN=10025811", (renamed with a .txt to please GitHub) is:
SN10025811.conf.txt

I’ll try to debug this problem myself.

@marius851000
Copy link
Author

After some testing, it appears to be a locale issue, where atof use "," instead of "." for some reason.

@matlabbe
Copy link
Member

matlabbe commented Dec 8, 2024

Is it that line causing the issue?

return atof(ini_.GetValue(elems.front().c_str(), elems.back().c_str(), std::to_string(default_value).c_str()));

That could be fixed with uStr2Float function instead: 3d1eccb

@marius851000
Copy link
Author

marius851000 commented Dec 9, 2024 via email

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

No branches or pull requests

2 participants