QC

Xuất File exe python vscode opencv

 Xuất File exe python vscode opencv

B1: cài đặt  theo link

pip install pyinstaller
pyinstaller --onefile --noconsole ./hinhtron_stt.py  



https://pyinstaller.org/en/stable/installation.html


Báo lỗi :

[ERROR:0@0.012] global persistence.cpp:519 cv::FileStorage::Impl::open Can't open file: 

'C:\Users\youtb\Downloads\vehicle counting\dist\phathiennguoi\cv2\data\\haarcascade_frontalface_default.xml' in read mode 

Sữa lỗi :



Coppy file : haarcascade_frontalface_default.xml trong opencv trong ổ đỉa C pass vào đường dẫn lỗi. Build chạy.



Kiểm tra exe tạo:



Kiểm Tra exe :


Nhấn vào và chạy chương trình:

Demo kết quả :



Hình ảnh lưu lại file đã cài đặt :



GIT :https://github.com/ANH2018/phathiennguoi




Nap Code vào PY32F003 dùng Stlink

 Nap Code vào PY32F003 dùng Stlink Bước 1: Cài đặt  KeilC v5.39 theo link sau ( chú ý 5.39 keil c mới nạp ok). https://edge07.111.ir.cdn.ir/...