mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Update cascade_convert.py
This commit is contained in:
parent
109eaa1cd1
commit
11741e5ad1
@ -240,6 +240,8 @@ def cascade_binary_old(path, n_stages, name):
|
||||
feature = xmldoc.getElementsByTagName('rects')[0:n_features]
|
||||
|
||||
# read cascade size
|
||||
size = list(map(int, xmldoc.getElementsByTagName('size')[0].childNodes[0].nodeValue.split()))
|
||||
|
||||
|
||||
# open output file with the specified name or xml file name
|
||||
if not name:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user