replace commas to periods as separators for decimal numbers

This commit is contained in:
2025-03-26 00:20:43 +03:00
parent 754700edfb
commit 3b26dbc29d
4 changed files with 30 additions and 29 deletions

View File

@@ -17,7 +17,6 @@
# include <opencv2/imgcodecs.hpp>
# include <opencv2/imgproc.hpp>
#endif
#include <regex>
#include <string>
#include <QWidget>
#include <fstream>
@@ -196,6 +195,10 @@ std::vector<std::wstring> find_net_weights_in_names(std::vector<std::wstring> &n
result.push_back(from_utf8("?"));
}
}
for (auto &entry : result) {
std::replace(entry.begin(), entry.end(), ',', '.');
}
return result;
}