1 | initial version |
learn_color_balance.py erroneously wrote double values, where integers are expected. edit your yml, so it looks like:
%YAML:1.0
---
num_trees: 30
num_tree_nodes: 64
(remove the dots behind 1st two numbers)
the problem is in the python FileStorage implementation:
>>> fs = cv2.FileStorage("my.yml", 1)
>>> a = 3
>>> type(a)
<class 'int'>
>>> fs.write("a",a)
>>> fs.release()
%YAML:1.0
---
a: 3.