在運行程序時,需要在黑屏下有很多操作,所以這裏我做了個批處理,雙擊就可以運行以上覆雜的步驟:
批處理裏面的內容是:
cd /d "D:\lab\ImageProcess\myPython\OpenMao\openmdao-0.6.0\Scripts"
call activate.bat
cd /d "D:\lab\ImageProcess\myPython\pulse-detector\detect"
dir
python get_pulse.py
@pause
保存成開始execut.bat文件就可以了。