projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0570aa6
)
Hack to stop parsing of problematic CvStatModel::train definition
author
Andrey Kamaev
<andrey.kamaev@itseez.com>
Tue, 19 Feb 2013 06:39:31 +0000
(10:39 +0400)
committer
Andrey Kamaev
<andrey.kamaev@itseez.com>
Tue, 19 Feb 2013 06:39:31 +0000
(10:39 +0400)
doc/ocv.py
patch
|
blob
|
history
diff --git
a/doc/ocv.py
b/doc/ocv.py
index ce750933b823f16d2451262d5cd0b519a5eef696..3e325b7d797479b43fcefa74c4f1f4fd12dd1930 100755
(executable)
--- a/
doc/ocv.py
+++ b/
doc/ocv.py
@@
-992,6
+992,11
@@
class DefinitionParser(object):
return rv
def _parse_signature(self):
+ if r'CvStatModel::train' in self.definition:
+ # hack to skip parsing of problematic definition
+ self.pos = self.end
+ return [ArgumentDefExpr("const Mat&", "train_data", None), ArgumentDefExpr(None, self.definition[self.definition.find("["):-1], None)], False, True
+
self.skip_ws()
if not self.skip_string('('):
self.fail('expected parentheses for function')