OpenSfM
OpenSfM copied to clipboard
Locale problem in TracksManager
Hello, InstanciateFromStreamV2(S& fstream) uses std::stod, which in Russian locale expects floating point delimiter to be "," (not "."). So, all point coordinates (x,y) appears to be zeros, and reconstruction fails (tracks.csv uses "." delimiter).
As a quick hack, I added
std::locale().global(std::locale("C"));
to the beginning of function, which fixes the problem.