mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix old cascade format function to work with Python3.
This commit is contained in:
parent
197e087543
commit
a0bb1726e3
@ -223,7 +223,7 @@ def cascade_binary_old(path, n_stages, name):
|
||||
n_stages = max_stages
|
||||
|
||||
# read stages
|
||||
stages = [len(t.childNodes)/2 for t in trees][0:n_stages]
|
||||
stages = [len(t.childNodes)//2 for t in trees][0:n_stages]
|
||||
stage_threshold = xmldoc.getElementsByTagName('stage_threshold')[0:n_stages]
|
||||
|
||||
# total number of features
|
||||
|
||||
Loading…
Reference in New Issue
Block a user