原创 C++中 #if #endif 和#ifdef #endif的用法

第一種: #if  #else  #endif搭配使用方法: #define SHOW_LOG 0 void main() { #if SHOW_LOG cout << "show log ..." << endl; #else

原创 OpenCV相機標定報錯:Error: Assertion failed (nimages > 0) in cv::calibrateCameraRO

報錯信息: opencv/modules/calib3d/src/calibration.cpp:3679: error: (-215:Assertion failed) nimages > 0 in function 'calibrat

原创 C++ OpenCV4繪製輪廓最小外接矩形

C++ OpenCV4繪製輪廓最小外接矩形使用方法發生了一些變化: OpenCV2/3的代碼: findContours(srcImg, contours, hierarcy, CV_RETR_EXTERNAL, CV_CHAIN_AP

原创 Python3.5.1 報錯 ImportError: cannot import name 'Type'

報錯信息:ImportError: cannot import name 'Type' 解決方法: ① 降低tornado的版本到5.1.1 ② 降低scipy的版本到1.2.1  兩種方法都試一下,應該就可以解決問題了,僅限Pyth

原创 Qt5學習筆記(二):信號與槽實例

目標:輸入系統指令,調用打開對應的應用,比如,輸入notepad,點擊確定,可以打開記事本   選中確定按鈕,鼠標右鍵轉到槽,選擇clicked()事件,添加函數內容 void Widget::on_submitButton_clic

原创 Windows10 YOLO V3 Darknet編譯測試

主要的編譯方法可以參考這篇博客https://blog.csdn.net/KID_yuan/article/details/88380269 我的編譯環境win10, VS2015, OpenCV3.3, cuda_10.0.130_41