Update cascade_convert.py

This commit is contained in:
bherbruck 2020-05-28 11:21:37 -04:00 committed by GitHub
parent 109eaa1cd1
commit 11741e5ad1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: