update img2bin/img2bin.py.

This commit is contained in:
HuaweiAscend
2020-10-25 15:56:24 +08:00
committed by Gitee
parent 029637fa9a
commit f51a3541eb
+2 -2
View File
@@ -64,7 +64,7 @@ except:
print('[ERROR] install opencv-python failed,please check env.')
exit(0)
else:
ret = os.system('sudo python3.7.5 -m pip install opencv-python')
ret = os.system('sudo python3 -m pip install opencv-python')
if ret != 0:
print('[ERROR] install opencv-python failed,please check env.')
exit(0)
@@ -80,7 +80,7 @@ except:
if sys.version_info.major == 2:
os.system('pip2 install numpy')
else:
os.system('python3.7.5 -m pip install numpy')
os.system('python3 -m pip install numpy')
import numpy as np
def get_args():