1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-27 22:33:03 +04:00

Add a file with preprocessing parameters for deep learning networks

This commit is contained in:
Dmitry Kurtaev
2018-09-20 17:59:04 +03:00
parent 87b1835cb6
commit ad5898224d
12 changed files with 435 additions and 104 deletions
+14
View File
@@ -269,6 +269,20 @@ FileNode FileNode::operator[](int i) const
i == 0 ? *this : FileNode();
}
std::vector<String> FileNode::keys() const
{
std::vector<String> res;
if (isMap())
{
res.reserve(size());
for (FileNodeIterator it = begin(); it != end(); ++it)
{
res.push_back((*it).name());
}
}
return res;
}
String FileNode::name() const
{
const char* str;