1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

Merge pull request #12641 from dkurt:dnn_samples_args_autofill

This commit is contained in:
Alexander Alekhin
2018-10-13 12:28:08 +00:00
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;