Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

short answer:

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)

longer answer:

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.