mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Fix cascade converter script Windows bug.
* Using open "w" instead of "wb" causes the script to fail on Windows.
This commit is contained in:
parent
586afe3e2b
commit
bb23ed01ad
@ -143,7 +143,7 @@ def cascade_binary(path, n_stages, name):
|
||||
# open output file with the specified name or xml file name
|
||||
if not name:
|
||||
name = os.path.basename(path).split('.')[0]
|
||||
fout = open(name+".cascade", "w")
|
||||
fout = open(name+".cascade", "wb")
|
||||
|
||||
n_rectangles = 0
|
||||
for f in feature:
|
||||
@ -242,7 +242,7 @@ def cascade_binary_old(path, n_stages, name):
|
||||
# open output file with the specified name or xml file name
|
||||
if not name:
|
||||
name = os.path.basename(path).split('.')[0]
|
||||
fout = open(name+".cascade", "w")
|
||||
fout = open(name+".cascade", "wb")
|
||||
|
||||
n_rectangles = 0
|
||||
for f in feature:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user