replace commas to periods as separators for decimal numbers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user