├── QT项目 ├── .qmake.stash ├── .vs │ └── OpencvTest │ │ └── v15 │ │ └── .suo ├── AudioRender.dll ├── GeneratedFiles │ ├── Debug │ │ └── moc_mainwindow.cpp │ └── ui_mainwindow.h ├── HCCore.dll ├── HCNetSDK.dll ├── HCNetSDKCom │ ├── AnalyzeData.dll │ ├── AudioIntercom.dll │ ├── HCAlarm.dll │ ├── HCAlarm.lib │ ├── HCCoreDevCfg.dll │ ├── HCDisplay.dll │ ├── HCGeneralCfgMgr.dll │ ├── HCGeneralCfgMgr.lib │ ├── HCIndustry.dll │ ├── HCPlayBack.dll │ ├── HCPreview.dll │ ├── HCPreview.lib │ ├── HCVoiceTalk.dll │ ├── OpenAL32.dll │ ├── StreamTransClient.dll │ ├── SystemTransform.dll │ └── libiconv2.dll ├── OpencvTest.pro ├── OpencvTest.pro.user ├── OpencvTest.vcxproj ├── OpencvTest.vcxproj.filters ├── OpencvTest.vcxproj.user ├── PlayCtrl.dll ├── SuperRender.dll ├── camera.cpp ├── camera.h ├── debug │ ├── OpencvTest.exe │ ├── OpencvTest.pdb │ ├── moc_predefs.h │ └── moc_predefs.h.cbt ├── main.cpp ├── mainwindow.cpp ├── mainwindow.h ├── mainwindow.ui ├── processpeople.cpp ├── processpeople.h ├── queue.cpp ├── queue.h ├── release │ └── moc_predefs.h.cbt └── x64 │ └── Debug │ ├── OpencvTest.log │ ├── OpencvTest.tlog │ ├── CL.command.1.tlog │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── OpencvTest.lastbuildstate │ ├── OpencvTest.write.1u.tlog │ ├── custombuild.command.1.tlog │ ├── custombuild.read.1.tlog │ ├── custombuild.write.1.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ └── link.write.1.tlog │ ├── camera.obj │ ├── main.obj │ ├── mainwindow.obj │ ├── moc_mainwindow.obj │ ├── processpeople.obj │ ├── qt.log │ ├── qt.txt │ ├── queue.obj │ └── vc141.pdb ├── README.md └── Read_Camera ├── .vs └── OpenCV+Camera │ └── v15 │ ├── .suo │ ├── Solution.VC.db │ ├── Solution.VC.db-shm │ └── Solution.VC.db-wal ├── HOG+SVM训练 ├── HOG+SVM.cpp ├── HOG+SVM训练.vcxproj ├── HOG+SVM训练.vcxproj.filters ├── HOG+SVM训练.vcxproj.user ├── SVM_HOG.xml └── x64 │ └── Release │ ├── HOG+SVM.obj │ ├── HOG+SVM训练.log │ ├── HOG+SVM训练.tlog │ ├── CL.command.1.tlog │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── HOG+SVM训练.lastbuildstate │ ├── HOG+SVM训练.write.1u.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ └── link.write.1.tlog │ ├── vc141.pdb │ └── 负样本处理.obj ├── OpenCV+Camera.sln ├── Read_Camera02 ├── HOGDetectorForOpenCV.txt ├── Queue.cpp ├── Queue.h ├── Read_Camera02.cpp ├── Read_Camera02.vcxproj ├── Read_Camera02.vcxproj.filters ├── Read_Camera02.vcxproj.user └── x64 │ └── Release │ ├── Queue.obj │ ├── Read_Camera02.Build.CppClean.log │ ├── Read_Camera02.log │ ├── Read_Camera02.obj │ ├── Read_Camera02.tlog │ ├── CL.command.1.tlog │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── Read_Camera02.lastbuildstate │ ├── Read_Camera02.write.1u.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ └── link.write.1.tlog │ └── vc141.pdb ├── YV12_RGB ├── YV12_RGB.cpp ├── YV12_RGB.vcxproj ├── YV12_RGB.vcxproj.filters ├── YV12_RGB.vcxproj.user └── x64 │ ├── Debug │ ├── YV12_RGB.log │ ├── YV12_RGB.obj │ ├── YV12_RGB.tlog │ │ ├── CL.command.1.tlog │ │ ├── CL.read.1.tlog │ │ ├── CL.write.1.tlog │ │ ├── YV12_RGB.lastbuildstate │ │ ├── link.command.1.tlog │ │ ├── link.read.1.tlog │ │ └── link.write.1.tlog │ ├── vc141.idb │ └── vc141.pdb │ └── Release │ ├── YV12_RGB.log │ ├── YV12_RGB.tlog │ ├── CL.command.1.tlog │ ├── YV12_RGB.lastbuildstate │ ├── YV12_RGB.write.1u.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ ├── link.write.1.tlog │ └── unsuccessfulbuild │ └── vc141.pdb ├── x64 ├── Debug │ ├── AudioRender.dll │ ├── HCCore.dll │ ├── HCNetSDK.dll │ ├── HCNetSDKCom │ │ ├── AnalyzeData.dll │ │ ├── AudioIntercom.dll │ │ ├── HCAlarm.dll │ │ ├── HCAlarm.lib │ │ ├── HCCoreDevCfg.dll │ │ ├── HCDisplay.dll │ │ ├── HCGeneralCfgMgr.dll │ │ ├── HCGeneralCfgMgr.lib │ │ ├── HCIndustry.dll │ │ ├── HCPlayBack.dll │ │ ├── HCPreview.dll │ │ ├── HCPreview.lib │ │ ├── HCVoiceTalk.dll │ │ ├── OpenAL32.dll │ │ ├── StreamTransClient.dll │ │ ├── SystemTransform.dll │ │ └── libiconv2.dll │ ├── PlayCtrl.dll │ ├── Read_Camera01.exe │ ├── Read_Camera01.pdb │ ├── SuperRender.dll │ └── YV12_RGB.pdb └── Release │ ├── AudioRender.dll │ ├── HCCore.dll │ ├── HCNetSDK.dll │ ├── HCNetSDKCom │ ├── AnalyzeData.dll │ ├── AudioIntercom.dll │ ├── HCAlarm.dll │ ├── HCAlarm.lib │ ├── HCCoreDevCfg.dll │ ├── HCDisplay.dll │ ├── HCGeneralCfgMgr.dll │ ├── HCGeneralCfgMgr.lib │ ├── HCIndustry.dll │ ├── HCPlayBack.dll │ ├── HCPreview.dll │ ├── HCPreview.lib │ ├── HCVoiceTalk.dll │ ├── OpenAL32.dll │ ├── StreamTransClient.dll │ ├── SystemTransform.dll │ └── libiconv2.dll │ ├── HOG+SVM训练.iobj │ ├── HOG+SVM训练.ipdb │ ├── HOG+SVM训练.pdb │ ├── PeopleDetect.iobj │ ├── PeopleDetect.ipdb │ ├── PeopleDetect.pdb │ ├── PlayCtrl.dll │ ├── Read_Camera01.iobj │ ├── Read_Camera01.ipdb │ ├── Read_Camera01.pdb │ ├── Read_Camera02.iobj │ ├── Read_Camera02.ipdb │ ├── Read_Camera02.pdb │ ├── Read_Camera02_Head.exe │ ├── Read_Camera02_Head.iobj │ ├── Read_Camera02_Head.ipdb │ ├── Read_Camera02_Head.pdb │ ├── SuperRender.dll │ ├── YV12_RGB.exe │ ├── YV12_RGB.iobj │ ├── YV12_RGB.ipdb │ ├── YV12_RGB.pdb │ ├── hog+svm训练.exe │ ├── peopledetect.exe │ ├── read_camera01.exe │ ├── read_camera02.exe │ ├── 样本处理.exe │ ├── 样本处理.iobj │ ├── 样本处理.ipdb │ ├── 样本处理.pdb │ ├── 训练集裁剪.exe │ ├── 训练集裁剪.iobj │ ├── 训练集裁剪.ipdb │ └── 训练集裁剪.pdb └── 训练集裁剪 ├── train_main.cpp ├── x64 └── Release │ ├── main.obj │ ├── train_main.obj │ ├── vc141.pdb │ ├── 训练集裁剪.log │ └── 训练集裁剪.tlog │ ├── CL.command.1.tlog │ ├── CL.read.1.tlog │ ├── CL.write.1.tlog │ ├── link.command.1.tlog │ ├── link.read.1.tlog │ ├── link.write.1.tlog │ ├── 训练集裁剪.lastbuildstate │ └── 训练集裁剪.write.1u.tlog ├── 训练集裁剪.vcxproj ├── 训练集裁剪.vcxproj.filters └── 训练集裁剪.vcxproj.user /QT项目/.qmake.stash: -------------------------------------------------------------------------------- 1 | QMAKE_CXX.INCDIRS = \ 2 | "D:\\Microsoft Visual Studio\\VC98\\atl\\include" \ 3 | "D:\\Microsoft Visual Studio\\VC98\\mfc\\include" \ 4 | "D:\\Microsoft Visual Studio\\VC98\\include" \ 5 | "D:\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.13.26128\\ATLMFC\\include" \ 6 | "D:\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.13.26128\\include" \ 7 | "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\include\\um" \ 8 | "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.16299.0\\ucrt" \ 9 | "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.16299.0\\shared" \ 10 | "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.16299.0\\um" \ 11 | "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.16299.0\\winrt" \ 12 | "C:\\Program Files (x86)\\Windows Kits\\10\\include\\10.0.16299.0\\cppwinrt" 13 | QMAKE_CXX.LIBDIRS = \ 14 | "D:\\Microsoft Visual Studio\\VC98\\mfc\\lib" \ 15 | "D:\\Microsoft Visual Studio\\VC98\\lib" \ 16 | "D:\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.13.26128\\ATLMFC\\lib\\x64" \ 17 | "D:\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.13.26128\\lib\\x64" \ 18 | "C:\\Program Files (x86)\\Windows Kits\\NETFXSDK\\4.6.1\\lib\\um\\x64" \ 19 | "C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.16299.0\\ucrt\\x64" \ 20 | "C:\\Program Files (x86)\\Windows Kits\\10\\lib\\10.0.16299.0\\um\\x64" 21 | QMAKE_CXX.QT_COMPILER_STDCXX = 199711L 22 | QMAKE_CXX.QMAKE_MSC_VER = 1913 23 | QMAKE_CXX.QMAKE_MSC_FULL_VER = 191326129 24 | QMAKE_CXX.COMPILER_MACROS = \ 25 | QT_COMPILER_STDCXX \ 26 | QMAKE_MSC_VER \ 27 | QMAKE_MSC_FULL_VER 28 | -------------------------------------------------------------------------------- /QT项目/.vs/OpencvTest/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/.vs/OpencvTest/v15/.suo -------------------------------------------------------------------------------- /QT项目/AudioRender.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/AudioRender.dll -------------------------------------------------------------------------------- /QT项目/GeneratedFiles/Debug/moc_mainwindow.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** Meta object code from reading C++ file 'mainwindow.h' 3 | ** 4 | ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.10.1) 5 | ** 6 | ** WARNING! All changes made in this file will be lost! 7 | *****************************************************************************/ 8 | 9 | #include "../../mainwindow.h" 10 | #include 11 | #include 12 | #if !defined(Q_MOC_OUTPUT_REVISION) 13 | #error "The header file 'mainwindow.h' doesn't include ." 14 | #elif Q_MOC_OUTPUT_REVISION != 67 15 | #error "This file was generated using the moc from 5.10.1. It" 16 | #error "cannot be used with the include files from this version of Qt." 17 | #error "(The moc has changed too much.)" 18 | #endif 19 | 20 | QT_BEGIN_MOC_NAMESPACE 21 | QT_WARNING_PUSH 22 | QT_WARNING_DISABLE_DEPRECATED 23 | struct qt_meta_stringdata_MainWindow_t { 24 | QByteArrayData data[5]; 25 | char stringdata0[58]; 26 | }; 27 | #define QT_MOC_LITERAL(idx, ofs, len) \ 28 | Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ 29 | qptrdiff(offsetof(qt_meta_stringdata_MainWindow_t, stringdata0) + ofs \ 30 | - idx * sizeof(QByteArrayData)) \ 31 | ) 32 | static const qt_meta_stringdata_MainWindow_t qt_meta_stringdata_MainWindow = { 33 | { 34 | QT_MOC_LITERAL(0, 0, 10), // "MainWindow" 35 | QT_MOC_LITERAL(1, 11, 14), // "openCameraSlot" 36 | QT_MOC_LITERAL(2, 26, 0), // "" 37 | QT_MOC_LITERAL(3, 27, 14), // "readCameraSlot" 38 | QT_MOC_LITERAL(4, 42, 15) // "closeCameraSlot" 39 | 40 | }, 41 | "MainWindow\0openCameraSlot\0\0readCameraSlot\0" 42 | "closeCameraSlot" 43 | }; 44 | #undef QT_MOC_LITERAL 45 | 46 | static const uint qt_meta_data_MainWindow[] = { 47 | 48 | // content: 49 | 7, // revision 50 | 0, // classname 51 | 0, 0, // classinfo 52 | 3, 14, // methods 53 | 0, 0, // properties 54 | 0, 0, // enums/sets 55 | 0, 0, // constructors 56 | 0, // flags 57 | 0, // signalCount 58 | 59 | // slots: name, argc, parameters, tag, flags 60 | 1, 0, 29, 2, 0x08 /* Private */, 61 | 3, 0, 30, 2, 0x08 /* Private */, 62 | 4, 0, 31, 2, 0x08 /* Private */, 63 | 64 | // slots: parameters 65 | QMetaType::Void, 66 | QMetaType::Void, 67 | QMetaType::Void, 68 | 69 | 0 // eod 70 | }; 71 | 72 | void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) 73 | { 74 | if (_c == QMetaObject::InvokeMetaMethod) { 75 | MainWindow *_t = static_cast(_o); 76 | Q_UNUSED(_t) 77 | switch (_id) { 78 | case 0: _t->openCameraSlot(); break; 79 | case 1: _t->readCameraSlot(); break; 80 | case 2: _t->closeCameraSlot(); break; 81 | default: ; 82 | } 83 | } 84 | Q_UNUSED(_a); 85 | } 86 | 87 | QT_INIT_METAOBJECT const QMetaObject MainWindow::staticMetaObject = { 88 | { &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data, 89 | qt_meta_data_MainWindow, qt_static_metacall, nullptr, nullptr} 90 | }; 91 | 92 | 93 | const QMetaObject *MainWindow::metaObject() const 94 | { 95 | return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; 96 | } 97 | 98 | void *MainWindow::qt_metacast(const char *_clname) 99 | { 100 | if (!_clname) return nullptr; 101 | if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0)) 102 | return static_cast(this); 103 | return QMainWindow::qt_metacast(_clname); 104 | } 105 | 106 | int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a) 107 | { 108 | _id = QMainWindow::qt_metacall(_c, _id, _a); 109 | if (_id < 0) 110 | return _id; 111 | if (_c == QMetaObject::InvokeMetaMethod) { 112 | if (_id < 3) 113 | qt_static_metacall(this, _c, _id, _a); 114 | _id -= 3; 115 | } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) { 116 | if (_id < 3) 117 | *reinterpret_cast(_a[0]) = -1; 118 | _id -= 3; 119 | } 120 | return _id; 121 | } 122 | QT_WARNING_POP 123 | QT_END_MOC_NAMESPACE 124 | -------------------------------------------------------------------------------- /QT项目/GeneratedFiles/ui_mainwindow.h: -------------------------------------------------------------------------------- 1 | /******************************************************************************** 2 | ** Form generated from reading UI file 'mainwindow.ui' 3 | ** 4 | ** Created by: Qt User Interface Compiler version 5.10.1 5 | ** 6 | ** WARNING! All changes made in this file will be lost when recompiling UI file! 7 | ********************************************************************************/ 8 | 9 | #ifndef UI_MAINWINDOW_H 10 | #define UI_MAINWINDOW_H 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | 25 | QT_BEGIN_NAMESPACE 26 | 27 | class Ui_MainWindow 28 | { 29 | public: 30 | QWidget *centralWidget; 31 | QLabel *imgLabel; 32 | QPushButton *showButton; 33 | QPushButton *closeButton; 34 | QPushButton *openButton; 35 | QMenuBar *menuBar; 36 | QToolBar *mainToolBar; 37 | QStatusBar *statusBar; 38 | 39 | void setupUi(QMainWindow *MainWindow) 40 | { 41 | if (MainWindow->objectName().isEmpty()) 42 | MainWindow->setObjectName(QStringLiteral("MainWindow")); 43 | MainWindow->resize(922, 543); 44 | centralWidget = new QWidget(MainWindow); 45 | centralWidget->setObjectName(QStringLiteral("centralWidget")); 46 | imgLabel = new QLabel(centralWidget); 47 | imgLabel->setObjectName(QStringLiteral("imgLabel")); 48 | imgLabel->setGeometry(QRect(0, 0, 291, 211)); 49 | showButton = new QPushButton(centralWidget); 50 | showButton->setObjectName(QStringLiteral("showButton")); 51 | showButton->setGeometry(QRect(130, 430, 93, 28)); 52 | closeButton = new QPushButton(centralWidget); 53 | closeButton->setObjectName(QStringLiteral("closeButton")); 54 | closeButton->setGeometry(QRect(270, 430, 93, 28)); 55 | openButton = new QPushButton(centralWidget); 56 | openButton->setObjectName(QStringLiteral("openButton")); 57 | openButton->setGeometry(QRect(20, 430, 93, 28)); 58 | MainWindow->setCentralWidget(centralWidget); 59 | menuBar = new QMenuBar(MainWindow); 60 | menuBar->setObjectName(QStringLiteral("menuBar")); 61 | menuBar->setGeometry(QRect(0, 0, 922, 26)); 62 | MainWindow->setMenuBar(menuBar); 63 | mainToolBar = new QToolBar(MainWindow); 64 | mainToolBar->setObjectName(QStringLiteral("mainToolBar")); 65 | MainWindow->addToolBar(Qt::TopToolBarArea, mainToolBar); 66 | statusBar = new QStatusBar(MainWindow); 67 | statusBar->setObjectName(QStringLiteral("statusBar")); 68 | MainWindow->setStatusBar(statusBar); 69 | 70 | retranslateUi(MainWindow); 71 | 72 | QMetaObject::connectSlotsByName(MainWindow); 73 | } // setupUi 74 | 75 | void retranslateUi(QMainWindow *MainWindow) 76 | { 77 | MainWindow->setWindowTitle(QApplication::translate("MainWindow", "MainWindow", nullptr)); 78 | imgLabel->setText(QApplication::translate("MainWindow", "imgLabel", nullptr)); 79 | showButton->setText(QApplication::translate("MainWindow", "show", nullptr)); 80 | closeButton->setText(QApplication::translate("MainWindow", "Close", nullptr)); 81 | openButton->setText(QApplication::translate("MainWindow", "Open", nullptr)); 82 | } // retranslateUi 83 | 84 | }; 85 | 86 | namespace Ui { 87 | class MainWindow: public Ui_MainWindow {}; 88 | } // namespace Ui 89 | 90 | QT_END_NAMESPACE 91 | 92 | #endif // UI_MAINWINDOW_H 93 | -------------------------------------------------------------------------------- /QT项目/HCCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCCore.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDK.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDK.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/AnalyzeData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/AnalyzeData.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/AudioIntercom.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/AudioIntercom.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCAlarm.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCAlarm.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCAlarm.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCAlarm.lib -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCCoreDevCfg.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCCoreDevCfg.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCDisplay.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCDisplay.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCGeneralCfgMgr.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCGeneralCfgMgr.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCGeneralCfgMgr.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCGeneralCfgMgr.lib -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCIndustry.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCIndustry.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCPlayBack.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCPlayBack.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCPreview.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCPreview.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCPreview.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCPreview.lib -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/HCVoiceTalk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/HCVoiceTalk.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/OpenAL32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/OpenAL32.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/StreamTransClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/StreamTransClient.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/SystemTransform.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/SystemTransform.dll -------------------------------------------------------------------------------- /QT项目/HCNetSDKCom/libiconv2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/HCNetSDKCom/libiconv2.dll -------------------------------------------------------------------------------- /QT项目/OpencvTest.pro: -------------------------------------------------------------------------------- 1 | #------------------------------------------------- 2 | # 3 | # Project created by QtCreator 2018-05-14T07:30:48 4 | # 5 | #------------------------------------------------- 6 | 7 | QT += core gui 8 | 9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets 10 | 11 | TARGET = OpencvTest 12 | TEMPLATE = app 13 | 14 | # The following define makes your compiler emit warnings if you use 15 | # any feature of Qt which has been marked as deprecated (the exact warnings 16 | # depend on your compiler). Please consult the documentation of the 17 | # deprecated API in order to know how to port your code away from it. 18 | DEFINES += QT_DEPRECATED_WARNINGS 19 | 20 | # You can also make your code fail to compile if you use deprecated APIs. 21 | # In order to do so, uncomment the following line. 22 | # You can also select to disable deprecated APIs only up to a certain version of Qt. 23 | #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 24 | 25 | 26 | SOURCES += \ 27 | main.cpp \ 28 | mainwindow.cpp \ 29 | camera.cpp \ 30 | queue.cpp \ 31 | processpeople.cpp 32 | 33 | HEADERS += \ 34 | mainwindow.h \ 35 | camera.h \ 36 | queue.h \ 37 | processpeople.h 38 | 39 | FORMS += \ 40 | mainwindow.ui 41 | INCLUDEPATH += D:/OpenCV/opencv/build/include\ 42 | D:/OpenCV/opencv/build/include/opencv\ 43 | D:/OpenCV/opencv/build/include/opencv2 44 | LIBS+=D:/OpenCV/opencv/build/x64/vc14/lib/opencv_world341d.lib 45 | 46 | INCLUDEPATH +="D:/OpenCV/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/include" 47 | LIBS+=D:/OpenCV/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/lib/HCNetSDK.lib\ 48 | D:/OpenCV/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/lib/PlayCtrl.lib\ 49 | D:/OpenCV/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/lib/HCCore.lib\ 50 | D:/OpenCV/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/lib/HCNetSDKCom/HCAlarm.lib\ 51 | D:/OpenCV/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/lib/HCNetSDKCom/HCGeneralCfgMgr.lib\ 52 | D:/OpenCV/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/lib/HCNetSDKCom/HCPreview.lib 53 | 54 | -------------------------------------------------------------------------------- /QT项目/OpencvTest.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {99349809-55BA-4b9d-BF79-8FDBB0286EB3} 6 | ui 7 | false 8 | 9 | 10 | {99349809-55BA-4b9d-BF79-8FDBB0286EB3} 11 | ui 12 | false 13 | 14 | 15 | {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} 16 | cpp;c;cxx;moc;h;def;odl;idl;res; 17 | 18 | 19 | {71ED8ED8-ACB9-4CE9-BBE1-E00B30144E11} 20 | cpp;c;cxx;moc;h;def;odl;idl;res; 21 | 22 | 23 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 24 | h;hpp;hxx;hm;inl;inc;xsd 25 | 26 | 27 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 28 | h;hpp;hxx;hm;inl;inc;xsd 29 | 30 | 31 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 32 | cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx 33 | 34 | 35 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 36 | cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx 37 | 38 | 39 | 40 | 41 | Source Files 42 | 43 | 44 | Source Files 45 | 46 | 47 | Source Files 48 | 49 | 50 | Source Files 51 | 52 | 53 | Source Files 54 | 55 | 56 | 57 | 58 | Header Files 59 | 60 | 61 | Header Files 62 | 63 | 64 | Header Files 65 | 66 | 67 | Header Files 68 | 69 | 70 | 71 | 72 | 73 | 74 | Generated Files 75 | 76 | 77 | Generated Files 78 | 79 | 80 | Generated Files 81 | 82 | 83 | 84 | 85 | Form Files 86 | 87 | 88 | -------------------------------------------------------------------------------- /QT项目/OpencvTest.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | D:\Qt5.10.1\5.10.1\msvc2017_64 5 | PATH=$(QTDIR)\bin%3b$(PATH) 6 | 7 | 8 | D:\Qt5.10.1\5.10.1\msvc2017_64 9 | PATH=$(QTDIR)\bin%3b$(PATH) 10 | 11 | -------------------------------------------------------------------------------- /QT项目/PlayCtrl.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/PlayCtrl.dll -------------------------------------------------------------------------------- /QT项目/SuperRender.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/SuperRender.dll -------------------------------------------------------------------------------- /QT项目/camera.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "queue.h" 3 | LONG nPort = -1; 4 | using namespace cv; 5 | using namespace std; 6 | #define USECOLOR 1 7 | HWND hWnd = NULL; 8 | LONG lUserID2; 9 | LONG lRealPlayHandle2; 10 | 11 | LinkQueue MYQUEUE; //创建队列 12 | void yv12toYUV(char *outYuv, char *inYv12, int width, int height, int widthStep) 13 | { 14 | int col, row; 15 | unsigned int Y, U, V; 16 | int tmp; 17 | int idx; 18 | 19 | //printf("widthStep=%d.\n",widthStep); 20 | 21 | for (row = 0; row>1; 29 | tmp = (row / 2)*(width / 2) + (col / 2); 30 | // if((row==1)&&( col>=1400 &&col<=1600)) 31 | // { 32 | // printf("col=%d,row=%d,width=%d,tmp=%d.\n",col,row,width,tmp); 33 | // printf("row*width+col=%d,width*height+width*height/4+tmp=%d,width*height+tmp=%d.\n",row*width+col,width*height+width*height/4+tmp,width*height+tmp); 34 | // } 35 | Y = (unsigned int)inYv12[row*width + col]; 36 | U = (unsigned int)inYv12[width*height + width * height / 4 + tmp]; 37 | V = (unsigned int)inYv12[width*height + tmp]; 38 | // if ((col==200)) 39 | // { 40 | // printf("col=%d,row=%d,width=%d,tmp=%d.\n",col,row,width,tmp); 41 | // printf("width*height+width*height/4+tmp=%d.\n",width*height+width*height/4+tmp); 42 | // return ; 43 | // } 44 | if ((idx + col * 3 + 2)> (1200 * widthStep)) 45 | { 46 | //printf("row * widthStep=%d,idx+col*3+2=%d.\n",1200 * widthStep,idx+col*3+2); 47 | } 48 | outYuv[idx + col * 3] = Y; 49 | outYuv[idx + col * 3 + 1] = U; 50 | outYuv[idx + col * 3 + 2] = V; 51 | } 52 | } 53 | //printf("col=%d,row=%d.\n",col,row); 54 | } 55 | //解码回调 视频为YUV数据(YV12),音频为PCM数据 56 | void CALLBACK DecCBFun(long nPort, char * pBuf, long nSize, FRAME_INFO * pFrameInfo, long nReserved1, long nReserved2) 57 | { 58 | long lFrameType = pFrameInfo->nType; 59 | 60 | if (lFrameType == T_YV12) 61 | { 62 | #if USECOLOR 63 | //int start = clock(); 64 | IplImage* pImgYCrCb = cvCreateImage(cvSize(pFrameInfo->nWidth, pFrameInfo->nHeight), 8, 3);//得到图像的Y分量 65 | yv12toYUV(pImgYCrCb->imageData, pBuf, pFrameInfo->nWidth, pFrameInfo->nHeight, pImgYCrCb->widthStep);//得到全部RGB图像 66 | IplImage* pImg = cvCreateImage(cvSize(pFrameInfo->nWidth, pFrameInfo->nHeight), 8, 3); 67 | cvCvtColor(pImgYCrCb, pImg, CV_YCrCb2RGB); 68 | //int end = clock(); 69 | #else 70 | IplImage* pImg = cvCreateImage(cvSize(pFrameInfo->nWidth, pFrameInfo->nHeight), 8, 1); 71 | memcpy(pImg->imageData, pBuf, pFrameInfo->nWidth*pFrameInfo->nHeight); 72 | #endif 73 | //printf("%d\n",end-start); 74 | // cvNamedWindow("IPCamera", CV_WINDOW_NORMAL); 75 | // cvShowImage("IPCamera", pImg); 76 | if (!EnQueue(&MYQUEUE, pImg)) 77 | { 78 | cout << "EnQueue Fail!" << endl; 79 | return ; 80 | } 81 | if (QueueLength(&MYQUEUE) > 15) 82 | { 83 | IplImage *data = NULL; 84 | DeQueue(&MYQUEUE, &data); 85 | cvReleaseImage(&data); 86 | } 87 | cvWaitKey(1); 88 | #if USECOLOR 89 | cvReleaseImage(&pImgYCrCb); 90 | //cvReleaseImage(&pImg); 91 | #else 92 | cvReleaseImage(&pImg); 93 | #endif 94 | } 95 | 96 | } 97 | 98 | ///实时流回调 99 | void CALLBACK fRealDataCallBack(LONG lRealHandle, DWORD dwDataType, BYTE *pBuffer, DWORD dwBufSize, void *pUser) 100 | { 101 | DWORD dRet = 0; 102 | BOOL inData = FALSE; 103 | switch (dwDataType) 104 | { 105 | case NET_DVR_SYSHEAD: //系统头 106 | if (nPort >= 0) 107 | { 108 | break; //同一路码流不需要多次调用开流接口 109 | } 110 | if (!PlayM4_GetPort(&nPort)) //获取播放库未使用的通道号 111 | { 112 | break; 113 | } 114 | if (dwBufSize > 0) 115 | { 116 | if (!PlayM4_SetStreamOpenMode(nPort, STREAME_REALTIME)) //设置实时流播放模式 117 | { 118 | cout << "PlayM4_SetStreamOpenMode failed " << endl; 119 | break; 120 | } 121 | if (!PlayM4_OpenStream(nPort, pBuffer, dwBufSize, 1024 * 1024)) //打开流接口 122 | { 123 | cout << "PlayM4_OpenStream failed " << endl; 124 | dRet = PlayM4_GetLastError(nPort); 125 | break; 126 | } 127 | //设置解码回调函数 只解码不显示 128 | if (!PlayM4_SetDecCallBack(nPort, DecCBFun)) //设置回调函数,替换播放器中的显示部分,由用户自己控制显示 129 | { 130 | dRet = PlayM4_GetLastError(nPort); 131 | break; 132 | } 133 | 134 | //设置解码回调函数 解码且显示 135 | //if (!PlayM4_SetDecCallBackEx(nPort,DecCBFun,NULL,NULL)) 136 | //{ 137 | // dRet=PlayM4_GetLastError(nPort); 138 | // break; 139 | //} 140 | 141 | //打开视频解码 142 | if (!PlayM4_Play(nPort, hWnd)) 143 | { 144 | dRet = PlayM4_GetLastError(nPort); 145 | break; 146 | } 147 | 148 | //打开音频解码, 需要码流是复合流 149 | /*if (!PlayM4_PlaySound(nPort)) 150 | { 151 | dRet = PlayM4_GetLastError(nPort); 152 | break; 153 | }*/ 154 | } 155 | break; 156 | 157 | case NET_DVR_STREAMDATA: //码流数据 158 | inData = PlayM4_InputData(nPort, pBuffer, dwBufSize); 159 | while (!inData) 160 | { 161 | Sleep(2); 162 | inData = PlayM4_InputData(nPort, pBuffer, dwBufSize); 163 | cout << "PlayM4_InputData failed 11111" << endl; 164 | break; 165 | } 166 | break; 167 | default: 168 | inData = PlayM4_InputData(nPort, pBuffer, dwBufSize); 169 | while (!inData) 170 | { 171 | Sleep(2); 172 | inData = PlayM4_InputData(nPort, pBuffer, dwBufSize); 173 | cout << "PlayM4_InputData failed 22222" << endl; 174 | break; 175 | } 176 | break; 177 | } 178 | } 179 | 180 | void CALLBACK g_ExceptionCallBack(DWORD dwType, LONG lUserID, LONG lHandle, void *pUser) 181 | { 182 | char tempbuf[256] = { 0 }; 183 | switch (dwType) 184 | { 185 | case EXCEPTION_RECONNECT: //预览时重连 186 | cout << "----------reconnect--------" << endl; 187 | break; 188 | default: 189 | break; 190 | } 191 | } 192 | 193 | int Init_Camera() 194 | { 195 | InitQueue(&MYQUEUE);//队列初始化 196 | //--------------------------------------- 197 | // 初始化 SDK 198 | NET_DVR_Init(); 199 | //设置连接时间与重连时间 200 | NET_DVR_SetConnectTime(2000, 1); 201 | NET_DVR_SetReconnect(10000, true); 202 | 203 | //--------------------------------------- 204 | // 注册设备 205 | LONG lUserID; 206 | NET_DVR_USER_LOGIN_INFO struLoginInfo = { 0 };//登录参数,包括设备地址、登录用户、密码等 207 | NET_DVR_DEVICEINFO_V40 struDeviceInfo = { 0 };//设备信息,输出参数 208 | 209 | strcpy((char *)struLoginInfo.sDeviceAddress, "169.254.27.88"); //设备 IP 地址 210 | strcpy((char *)struLoginInfo.sUserName, "admin"); //设备登录用户名 211 | strcpy((char *)struLoginInfo.sPassword, "landian123"); //设备登录密码 212 | struLoginInfo.wPort = 8000; 213 | struLoginInfo.bUseAsynLogin = 0; //同步登录,登录接口返回成功即登录成功 214 | 215 | lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfo); 216 | lUserID2 = lUserID; 217 | if (lUserID < 0) 218 | { 219 | cout << "NET_DVR_Login_V40 failed, error code: " << NET_DVR_GetLastError() << endl; 220 | NET_DVR_Cleanup(); 221 | return 0; 222 | } 223 | 224 | 225 | int iRet; 226 | //获取通道 1 的压缩参数 227 | DWORD dwReturnLen; 228 | NET_DVR_COMPRESSIONCFG_V30 struParams = { 0 }; 229 | iRet = NET_DVR_GetDVRConfig(lUserID, NET_DVR_GET_COMPRESSCFG_V30, 1, &struParams, \ 230 | sizeof(NET_DVR_COMPRESSIONCFG_V30), &dwReturnLen); 231 | if (!iRet) 232 | { 233 | printf("NET_DVR_GetDVRConfig NET_DVR_GET_COMPRESSCFG_V30 error.\n"); 234 | NET_DVR_Logout(lUserID); 235 | NET_DVR_Cleanup(); 236 | return 0; 237 | } 238 | 239 | //设置通道 1 的压缩参数 240 | struParams.struNormHighRecordPara.dwVideoBitrate = 0.5; 241 | 242 | iRet = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_COMPRESSCFG_V30, 1, \ 243 | &struParams, sizeof(NET_DVR_COMPRESSIONCFG_V30)); 244 | if (!iRet) 245 | { 246 | printf("NET_DVR_GetDVRConfig NET_DVR_SET_COMPRESSCFG_V30 error.\n"); 247 | NET_DVR_Logout(lUserID); 248 | NET_DVR_Cleanup(); 249 | return 0; 250 | } 251 | //获取通道 1 的压缩参数 252 | iRet = NET_DVR_GetDVRConfig(lUserID, NET_DVR_GET_COMPRESSCFG_V30, 1, \ 253 | &struParams, sizeof(NET_DVR_COMPRESSIONCFG_V30), &dwReturnLen); 254 | if (!iRet) 255 | { 256 | printf("NET_DVR_GetDVRConfig NET_DVR_GET_COMPRESSCFG_V30 error.\n"); 257 | NET_DVR_Logout(lUserID); 258 | NET_DVR_Cleanup(); 259 | return 0; 260 | } 261 | printf("Video Bitrate is %d\n", struParams.struNormHighRecordPara.dwVideoBitrate); 262 | 263 | 264 | 265 | //--------------------------------------- 266 | //设置异常消息回调函数 267 | NET_DVR_SetExceptionCallBack_V30(0, NULL, g_ExceptionCallBack, NULL); 268 | 269 | //--------------------------------------- 270 | //启动预览并设置回调数据流 271 | NET_DVR_PREVIEWINFO StruPlayInfo = { 0 }; 272 | StruPlayInfo.hPlayWnd = NULL; //窗口为空,设备SDK不解码只取流 273 | StruPlayInfo.lChannel = 1; //预览通道号 274 | StruPlayInfo.dwStreamType = 0; //0-主流码,1-子流码,2-流码3,3-流码4,以此类推 275 | StruPlayInfo.dwLinkMode = 0; //0-TCP方式,1-UDP方式,2-多播方式,3-RTP方式,4-RTP/RTSP,5-RSTP/HTTP 276 | StruPlayInfo.bBlocked = 1; //0-非堵塞取流,1-堵塞取流 277 | 278 | LONG lRealPlayHandle; 279 | lRealPlayHandle = NET_DVR_RealPlay_V40(lUserID, &StruPlayInfo, fRealDataCallBack, NULL); 280 | lRealPlayHandle2=lRealPlayHandle; 281 | 282 | if (lRealPlayHandle<0) 283 | { 284 | cout << "NET_DVR_RealPlay_V40 failed! Error number: " << NET_DVR_GetLastError() << endl; 285 | return 0; 286 | } 287 | 288 | cout << "The program is successful !!" << endl; 289 | return 0; 290 | 291 | } 292 | int Close_Camera() 293 | { 294 | //--------------------------------------- 295 | //关闭预览 296 | if (!NET_DVR_StopRealPlay(lRealPlayHandle2)) 297 | { 298 | cout << "NET_DVR_StopRealPlay error! Error number: " << NET_DVR_GetLastError() << endl; 299 | NET_DVR_Logout(lUserID2); 300 | NET_DVR_Cleanup(); 301 | return 0; 302 | } 303 | //释放播放库资源 304 | PlayM4_Stop(nPort); 305 | PlayM4_CloseStream(nPort); 306 | PlayM4_FreePort(nPort); 307 | 308 | //注销用户 309 | NET_DVR_Logout(lUserID2); 310 | NET_DVR_Cleanup(); 311 | 312 | return 0; 313 | } 314 | -------------------------------------------------------------------------------- /QT项目/camera.h: -------------------------------------------------------------------------------- 1 | #ifndef CAMERA_H 2 | #define CAMERA_H 3 | 4 | #include 5 | #include "Windows.h" 6 | #include "HCNetSDK.h" 7 | #include "plaympeg4.h" 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include "cv.h" 14 | 15 | int Init_Camera(); 16 | int Close_Camera(); 17 | 18 | #endif // CAMERA_H 19 | -------------------------------------------------------------------------------- /QT项目/debug/OpencvTest.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/debug/OpencvTest.exe -------------------------------------------------------------------------------- /QT项目/debug/OpencvTest.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/debug/OpencvTest.pdb -------------------------------------------------------------------------------- /QT项目/debug/moc_predefs.h: -------------------------------------------------------------------------------- 1 | #define _MSC_EXTENSIONS 2 | #define _INTEGRAL_MAX_BITS 64 3 | #define _MSC_VER 1913 4 | #define _MSC_FULL_VER 191326129 5 | #define _MSC_BUILD 0 6 | #define _M_AMD64 100 7 | #define _M_X64 100 8 | #define _WIN64 9 | #define _WIN32 10 | #define _CPPRTTI 11 | #define _DEBUG 12 | #define _MT 13 | #define _DLL 14 | -------------------------------------------------------------------------------- /QT项目/debug/moc_predefs.h.cbt: -------------------------------------------------------------------------------- 1 | This is a dummy file needed to create debug/moc_predefs.h 2 | -------------------------------------------------------------------------------- /QT项目/main.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include 3 | 4 | int main(int argc, char *argv[]) 5 | { 6 | QApplication a(argc, argv); 7 | QFont font("ZYSong18030",12);//指定显示字体 8 | a.setFont(font); 9 | MainWindow w; 10 | QPalette palette(w.palette()); 11 | palette.setColor(QPalette::Background,QColor::QColor(240,255,240,255)); 12 | w.setPalette(palette); 13 | w.setWindowTitle("教(实验)室智慧照明控制系统"); 14 | w.show(); 15 | return a.exec(); 16 | } 17 | -------------------------------------------------------------------------------- /QT项目/mainwindow.cpp: -------------------------------------------------------------------------------- 1 | #include "mainwindow.h" 2 | #include "ui_mainwindow.h" 3 | #include "camera.h" 4 | #include "processpeople.h" 5 | #include 6 | using namespace cv; 7 | using namespace std; 8 | extern MySignal *a; //在processpeople.cpp中声明 9 | int HandleCoordinate(int x,int y); //把坐标转换为对应的哪一盏灯 10 | int arrBinToHex(bool arr[]); //数组形成的二进制转十进制 11 | bool everyLightStateArr[20]={0};//统计每盏灯的状态 9位二进制,每一位代表每一个灯,1为亮,0为灭 12 | MainWindow::MainWindow(QWidget *parent) : 13 | QMainWindow(parent), 14 | ui(new Ui::MainWindow) 15 | { 16 | ui->setupUi(this); 17 | //定时器、按钮图片初始化 18 | timer = new QTimer(this); 19 | QIcon openIcon("E:\\Pictures\\QImageOpen.png"),closeIcon("E:\\Pictures\\QImageClose.png"); //按钮图片初始化 20 | /* 21 | * 22 | * 23 | * 按钮设置,图片初始化 24 | * 25 | * 26 | * */ 27 | ui->L1Button->setIcon(closeIcon); ui->L1Button->setIconSize(QSize(35,47));ui->L1Button->setFlat(true); 28 | ui->L2Button->setIcon(closeIcon); ui->L2Button->setIconSize(QSize(35,47));ui->L2Button->setFlat(true); 29 | ui->L3Button->setIcon(closeIcon); ui->L3Button->setIconSize(QSize(35,47));ui->L3Button->setFlat(true); 30 | ui->L4Button->setIcon(closeIcon); ui->L4Button->setIconSize(QSize(35,47));ui->L4Button->setFlat(true); 31 | ui->L5Button->setIcon(closeIcon); ui->L5Button->setIconSize(QSize(35,47));ui->L5Button->setFlat(true); 32 | ui->L6Button->setIcon(closeIcon); ui->L6Button->setIconSize(QSize(35,47));ui->L6Button->setFlat(true); 33 | ui->L7Button->setIcon(closeIcon); ui->L7Button->setIconSize(QSize(35,47));ui->L7Button->setFlat(true); 34 | ui->L8Button->setIcon(closeIcon); ui->L8Button->setIconSize(QSize(35,47));ui->L8Button->setFlat(true); 35 | ui->L9Button->setIcon(closeIcon); ui->L9Button->setIconSize(QSize(35,47));ui->L9Button->setFlat(true); 36 | ui->L10Button->setIcon(closeIcon); ui->L10Button->setIconSize(QSize(35,47));ui->L10Button->setFlat(true); 37 | ui->L11Button->setIcon(closeIcon); ui->L11Button->setIconSize(QSize(35,47));ui->L11Button->setFlat(true); 38 | ui->L12Button->setIcon(closeIcon); ui->L12Button->setIconSize(QSize(35,47));ui->L12Button->setFlat(true); 39 | ui->L13Button->setIcon(closeIcon); ui->L13Button->setIconSize(QSize(35,47));ui->L13Button->setFlat(true); 40 | ui->L14Button->setIcon(closeIcon); ui->L14Button->setIconSize(QSize(35,47));ui->L14Button->setFlat(true); 41 | ui->L15Button->setIcon(closeIcon); ui->L15Button->setIconSize(QSize(35,47));ui->L15Button->setFlat(true); 42 | ui->L16Button->setIcon(closeIcon); ui->L16Button->setIconSize(QSize(35,47));ui->L16Button->setFlat(true); 43 | ui->L17Button->setIcon(closeIcon); ui->L17Button->setIconSize(QSize(35,47));ui->L17Button->setFlat(true); 44 | ui->L18Button->setIcon(closeIcon); ui->L18Button->setIconSize(QSize(35,47));ui->L18Button->setFlat(true); 45 | ui->L19Button->setIcon(closeIcon); ui->L19Button->setIconSize(QSize(35,47));ui->L19Button->setFlat(true); 46 | ui->L20Button->setIcon(closeIcon); ui->L20Button->setIconSize(QSize(35,47));ui->L20Button->setFlat(true); 47 | /* 48 | * 49 | * 50 | * 信号槽设置 51 | * 52 | * 53 | * */ 54 | QObject::connect(ui->openButton,SIGNAL(clicked()),this,SLOT(openCameraSlot()));//开 登陆摄像头 55 | QObject::connect(ui->closeButton,SIGNAL(clicked()),this,SLOT(closeCameraSlot()));//关 56 | QObject::connect(timer,SIGNAL(timeout()),this,SLOT(readCameraSlot()));//定时器刷新Label界面,人体检测 57 | QObject::connect(a,SIGNAL(sendPosition(int,int,int)),this,SLOT(attendEditSlot(int,int,int)));//传递检测的数据函数 坐标( x y )人数 58 | QObject::connect(this,SIGNAL(lightNumberSignal(int)),this,SLOT(changeLightSlot(int)));//按钮点击 59 | QObject::connect(this,SIGNAL(autoControlButtonSignal()),this,SLOT(autoControlButtonSlot())); //每次改变文本框信息时发送自动控制按钮状态信号 60 | /* 61 | * 控件初始化 62 | * */ 63 | ui->outEdit->setReadOnly(true); 64 | ui->outEdit->setStyleSheet("border: 1px solid green; color: green; background: silver;"); 65 | } 66 | 67 | MainWindow::~MainWindow() 68 | { 69 | delete ui; 70 | } 71 | 72 | /* 73 | * 74 | * 75 | * 槽函数 76 | * 77 | * 78 | * */ 79 | void MainWindow::openCameraSlot() 80 | { 81 | Init_Camera(); 82 | timer->start(33); //开始计时超时则发出timeout信号 83 | } 84 | void MainWindow::closeCameraSlot() 85 | { 86 | Close_Camera(); 87 | } 88 | void MainWindow::readCameraSlot() 89 | { 90 | Mat frame; 91 | 92 | frame =ProcessPeople(); 93 | cv::cvtColor(frame,frame,CV_BGR2RGB); 94 | QImage img = QImage((const unsigned char*)(frame.data),frame.cols,frame.rows,QImage::Format_RGB888); 95 | ui->imgLabel->setPixmap(QPixmap::fromImage(img)); 96 | ui->imgLabel->resize(ui->imgLabel->pixmap()->size()); 97 | } 98 | //增加TextEdit文本 99 | //该槽函数,刚刚检测开始,以及每次检测一个人的时候都会被调用 100 | 101 | void MainWindow::attendEditSlot(int x, int y, int peopleNumber) 102 | { 103 | static int allowSend = 0; //统计该函数发送坐标的执行次数 104 | QIcon openIcon("E:\\Pictures\\QImageOpen.png"),closeIcon("E:\\Pictures\\QImageClose.png"); 105 | if(peopleNumber==0) //如果人数为0,则关闭所有的灯 106 | { 107 | ui->L1Button->setIcon(closeIcon); 108 | ui->L2Button->setIcon(closeIcon); 109 | ui->L3Button->setIcon(closeIcon); 110 | ui->L4Button->setIcon(closeIcon); 111 | ui->L5Button->setIcon(closeIcon); 112 | ui->L6Button->setIcon(closeIcon); 113 | ui->L7Button->setIcon(closeIcon); 114 | ui->L8Button->setIcon(closeIcon); 115 | ui->L9Button->setIcon(closeIcon); 116 | ui->L10Button->setIcon(closeIcon); 117 | ui->L11Button->setIcon(closeIcon); 118 | ui->L12Button->setIcon(closeIcon); 119 | ui->L13Button->setIcon(closeIcon); 120 | ui->L14Button->setIcon(closeIcon); 121 | ui->L15Button->setIcon(closeIcon); 122 | ui->L16Button->setIcon(closeIcon); 123 | ui->L17Button->setIcon(closeIcon); 124 | ui->L18Button->setIcon(closeIcon); 125 | ui->L19Button->setIcon(closeIcon); 126 | ui->L20Button->setIcon(closeIcon); 127 | } 128 | if(x==0&&y==0&&peopleNumber!=0) //当坐标都为0时,表明检测刚刚开始,如果有人数,先显示人数,开始检测人的位置之后坐标才有值 129 | { 130 | QString peopleN_s = QString::number(peopleNumber); 131 | ui->outEdit->append("PeopleNumber: "+peopleN_s); //追加文本 132 | for(int i=0;i<20;i++) 133 | { 134 | everyLightStateArr[i]=0; 135 | } 136 | } 137 | else if(x!=0&&y!=0) //当有坐标时(包括误报),人数肯定不为零,显示检测信息 138 | { 139 | allowSend++; //每输出一次坐标就把执行次数+1 140 | QString x_s = QString::number(x); 141 | QString y_s = QString::number(y); 142 | everyLightStateArr[HandleCoordinate(x,y)-1]=1; //根据哪一盏灯,把对应位置1 143 | ui->outEdit->append("x:"+x_s+"y:"+y_s+" LightNumber"+ QString::number(HandleCoordinate(x,y))); //显示坐标和要打开的灯 144 | 145 | if(allowSend==peopleNumber) 146 | { 147 | allowSend = 0; 148 | //int everyLightStateHex = arrBinToHex(everyLightStateArr); //把每盏灯的状态转变为十进制传入函数中 149 | emit this->autoControlButtonSignal(); //根据坐标判断后发送自动控制按钮信号 150 | } 151 | } 152 | } 153 | //槽函数 改变按钮图片 154 | 155 | void MainWindow::changeLightSlot(int number) 156 | { 157 | QIcon openIcon("E:\\Pictures\\QImageOpen.png"),closeIcon("E:\\Pictures\\QImageClose.png"); 158 | static bool lightState[20]={1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1}; 159 | switch (number) 160 | { 161 | case 1: 162 | if(lightState[number-1]==true) 163 | { 164 | ui->L1Button->setIcon(openIcon); 165 | } 166 | else 167 | { 168 | ui->L1Button->setIcon(closeIcon); 169 | } 170 | lightState[number-1]=!lightState[number-1]; 171 | break; 172 | case 2: 173 | if(lightState[number-1]==true) 174 | { 175 | ui->L2Button->setIcon(openIcon); 176 | } 177 | else 178 | { 179 | ui->L2Button->setIcon(closeIcon); 180 | } 181 | lightState[number-1]=!lightState[number-1]; 182 | break; 183 | case 3: 184 | if(lightState[number-1]==true) 185 | { 186 | ui->L3Button->setIcon(openIcon); 187 | } 188 | else 189 | { 190 | ui->L3Button->setIcon(closeIcon); 191 | } 192 | lightState[number-1]=!lightState[number-1]; 193 | break; 194 | case 4: 195 | if(lightState[number-1]==true) 196 | { 197 | ui->L4Button->setIcon(openIcon); 198 | } 199 | else 200 | { 201 | ui->L4Button->setIcon(closeIcon); 202 | } 203 | lightState[number-1]=!lightState[number-1]; 204 | break; 205 | case 5: 206 | if(lightState[number-1]==true) 207 | { 208 | ui->L5Button->setIcon(openIcon); 209 | } 210 | else 211 | { 212 | ui->L5Button->setIcon(closeIcon); 213 | } 214 | lightState[number-1]=!lightState[number-1]; 215 | break; 216 | case 6: 217 | if(lightState[number-1]==true) 218 | { 219 | ui->L6Button->setIcon(openIcon); 220 | } 221 | else 222 | { 223 | ui->L6Button->setIcon(closeIcon); 224 | } 225 | lightState[number-1]=!lightState[number-1]; 226 | break; 227 | case 7: 228 | if(lightState[number-1]==true) 229 | { 230 | ui->L7Button->setIcon(openIcon); 231 | } 232 | else 233 | { 234 | ui->L7Button->setIcon(closeIcon); 235 | } 236 | lightState[number-1]=!lightState[number-1]; 237 | break; 238 | case 8: 239 | if(lightState[number-1]==true) 240 | { 241 | ui->L8Button->setIcon(openIcon); 242 | } 243 | else 244 | { 245 | ui->L8Button->setIcon(closeIcon); 246 | } 247 | lightState[number-1]=!lightState[number-1]; 248 | break; 249 | case 9: 250 | if(lightState[number-1]==true) 251 | { 252 | ui->L9Button->setIcon(openIcon); 253 | } 254 | else 255 | { 256 | ui->L9Button->setIcon(closeIcon); 257 | } 258 | lightState[number-1]=!lightState[number-1]; 259 | break; 260 | case 10: 261 | if(lightState[number-1]==true) 262 | { 263 | ui->L10Button->setIcon(openIcon); 264 | } 265 | else 266 | { 267 | ui->L10Button->setIcon(closeIcon); 268 | } 269 | lightState[number-1]=!lightState[number-1]; 270 | break; 271 | case 11: 272 | if(lightState[number-1]==true) 273 | { 274 | ui->L11Button->setIcon(openIcon); 275 | } 276 | else 277 | { 278 | ui->L11Button->setIcon(closeIcon); 279 | } 280 | lightState[number-1]=!lightState[number-1]; 281 | break; 282 | case 12: 283 | if(lightState[number-1]==true) 284 | { 285 | ui->L12Button->setIcon(openIcon); 286 | } 287 | else 288 | { 289 | ui->L12Button->setIcon(closeIcon); 290 | } 291 | lightState[number-1]=!lightState[number-1]; 292 | break; 293 | case 13: 294 | if(lightState[number-1]==true) 295 | { 296 | ui->L13Button->setIcon(openIcon); 297 | } 298 | else 299 | { 300 | ui->L13Button->setIcon(closeIcon); 301 | } 302 | lightState[number-1]=!lightState[number-1]; 303 | break; 304 | case 14: 305 | if(lightState[number-1]==true) 306 | { 307 | ui->L14Button->setIcon(openIcon); 308 | } 309 | else 310 | { 311 | ui->L14Button->setIcon(closeIcon); 312 | } 313 | lightState[number-1]=!lightState[number-1]; 314 | break; 315 | case 15: 316 | if(lightState[number-1]==true) 317 | { 318 | ui->L15Button->setIcon(openIcon); 319 | } 320 | else 321 | { 322 | ui->L15Button->setIcon(closeIcon); 323 | } 324 | lightState[number-1]=!lightState[number-1]; 325 | break; 326 | case 16: 327 | if(lightState[number-1]==true) 328 | { 329 | ui->L16Button->setIcon(openIcon); 330 | } 331 | else 332 | { 333 | ui->L16Button->setIcon(closeIcon); 334 | } 335 | lightState[number-1]=!lightState[number-1]; 336 | break; 337 | case 17: 338 | if(lightState[number-1]==true) 339 | { 340 | ui->L17Button->setIcon(openIcon); 341 | } 342 | else 343 | { 344 | ui->L17Button->setIcon(closeIcon); 345 | } 346 | lightState[number-1]=!lightState[number-1]; 347 | break; 348 | case 18: 349 | if(lightState[number-1]==true) 350 | { 351 | ui->L18Button->setIcon(openIcon); 352 | } 353 | else 354 | { 355 | ui->L18Button->setIcon(closeIcon); 356 | } 357 | lightState[number-1]=!lightState[number-1]; 358 | break; 359 | case 19: 360 | if(lightState[number-1]==true) 361 | { 362 | ui->L19Button->setIcon(openIcon); 363 | } 364 | else 365 | { 366 | ui->L19Button->setIcon(closeIcon); 367 | } 368 | lightState[number-1]=!lightState[number-1]; 369 | break; 370 | case 20: 371 | if(lightState[number-1]==true) 372 | { 373 | ui->L20Button->setIcon(openIcon); 374 | } 375 | else 376 | { 377 | ui->L20Button->setIcon(closeIcon); 378 | } 379 | lightState[number-1]=!lightState[number-1]; 380 | break; 381 | 382 | } 383 | if(lightState[number-1]==true) 384 | ui->outEdit->append("Light"+ QString::number(number)+" Close"); 385 | else 386 | ui->outEdit->append("Light"+ QString::number(number)+" Open"); 387 | } 388 | //通过判断坐标后来决定自动改变哪一个按钮(灯)槽函数 389 | void MainWindow::autoControlButtonSlot() 390 | { 391 | QIcon openIcon("E:\\Pictures\\QImageOpen.png"),closeIcon("E:\\Pictures\\QImageClose.png"); 392 | for(int i=0;i<20;i++) 393 | { 394 | int bit = i+1; //记录当前位数,根据位数来控制按钮状态 395 | if(everyLightStateArr[i]==1) //依次检测everyLightStateArr中的数,如果当前位数为1,则打开相应位数的灯 396 | { 397 | switch(bit) 398 | { 399 | case 1: 400 | ui->L1Button->setIcon(openIcon);break; 401 | case 2: 402 | ui->L2Button->setIcon(openIcon);break; 403 | case 3: 404 | ui->L3Button->setIcon(openIcon);break; 405 | case 4: 406 | ui->L4Button->setIcon(openIcon);break; 407 | case 5: 408 | ui->L5Button->setIcon(openIcon);break; 409 | case 6: 410 | ui->L6Button->setIcon(openIcon);break; 411 | case 7: 412 | ui->L7Button->setIcon(openIcon);break; 413 | case 8: 414 | ui->L8Button->setIcon(openIcon);break; 415 | case 9: 416 | ui->L9Button->setIcon(openIcon);break; 417 | case 12: 418 | ui->L12Button->setIcon(openIcon);break; 419 | } 420 | } 421 | else //如果为0,则关闭相应的灯 422 | { 423 | switch(bit) 424 | { 425 | case 1: 426 | ui->L1Button->setIcon(closeIcon);break; 427 | case 2: 428 | ui->L2Button->setIcon(closeIcon);break; 429 | case 3: 430 | ui->L3Button->setIcon(closeIcon);break; 431 | case 4: 432 | ui->L4Button->setIcon(closeIcon);break; 433 | case 5: 434 | ui->L5Button->setIcon(closeIcon);break; 435 | case 6: 436 | ui->L6Button->setIcon(closeIcon);break; 437 | case 7: 438 | ui->L7Button->setIcon(closeIcon);break; 439 | case 8: 440 | ui->L8Button->setIcon(closeIcon);break; 441 | case 9: 442 | ui->L9Button->setIcon(closeIcon);break; 443 | case 12: 444 | ui->L12Button->setIcon(closeIcon);break; 445 | } 446 | } 447 | } 448 | } 449 | //Button点击事件 槽函数 450 | void MainWindow::on_L1Button_clicked() 451 | { 452 | emit this->changeLightSlot(1); 453 | } 454 | 455 | void MainWindow::on_L2Button_clicked() 456 | { 457 | emit this->changeLightSlot(2); 458 | } 459 | 460 | void MainWindow::on_L3Button_clicked() 461 | { 462 | emit this->changeLightSlot(3); 463 | } 464 | 465 | void MainWindow::on_L4Button_clicked() 466 | { 467 | emit this->changeLightSlot(4); 468 | } 469 | 470 | void MainWindow::on_L5Button_clicked() 471 | { 472 | emit this->changeLightSlot(5); 473 | } 474 | 475 | void MainWindow::on_L6Button_clicked() 476 | { 477 | emit this->changeLightSlot(6); 478 | } 479 | 480 | void MainWindow::on_L7Button_clicked() 481 | { 482 | emit this->changeLightSlot(7); 483 | } 484 | 485 | void MainWindow::on_L8Button_clicked() 486 | { 487 | emit this->changeLightSlot(8); 488 | } 489 | 490 | void MainWindow::on_L9Button_clicked() 491 | { 492 | emit this->changeLightSlot(9); 493 | } 494 | 495 | void MainWindow::on_L10Button_clicked() 496 | { 497 | emit this->changeLightSlot(10); 498 | } 499 | 500 | void MainWindow::on_L11Button_clicked() 501 | { 502 | emit this->changeLightSlot(11); 503 | } 504 | 505 | void MainWindow::on_L12Button_clicked() 506 | { 507 | emit this->changeLightSlot(12); 508 | } 509 | 510 | void MainWindow::on_L13Button_clicked() 511 | { 512 | emit this->changeLightSlot(13); 513 | } 514 | 515 | void MainWindow::on_L14Button_clicked() 516 | { 517 | emit this->changeLightSlot(14); 518 | } 519 | 520 | void MainWindow::on_L15Button_clicked() 521 | { 522 | emit this->changeLightSlot(15); 523 | } 524 | 525 | void MainWindow::on_L16Button_clicked() 526 | { 527 | emit this->changeLightSlot(16); 528 | } 529 | 530 | void MainWindow::on_L17Button_clicked() 531 | { 532 | emit this->changeLightSlot(17); 533 | } 534 | 535 | void MainWindow::on_L18Button_clicked() 536 | { 537 | emit this->changeLightSlot(18); 538 | } 539 | 540 | void MainWindow::on_L19Button_clicked() 541 | { 542 | emit this->changeLightSlot(19); 543 | } 544 | 545 | void MainWindow::on_L20Button_clicked() 546 | { 547 | emit this->changeLightSlot(20); 548 | } 549 | /* 550 | * 551 | * 根据监控自动控制按钮开关-----坐标处理 552 | * 553 | * */ 554 | int HandleCoordinate(int x,int y) 555 | { 556 | if(x>=0&&y>=0&&x<=120&&y<=135) 557 | { 558 | return 12; 559 | } 560 | else if(x>=0&&y>=135&&x<=270&&y<=195) 561 | { 562 | return 8; 563 | } 564 | else if(x>=0&&y>=195&&x<=390&&y<=360) 565 | { 566 | return 4; 567 | } 568 | else if(x>=390&&y>=195&&x<=510&&y<=360) 569 | { 570 | return 3; 571 | } 572 | else if(x>=510&&y>=195&&x<=640&&y<=360) 573 | { 574 | return 2; 575 | } 576 | else 577 | return 0; 578 | } 579 | int arrBinToHex(bool arr[]) 580 | { 581 | int hex=0; 582 | for(int i=0;i<9;i++) //先设定为9盏灯 583 | { 584 | hex+=arr[i]*pow((double)2,(double)i); 585 | } 586 | return hex; 587 | } 588 | 589 | -------------------------------------------------------------------------------- /QT项目/mainwindow.h: -------------------------------------------------------------------------------- 1 | #ifndef MAINWINDOW_H 2 | #define MAINWINDOW_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include "cv.h" 10 | 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include "Windows.h" 21 | #include "HCNetSDK.h" 22 | #include "plaympeg4.h" 23 | 24 | namespace Ui { 25 | class MainWindow; 26 | } 27 | 28 | class MainWindow : public QMainWindow 29 | { 30 | Q_OBJECT 31 | 32 | public: 33 | explicit MainWindow(QWidget *parent = 0); 34 | ~MainWindow(); 35 | 36 | private slots: 37 | void changeLightSlot(int);//改变按钮状态 38 | void openCameraSlot(); //打开摄像头 39 | void readCameraSlot(); //读取摄像头 40 | void closeCameraSlot(); //关闭摄像头 41 | void attendEditSlot(int, int, int); //添加文本框内容 42 | void autoControlButtonSlot(); //自动改变按钮状态 43 | void on_L1Button_clicked(); 44 | 45 | void on_L2Button_clicked(); 46 | 47 | void on_L3Button_clicked(); 48 | 49 | void on_L4Button_clicked(); 50 | 51 | void on_L5Button_clicked(); 52 | 53 | void on_L6Button_clicked(); 54 | 55 | void on_L7Button_clicked(); 56 | 57 | void on_L8Button_clicked(); 58 | 59 | void on_L9Button_clicked(); 60 | 61 | 62 | void on_L10Button_clicked(); 63 | 64 | void on_L11Button_clicked(); 65 | 66 | void on_L12Button_clicked(); 67 | 68 | void on_L13Button_clicked(); 69 | 70 | void on_L14Button_clicked(); 71 | 72 | void on_L15Button_clicked(); 73 | 74 | void on_L16Button_clicked(); 75 | 76 | void on_L17Button_clicked(); 77 | 78 | void on_L18Button_clicked(); 79 | 80 | void on_L19Button_clicked(); 81 | 82 | void on_L20Button_clicked(); 83 | 84 | private: 85 | Ui::MainWindow *ui; 86 | QTimer *timer; 87 | signals: 88 | void lightNumberSignal(int); //按钮信号 89 | void autoControlButtonSignal(); //自动改变按钮状态信号 90 | }; 91 | 92 | #endif // MAINWINDOW_H 93 | -------------------------------------------------------------------------------- /QT项目/mainwindow.ui: -------------------------------------------------------------------------------- 1 | 2 | 3 | MainWindow 4 | 5 | 6 | 7 | 0 8 | 0 9 | 1072 10 | 633 11 | 12 | 13 | 14 | MainWindow 15 | 16 | 17 | 18 | 19 | 20 | 420 21 | 10 22 | 611 23 | 351 24 | 25 | 26 | 27 | 等待开启。。。 28 | 29 | 30 | 31 | 32 | 33 | 550 34 | 390 35 | 471 36 | 171 37 | 38 | 39 | 40 | 41 | 42 | 43 | 0 44 | 0 45 | 161 46 | 51 47 | 48 | 49 | 50 | <html><head/><body><p><span style=" font-size:14pt; font-weight:600; color:#ff5500;">手动控制按钮:</span></p></body></html> 51 | 52 | 53 | 54 | 55 | 56 | 330 57 | -100 58 | 111 59 | 51 60 | 61 | 62 | 63 | <html><head/><body><p><span style=" font-size:14pt; font-weight:600; color:#ff5500;">实时界面:</span></p></body></html> 64 | 65 | 66 | 67 | 68 | 69 | 300 70 | 10 71 | 121 72 | 41 73 | 74 | 75 | 76 | <html><head/><body><p><span style=" font-size:14pt; font-weight:600; color:#ff5500;">检测界面:</span></p></body></html> 77 | 78 | 79 | 80 | 81 | 82 | 360 83 | 40 84 | 21 85 | 501 86 | 87 | 88 | 89 | Qt::Vertical 90 | 91 | 92 | 93 | 94 | 95 | 370 96 | 370 97 | 691 98 | 16 99 | 100 | 101 | 102 | Qt::Horizontal 103 | 104 | 105 | 106 | 107 | 108 | 0 109 | 40 110 | 371 111 | 501 112 | 113 | 114 | 115 | 116 | 117 | 118 | ../../../Pictures/BackGround2.png 119 | 120 | 121 | 122 | 123 | 124 | 40 125 | 560 126 | 281 127 | 30 128 | 129 | 130 | 131 | 132 | 133 | 134 | Open 135 | 136 | 137 | 138 | 139 | 140 | 141 | Close 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 40 151 | 460 152 | 35 153 | 47 154 | 155 | 156 | 157 | 158 | 35 159 | 47 160 | 161 | 162 | 163 | 164 | 35 165 | 47 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 310 176 | 460 177 | 35 178 | 47 179 | 180 | 181 | 182 | 183 | 35 184 | 47 185 | 186 | 187 | 188 | 189 | 35 190 | 47 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 130 201 | 460 202 | 35 203 | 47 204 | 205 | 206 | 207 | 208 | 35 209 | 47 210 | 211 | 212 | 213 | 214 | 35 215 | 47 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 220 226 | 460 227 | 35 228 | 47 229 | 230 | 231 | 232 | 233 | 35 234 | 47 235 | 236 | 237 | 238 | 239 | 35 240 | 47 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 130 251 | 280 252 | 35 253 | 47 254 | 255 | 256 | 257 | 258 | 35 259 | 47 260 | 261 | 262 | 263 | 264 | 35 265 | 47 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 40 276 | 280 277 | 35 278 | 47 279 | 280 | 281 | 282 | 283 | 35 284 | 47 285 | 286 | 287 | 288 | 289 | 35 290 | 47 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 310 301 | 280 302 | 35 303 | 47 304 | 305 | 306 | 307 | 308 | 35 309 | 47 310 | 311 | 312 | 313 | 314 | 35 315 | 47 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 220 326 | 280 327 | 35 328 | 47 329 | 330 | 331 | 332 | 333 | 35 334 | 47 335 | 336 | 337 | 338 | 339 | 35 340 | 47 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 40 351 | 183 352 | 35 353 | 47 354 | 355 | 356 | 357 | 358 | 35 359 | 47 360 | 361 | 362 | 363 | 364 | 35 365 | 47 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 130 376 | 183 377 | 35 378 | 47 379 | 380 | 381 | 382 | 383 | 35 384 | 47 385 | 386 | 387 | 388 | 389 | 35 390 | 47 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 220 401 | 183 402 | 35 403 | 47 404 | 405 | 406 | 407 | 408 | 35 409 | 47 410 | 411 | 412 | 413 | 414 | 35 415 | 47 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 310 426 | 183 427 | 35 428 | 47 429 | 430 | 431 | 432 | 433 | 35 434 | 47 435 | 436 | 437 | 438 | 439 | 35 440 | 47 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 40 451 | 98 452 | 35 453 | 47 454 | 455 | 456 | 457 | 458 | 35 459 | 47 460 | 461 | 462 | 463 | 464 | 35 465 | 47 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 130 476 | 98 477 | 35 478 | 47 479 | 480 | 481 | 482 | 483 | 35 484 | 47 485 | 486 | 487 | 488 | 489 | 35 490 | 47 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 220 501 | 98 502 | 35 503 | 47 504 | 505 | 506 | 507 | 508 | 35 509 | 47 510 | 511 | 512 | 513 | 514 | 35 515 | 47 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 310 526 | 98 527 | 35 528 | 47 529 | 530 | 531 | 532 | 533 | 35 534 | 47 535 | 536 | 537 | 538 | 539 | 35 540 | 47 541 | 542 | 543 | 544 | 545 | 546 | 547 | 548 | 549 | 550 | 40 551 | 370 552 | 35 553 | 47 554 | 555 | 556 | 557 | 558 | 35 559 | 47 560 | 561 | 562 | 563 | 564 | 35 565 | 47 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 130 576 | 370 577 | 35 578 | 47 579 | 580 | 581 | 582 | 583 | 35 584 | 47 585 | 586 | 587 | 588 | 589 | 35 590 | 47 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 220 601 | 370 602 | 35 603 | 47 604 | 605 | 606 | 607 | 608 | 35 609 | 47 610 | 611 | 612 | 613 | 614 | 35 615 | 47 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 310 626 | 370 627 | 35 628 | 47 629 | 630 | 631 | 632 | 633 | 35 634 | 47 635 | 636 | 637 | 638 | 639 | 35 640 | 47 641 | 642 | 643 | 644 | 645 | 646 | 647 | BackGroundLabel 648 | imgLabel 649 | outEdit 650 | label_2 651 | label 652 | label_3 653 | line 654 | line_2 655 | layoutWidget 656 | L8Button 657 | L4Button 658 | L3Button 659 | L2Button 660 | L1Button 661 | L5Button 662 | L6Button 663 | L7Button 664 | L9Button 665 | L10Button 666 | L11Button 667 | L12Button 668 | L13Button 669 | L14Button 670 | L15Button 671 | L16Button 672 | L17Button 673 | L18Button 674 | L19Button 675 | L20Button 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | -------------------------------------------------------------------------------- /QT项目/processpeople.cpp: -------------------------------------------------------------------------------- 1 | #include "processpeople.h" 2 | #define ImgX 64 3 | #define ImgY 128 4 | extern LinkQueue MYQUEUE; //创建队列 5 | //获得矩形中心 6 | Point getCenterPoint(Rect rect) 7 | { 8 | Point cpt; 9 | cpt.x = rect.x + cvRound(rect.width / 2.0); 10 | cpt.y = rect.y + cvRound(rect.height / 2.0); 11 | return cpt; 12 | } 13 | 14 | //HOG检测器,用来计算HOG描述子的 15 | //检测窗口(48,48),块尺寸(16,16),块步长(8,8),cell尺寸(8,8),直方图bin个数9 16 | cv::HOGDescriptor hog(cv::Size(ImgX, ImgY), cv::Size(16, 16), cv::Size(8, 8), cv::Size(8, 8), 9); 17 | MySignal *a = new MySignal; 18 | Mat ProcessPeople() 19 | { 20 | static bool once=true; 21 | if(once) 22 | { 23 | //HOG描述子的维数,由图片大小、检测窗口大小、块大小、细胞单元中直方图bin个数决定 24 | int DescriptorDim; 25 | 26 | //从XML文件读取训练好的SVM模型 27 | cv::Ptr svm = cv::ml::SVM::load("D:\\OpenCV\\opencv\\sources\\data\\hogcascades\\SVM_HOG_2400PosINRIA_12000Neg\\SVM_HOG_2400PosINRIA_12000Neg.xml"); 28 | //cv::Ptr svm = cv::ml::SVM::load("D:\\OpenCV\\opencv\\sources\\data\\hogcascades\\SVM_HOG_2400PosINRIA_12000Neg\\SVM_HOG_2400PosINRIA_12000Neg_HardExample.xml"); 29 | 30 | if (svm->empty()) 31 | { 32 | std::cout << "load svm detector failed!!!" << std::endl; 33 | } 34 | 35 | //特征向量的维数,即HOG描述子的维数 36 | DescriptorDim = svm->getVarCount(); 37 | 38 | //获取svecsmat,元素类型为float 39 | cv::Mat svecsmat = svm->getSupportVectors(); 40 | //特征向量维数 41 | int svdim = svm->getVarCount(); 42 | int numofsv = svecsmat.rows; 43 | 44 | //alphamat和svindex必须初始化,否则getDecisionFunction()函数会报错 45 | cv::Mat alphamat = cv::Mat::zeros(numofsv, svdim, CV_32F); 46 | cv::Mat svindex = cv::Mat::zeros(1, numofsv, CV_64F); 47 | 48 | cv::Mat Result; 49 | double rho = svm->getDecisionFunction(0, alphamat, svindex); 50 | //将alphamat元素的数据类型重新转成CV_32F 51 | alphamat.convertTo(alphamat, CV_32F); 52 | Result = -1 * alphamat * svecsmat; 53 | 54 | std::vector vec; 55 | for (int i = 0; i < svdim; ++i) 56 | { 57 | vec.push_back(Result.at(0, i)); 58 | } 59 | vec.push_back(rho); 60 | 61 | //saving HOGDetectorForOpenCV.txt 62 | std::ofstream fout("HOGDetectorForOpenCV.txt"); 63 | for (int i = 0; i < vec.size(); ++i) 64 | { 65 | fout << vec[i] << std::endl; 66 | } 67 | 68 | hog.setSVMDetector(vec); 69 | 70 | } 71 | once = false; 72 | int width = 1280; 73 | int height = 720; 74 | Point CenterPoint; //创建一个Point类用来存放矩形的中心点 75 | IplImage *img = NULL; 76 | 77 | // 先判断队列长度是否为0 78 | while (QueueLength(&MYQUEUE) <= 0) 79 | { 80 | Sleep(8); 81 | } 82 | //capture >> frame; 83 | 84 | DeQueue(&MYQUEUE, &img); //出队获取图像 85 | Mat frame = cvarrToMat(img, 1); //格式转换 86 | cv::resize(frame, frame, cv::Size(width / 2, height / 2)); 87 | //目标矩形框数组 88 | std::vector found, found_1, found_filtered; 89 | //对图片进行多尺度检测 90 | hog.detectMultiScale(frame, found, 0, cv::Size(8, 8), cv::Size(16, 16), 1.2, 2); 91 | 92 | for (int i = 0; i 0 && found[i].y > 0 && (found[i].x + found[i].width)< frame.cols 95 | && (found[i].y + found[i].height)< frame.rows) 96 | found_1.push_back(found[i]); 97 | } 98 | 99 | //找出所有没有嵌套的矩形框r,并放入found_filtered中,如果有嵌套的话, 100 | //则取外面最大的那个矩形框放入found_filtered中 101 | for (int i = 0; i < found_1.size(); i++) 102 | { 103 | cv::Rect r = found_1[i]; 104 | int j = 0; 105 | for (; j < found_1.size(); j++) 106 | if (j != i && (r & found_1[j]) == found_1[j]) 107 | break; 108 | if (j == found_1.size()) 109 | found_filtered.push_back(r); 110 | } 111 | a->sendSignal(0,0,found_filtered.size());//当坐标都为0时,只发送人数 112 | //画矩形框,因为hog检测出的矩形框比实际目标框要稍微大些,所以这里需要做一些调整,可根据实际情况调整 113 | for (int i = 0; isendSignal(CenterPoint.x,CenterPoint.y,found_filtered.size()); 128 | } 129 | 130 | for (int i = 0; i 4 | #include "Windows.h" 5 | #include "HCNetSDK.h" 6 | #include "plaympeg4.h" 7 | #include 8 | #include "cv.h" 9 | #include "highgui.h" 10 | #include 11 | #include "Queue.h" 12 | #include "mainwindow.h" 13 | #include "ui_mainwindow.h" 14 | #include 15 | 16 | 17 | Point getCenterPoint(Rect rect); 18 | Mat ProcessPeople(); 19 | class MySignal:public QObject 20 | { 21 | Q_OBJECT 22 | public: 23 | explicit MySignal(QObject *parent = 0): 24 | QObject(parent) 25 | { 26 | } 27 | void sendSignal(int x,int y,int peopleNumber) 28 | { 29 | emit sendPosition(x,y,peopleNumber); 30 | } 31 | signals: 32 | void sendPosition(int,int,int); 33 | }; 34 | #endif // PROCESSPEOPLE_H 35 | 36 | 37 | -------------------------------------------------------------------------------- /QT项目/queue.cpp: -------------------------------------------------------------------------------- 1 | #include "queue.h" 2 | 3 | //构建一个新队列 4 | //队头和队尾指针都指向同一个节点 5 | bool InitQueue(LinkQueue *Q) 6 | { 7 | Q->front = Q->rear = new QNode; 8 | if (!Q->front) 9 | return false; 10 | Q->front->next = NULL; 11 | return true; 12 | } 13 | 14 | //销毁队列 15 | bool DestoryQueue(LinkQueue * Q) 16 | { 17 | while (Q->front) 18 | { 19 | Q->rear = Q->front->next; 20 | delete Q->front; 21 | Q->front = Q->rear; 22 | } 23 | return true; 24 | } 25 | 26 | 27 | /* 求队列的长度 */ 28 | int QueueLength(LinkQueue * Q) 29 | { 30 | int i = 0; 31 | QueuePtr p; 32 | p = Q->front; 33 | while (Q->rear != p) 34 | { 35 | i++; 36 | p = p->next; 37 | } 38 | return i; 39 | } 40 | 41 | 42 | //队列在队尾插入节点,入队操作 43 | //插入元素data为Q的新的队尾元素,插入成功返回true,否则返回false 44 | bool EnQueue(LinkQueue *Q, IplImage * data) 45 | { 46 | QueuePtr s = new QNode; 47 | if (!s) //存储空间分配失败 48 | return false; 49 | s->img = data; 50 | s->next = NULL; 51 | Q->rear->next = s; 52 | Q->rear = s; 53 | return true; 54 | } 55 | 56 | 57 | //队列在队头删除节点,出队操作 58 | //若队列不为空,删除Q的队头元素,用data返回该图像的地址,并返回true表示操作成功,否则返回false 59 | bool DeQueue(LinkQueue *Q, IplImage ** data) 60 | { 61 | 62 | QueuePtr p; 63 | if (Q->front == Q->rear) 64 | { 65 | cout << "The Queue is NULL!" << endl; 66 | return false; 67 | } 68 | p = Q->front->next; 69 | *data = p->img; 70 | Q->front->next = p->next; 71 | if (Q->rear == p) 72 | Q->rear = Q->front; 73 | delete p; 74 | return true; 75 | } 76 | -------------------------------------------------------------------------------- /QT项目/queue.h: -------------------------------------------------------------------------------- 1 | /********************************************************************************************************* 2 | *由于图片生成后都是放在内存里面的,而且中间不会进行什么插入、删除操作,所以链队列是最好的选择。 3 | *构建一个存放图片的链队列 4 | *********************************************************************************************************/ 5 | #ifndef __Queue_H__ 6 | #define __Queue_H__ 7 | 8 | 9 | #include 10 | #include "cv.h" 11 | #include "highgui.h" 12 | 13 | using namespace std; 14 | using namespace cv; 15 | 16 | 17 | //队列节点结构 18 | typedef struct QNode 19 | { 20 | IplImage * img; 21 | struct QNode * next; 22 | }QNode, *QueuePtr; 23 | 24 | //队列的链表结构 25 | typedef struct 26 | { 27 | QueuePtr front, rear; //队头队尾指针 28 | }LinkQueue; 29 | 30 | //求队列长度 31 | int QueueLength(LinkQueue * Q); 32 | 33 | //构建一个新队列 34 | bool InitQueue(LinkQueue * Q); 35 | 36 | //销毁队列 37 | bool DestoryQueue(LinkQueue * Q); 38 | 39 | //队列在队尾插入节点,入队操作 40 | //插入元素data为Q的新的队尾元素,插入成功返回true,否则返回false 41 | bool EnQueue(LinkQueue *Q, IplImage * data); 42 | 43 | //队列在队头删除节点,出队操作 44 | //若队列不为空,删除Q的队头元素,用data返回该图像的地址,并返回true表示操作成功,否则返回false 45 | bool DeQueue(LinkQueue *Q, IplImage ** data); 46 | //IplImage * DeQueue(LinkQueue *Q); 47 | 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /QT项目/release/moc_predefs.h.cbt: -------------------------------------------------------------------------------- 1 | This is a dummy file needed to create release/moc_predefs.h 2 | -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.log: -------------------------------------------------------------------------------- 1 |  Moc'ing mainwindow.h... 2 | Uic'ing mainwindow.ui... 3 | camera.cpp 4 | main.cpp 5 | mainwindow.cpp 6 | processpeople.cpp 7 | queue.cpp 8 | moc_mainwindow.cpp 9 | e:\documents\qt\opencvtest\mainwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 main.cpp) 10 | e:\documents\qt\opencvtest\mainwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 mainwindow.cpp) 11 | e:\documents\qt\opencvtest\mainwindow.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 .\GeneratedFiles\Debug\moc_mainwindow.cpp) 12 | e:\documents\qt\opencvtest\queue.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 13 | e:\documents\qt\opencvtest\processpeople.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 14 | e:\documents\qt\opencvtest\camera.cpp : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 15 | e:\documents\qt\opencvtest\queue.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 queue.cpp) 16 | e:\documents\qt\opencvtest\queue.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 camera.cpp) 17 | e:\documents\qt\opencvtest\camera.cpp(24): warning C4189: “rowptr”: 局部变量已初始化但不引用 18 | e:\documents\qt\opencvtest\camera.cpp(56): warning C4100: “nReserved2”: 未引用的形参 19 | e:\documents\qt\opencvtest\camera.cpp(56): warning C4100: “nReserved1”: 未引用的形参 20 | e:\documents\qt\opencvtest\camera.cpp(56): warning C4100: “nSize”: 未引用的形参 21 | e:\documents\qt\opencvtest\camera.cpp(56): warning C4100: “nPort”: 未引用的形参 22 | e:\documents\qt\opencvtest\camera.cpp(100): warning C4100: “pUser”: 未引用的形参 23 | e:\documents\qt\opencvtest\camera.cpp(100): warning C4100: “lRealHandle”: 未引用的形参 24 | e:\documents\qt\opencvtest\camera.cpp(181): warning C4100: “pUser”: 未引用的形参 25 | e:\documents\qt\opencvtest\camera.cpp(181): warning C4100: “lHandle”: 未引用的形参 26 | e:\documents\qt\opencvtest\camera.cpp(181): warning C4100: “lUserID”: 未引用的形参 27 | e:\documents\qt\opencvtest\camera.cpp(183): warning C4189: “tempbuf”: 局部变量已初始化但不引用 28 | e:\documents\qt\opencvtest\camera.cpp(240): warning C4244: “=”: 从“double”转换到“DWORD”,可能丢失数据 29 | e:\documents\qt\opencvtest\queue.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 processpeople.cpp) 30 | e:\documents\qt\opencvtest\processpeople.cpp(56): warning C4244: “参数”: 从“double”转换到“const float”,可能丢失数据 31 | e:\documents\qt\opencvtest\queue.h : warning C4819: 该文件包含不能在当前代码页(936)中表示的字符。请将该文件保存为 Unicode 格式以防止数据丢失 (编译源文件 mainwindow.cpp) 32 | OpencvTest.vcxproj -> E:\Documents\QT\OpencvTest\debug\OpencvTest.exe 33 | -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/OpencvTest.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0 2 | Debug|x64|E:\Documents\QT\OpencvTest\| 3 | -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/OpencvTest.write.1u.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/OpencvTest.write.1u.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/custombuild.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/custombuild.command.1.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/custombuild.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/custombuild.read.1.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/custombuild.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/custombuild.write.1.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/OpencvTest.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/OpencvTest.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /QT项目/x64/Debug/camera.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/camera.obj -------------------------------------------------------------------------------- /QT项目/x64/Debug/main.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/main.obj -------------------------------------------------------------------------------- /QT项目/x64/Debug/mainwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/mainwindow.obj -------------------------------------------------------------------------------- /QT项目/x64/Debug/moc_mainwindow.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/moc_mainwindow.obj -------------------------------------------------------------------------------- /QT项目/x64/Debug/processpeople.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/processpeople.obj -------------------------------------------------------------------------------- /QT项目/x64/Debug/qt.log: -------------------------------------------------------------------------------- 1 | mainwindow.h|"E:\Documents\QT\OpencvTest\mainwindow.h" -o ".\GeneratedFiles\Debug\moc_mainwindow.cpp" "-I.\GeneratedFiles\Debug" "-I.\GeneratedFiles" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\mkspecs/win32-msvc" "-I." "-ID:/OpenCV/opencv/build/include" "-ID:/OpenCV/opencv/build/include/opencv" "-ID:/OpenCV/opencv/build/include/opencv2" "-ID:/OpenCV/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/include" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include/QtWidgets" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include/QtGui" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include/QtANGLE" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include/QtCore" "-ID:\Microsoft Visual Studio\VC98\atl\include" "-ID:\Microsoft Visual Studio\VC98\mfc\include" "-ID:\Microsoft Visual Studio\VC98\include" "-ID:\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.13.26128\ATLMFC\include" "-ID:\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.13.26128\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt" -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQT_DEPRECATED_WARNINGS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --compiler-flavor msvc --include "Debug/moc_predefs.h" 2 | mainwindow.ui|"E:\Documents\QT\OpencvTest\mainwindow.ui" -o ".\GeneratedFiles\ui_mainwindow.h" 3 | -------------------------------------------------------------------------------- /QT项目/x64/Debug/qt.txt: -------------------------------------------------------------------------------- 1 | Moc'ing mainwindow.h...;D:\Qt5.10.1\5.10.1\msvc2017_64\bin\moc.exe;"E:\Documents\QT\OpencvTest\mainwindow.h" -o ".\GeneratedFiles\Debug\moc_mainwindow.cpp" "-I.\GeneratedFiles\Debug" "-I.\GeneratedFiles" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\mkspecs/win32-msvc" "-I." "-ID:/OpenCV/opencv/build/include" "-ID:/OpenCV/opencv/build/include/opencv" "-ID:/OpenCV/opencv/build/include/opencv2" "-ID:/OpenCV/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/CH-HCNetSDK(Windows64)V5.3.1.22_build20170909/include" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include/QtWidgets" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include/QtGui" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include/QtANGLE" "-ID:\Qt5.10.1\5.10.1\msvc2017_64\include/QtCore" "-ID:\Microsoft Visual Studio\VC98\atl\include" "-ID:\Microsoft Visual Studio\VC98\mfc\include" "-ID:\Microsoft Visual Studio\VC98\include" "-ID:\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.13.26128\ATLMFC\include" "-ID:\Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\14.13.26128\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\cppwinrt" -DUNICODE -D_UNICODE -DWIN32 -DWIN64 -DQT_DEPRECATED_WARNINGS -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --compiler-flavor msvc --include "Debug/moc_predefs.h" 2 | Uic'ing mainwindow.ui...;D:\Qt5.10.1\5.10.1\msvc2017_64\bin\uic.exe;"E:\Documents\QT\OpencvTest\mainwindow.ui" -o ".\GeneratedFiles\ui_mainwindow.h" 3 | -------------------------------------------------------------------------------- /QT项目/x64/Debug/queue.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/queue.obj -------------------------------------------------------------------------------- /QT项目/x64/Debug/vc141.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/QT项目/x64/Debug/vc141.pdb -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hik_OpenCV_PeopleDetect 2 | 基于海康威视网络摄像头和OpenCV的人体识别 3 | 4 | 2018年节能减排竞赛项目。 5 | 新手刚刚接触这些东西,代码写的很烂,就是把网上的代码东拼西凑的,也难免有错误。 6 | 但还是能运行的。 7 | 主要借鉴了这个博主的文档: 8 | https://blog.csdn.net/qq_37541097/article/details/72566102 9 | 10 | VS项目用了2个线程,一个获取网络摄像头的视频流,一个用来处理,他们之间通过链队列传递图像,没有使用互斥量。 11 | Qt项目就是比VS的代码多了些GUI的东西其他没多少变化,不过没有用多线程,因为当时还没理解Qt的机制。。。┭┮﹏┭┮ 12 | 13 | -------------------------------------------------------------------------------- /Read_Camera/.vs/OpenCV+Camera/v15/.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/.vs/OpenCV+Camera/v15/.suo -------------------------------------------------------------------------------- /Read_Camera/.vs/OpenCV+Camera/v15/Solution.VC.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/.vs/OpenCV+Camera/v15/Solution.VC.db -------------------------------------------------------------------------------- /Read_Camera/.vs/OpenCV+Camera/v15/Solution.VC.db-shm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/.vs/OpenCV+Camera/v15/Solution.VC.db-shm -------------------------------------------------------------------------------- /Read_Camera/.vs/OpenCV+Camera/v15/Solution.VC.db-wal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/.vs/OpenCV+Camera/v15/Solution.VC.db-wal -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/HOG+SVM.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/HOG+SVM.cpp -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/HOG+SVM训练.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 15.0 23 | {2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883} 24 | Win32Proj 25 | HOGSVM训练 26 | 10.0.16299.0 27 | 28 | 29 | 30 | Application 31 | true 32 | v141 33 | Unicode 34 | 35 | 36 | Application 37 | false 38 | v141 39 | true 40 | Unicode 41 | 42 | 43 | Application 44 | true 45 | v141 46 | Unicode 47 | 48 | 49 | Application 50 | false 51 | v141 52 | true 53 | Unicode 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | false 75 | 76 | 77 | true 78 | 79 | 80 | true 81 | 82 | 83 | false 84 | 85 | 86 | 87 | Level3 88 | MaxSpeed 89 | true 90 | true 91 | true 92 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 93 | true 94 | 4996 95 | 96 | 97 | true 98 | true 99 | true 100 | Console 101 | opencv_world341.lib;%(AdditionalDependencies) 102 | 103 | 104 | 105 | 106 | Level3 107 | Disabled 108 | true 109 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 110 | true 111 | 112 | 113 | true 114 | Console 115 | 116 | 117 | 118 | 119 | Level3 120 | Disabled 121 | true 122 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 123 | true 124 | 4996 125 | 126 | 127 | true 128 | Console 129 | opencv_world341.lib;%(AdditionalDependencies) 130 | 131 | 132 | 133 | 134 | Level3 135 | MaxSpeed 136 | true 137 | true 138 | true 139 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 140 | true 141 | 142 | 143 | true 144 | true 145 | true 146 | Console 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/HOG+SVM训练.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/HOG+SVM训练.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM.obj -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.log: -------------------------------------------------------------------------------- 1 |  HOG+SVM.cpp 2 | e:\documents\visual studio 2017\vs_2017_project\read_camera\hog+svm训练\hog+svm.cpp(69): warning C4267: “=”: 从“size_t”转换到“int”,可能丢失数据 3 | 正在生成代码 4 | 1 of 400 functions ( 0.3%) were compiled, the rest were copied from previous compilation. 5 | 0 functions were new in current compilation 6 | 1 functions had inline decision re-evaluated but remain unchanged 7 | 已完成代码的生成 8 | HOG+SVM训练.vcxproj -> E:\Documents\Visual Studio 2017\VS_2017_Project\Read_Camera\x64\Release\HOG+SVM训练.exe 9 | -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/HOG+SVM训练.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0 2 | Release|x64|E:\Documents\Visual Studio 2017\VS_2017_Project\Read_Camera\| 3 | -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/HOG+SVM训练.write.1u.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/HOG+SVM训练.write.1u.tlog -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/HOG+SVM训练.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/vc141.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/vc141.pdb -------------------------------------------------------------------------------- /Read_Camera/HOG+SVM训练/x64/Release/负样本处理.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/HOG+SVM训练/x64/Release/负样本处理.obj -------------------------------------------------------------------------------- /Read_Camera/OpenCV+Camera.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27428.2015 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Read_Camera01", "Read_Camera01\Read_Camera01.vcxproj", "{DFC75182-04A3-4295-9467-B9D484104279}" 7 | EndProject 8 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "YV12_RGB", "YV12_RGB\YV12_RGB.vcxproj", "{97F38CC4-8BFC-441F-B1E8-899595A7D9A4}" 9 | EndProject 10 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Read_Camera02", "Read_Camera02\Read_Camera02.vcxproj", "{45C181A8-EC9D-415A-BA9F-18A7045D6E38}" 11 | EndProject 12 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "样本处理", "PeopleDetect\PeopleDetect.vcxproj", "{387FE052-6E1D-4508-BCC3-4E2A0B706F60}" 13 | EndProject 14 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "HOG+SVM训练", "HOG+SVM训练\HOG+SVM训练.vcxproj", "{2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883}" 15 | EndProject 16 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Read_Camera02_Head", "Read_Camera02_Head\Read_Camera02_Head.vcxproj", "{C09ABDBE-9A64-423A-B0EE-BCFF11A0B382}" 17 | EndProject 18 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "训练集裁剪", "训练集裁剪\训练集裁剪.vcxproj", "{12820B2D-992B-49FD-8EAD-1AD1A592F986}" 19 | EndProject 20 | Global 21 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 22 | Debug|x64 = Debug|x64 23 | Debug|x86 = Debug|x86 24 | Release|x64 = Release|x64 25 | Release|x86 = Release|x86 26 | EndGlobalSection 27 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 28 | {DFC75182-04A3-4295-9467-B9D484104279}.Debug|x64.ActiveCfg = Debug|x64 29 | {DFC75182-04A3-4295-9467-B9D484104279}.Debug|x64.Build.0 = Debug|x64 30 | {DFC75182-04A3-4295-9467-B9D484104279}.Debug|x86.ActiveCfg = Debug|Win32 31 | {DFC75182-04A3-4295-9467-B9D484104279}.Debug|x86.Build.0 = Debug|Win32 32 | {DFC75182-04A3-4295-9467-B9D484104279}.Release|x64.ActiveCfg = Release|x64 33 | {DFC75182-04A3-4295-9467-B9D484104279}.Release|x64.Build.0 = Release|x64 34 | {DFC75182-04A3-4295-9467-B9D484104279}.Release|x86.ActiveCfg = Release|Win32 35 | {DFC75182-04A3-4295-9467-B9D484104279}.Release|x86.Build.0 = Release|Win32 36 | {97F38CC4-8BFC-441F-B1E8-899595A7D9A4}.Debug|x64.ActiveCfg = Debug|x64 37 | {97F38CC4-8BFC-441F-B1E8-899595A7D9A4}.Debug|x64.Build.0 = Debug|x64 38 | {97F38CC4-8BFC-441F-B1E8-899595A7D9A4}.Debug|x86.ActiveCfg = Debug|Win32 39 | {97F38CC4-8BFC-441F-B1E8-899595A7D9A4}.Debug|x86.Build.0 = Debug|Win32 40 | {97F38CC4-8BFC-441F-B1E8-899595A7D9A4}.Release|x64.ActiveCfg = Release|x64 41 | {97F38CC4-8BFC-441F-B1E8-899595A7D9A4}.Release|x64.Build.0 = Release|x64 42 | {97F38CC4-8BFC-441F-B1E8-899595A7D9A4}.Release|x86.ActiveCfg = Release|Win32 43 | {97F38CC4-8BFC-441F-B1E8-899595A7D9A4}.Release|x86.Build.0 = Release|Win32 44 | {45C181A8-EC9D-415A-BA9F-18A7045D6E38}.Debug|x64.ActiveCfg = Debug|x64 45 | {45C181A8-EC9D-415A-BA9F-18A7045D6E38}.Debug|x64.Build.0 = Debug|x64 46 | {45C181A8-EC9D-415A-BA9F-18A7045D6E38}.Debug|x86.ActiveCfg = Debug|Win32 47 | {45C181A8-EC9D-415A-BA9F-18A7045D6E38}.Debug|x86.Build.0 = Debug|Win32 48 | {45C181A8-EC9D-415A-BA9F-18A7045D6E38}.Release|x64.ActiveCfg = Release|x64 49 | {45C181A8-EC9D-415A-BA9F-18A7045D6E38}.Release|x64.Build.0 = Release|x64 50 | {45C181A8-EC9D-415A-BA9F-18A7045D6E38}.Release|x86.ActiveCfg = Release|Win32 51 | {45C181A8-EC9D-415A-BA9F-18A7045D6E38}.Release|x86.Build.0 = Release|Win32 52 | {387FE052-6E1D-4508-BCC3-4E2A0B706F60}.Debug|x64.ActiveCfg = Debug|x64 53 | {387FE052-6E1D-4508-BCC3-4E2A0B706F60}.Debug|x64.Build.0 = Debug|x64 54 | {387FE052-6E1D-4508-BCC3-4E2A0B706F60}.Debug|x86.ActiveCfg = Debug|Win32 55 | {387FE052-6E1D-4508-BCC3-4E2A0B706F60}.Debug|x86.Build.0 = Debug|Win32 56 | {387FE052-6E1D-4508-BCC3-4E2A0B706F60}.Release|x64.ActiveCfg = Release|x64 57 | {387FE052-6E1D-4508-BCC3-4E2A0B706F60}.Release|x64.Build.0 = Release|x64 58 | {387FE052-6E1D-4508-BCC3-4E2A0B706F60}.Release|x86.ActiveCfg = Release|Win32 59 | {387FE052-6E1D-4508-BCC3-4E2A0B706F60}.Release|x86.Build.0 = Release|Win32 60 | {2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883}.Debug|x64.ActiveCfg = Debug|x64 61 | {2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883}.Debug|x64.Build.0 = Debug|x64 62 | {2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883}.Debug|x86.ActiveCfg = Debug|Win32 63 | {2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883}.Debug|x86.Build.0 = Debug|Win32 64 | {2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883}.Release|x64.ActiveCfg = Release|x64 65 | {2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883}.Release|x64.Build.0 = Release|x64 66 | {2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883}.Release|x86.ActiveCfg = Release|Win32 67 | {2BF9EA74-D5F7-4FF0-B4DF-32A9FC819883}.Release|x86.Build.0 = Release|Win32 68 | {C09ABDBE-9A64-423A-B0EE-BCFF11A0B382}.Debug|x64.ActiveCfg = Debug|x64 69 | {C09ABDBE-9A64-423A-B0EE-BCFF11A0B382}.Debug|x64.Build.0 = Debug|x64 70 | {C09ABDBE-9A64-423A-B0EE-BCFF11A0B382}.Debug|x86.ActiveCfg = Debug|Win32 71 | {C09ABDBE-9A64-423A-B0EE-BCFF11A0B382}.Debug|x86.Build.0 = Debug|Win32 72 | {C09ABDBE-9A64-423A-B0EE-BCFF11A0B382}.Release|x64.ActiveCfg = Release|x64 73 | {C09ABDBE-9A64-423A-B0EE-BCFF11A0B382}.Release|x64.Build.0 = Release|x64 74 | {C09ABDBE-9A64-423A-B0EE-BCFF11A0B382}.Release|x86.ActiveCfg = Release|Win32 75 | {C09ABDBE-9A64-423A-B0EE-BCFF11A0B382}.Release|x86.Build.0 = Release|Win32 76 | {12820B2D-992B-49FD-8EAD-1AD1A592F986}.Debug|x64.ActiveCfg = Debug|x64 77 | {12820B2D-992B-49FD-8EAD-1AD1A592F986}.Debug|x64.Build.0 = Debug|x64 78 | {12820B2D-992B-49FD-8EAD-1AD1A592F986}.Debug|x86.ActiveCfg = Debug|Win32 79 | {12820B2D-992B-49FD-8EAD-1AD1A592F986}.Debug|x86.Build.0 = Debug|Win32 80 | {12820B2D-992B-49FD-8EAD-1AD1A592F986}.Release|x64.ActiveCfg = Release|x64 81 | {12820B2D-992B-49FD-8EAD-1AD1A592F986}.Release|x64.Build.0 = Release|x64 82 | {12820B2D-992B-49FD-8EAD-1AD1A592F986}.Release|x86.ActiveCfg = Release|Win32 83 | {12820B2D-992B-49FD-8EAD-1AD1A592F986}.Release|x86.Build.0 = Release|Win32 84 | EndGlobalSection 85 | GlobalSection(SolutionProperties) = preSolution 86 | HideSolutionNode = FALSE 87 | EndGlobalSection 88 | GlobalSection(ExtensibilityGlobals) = postSolution 89 | SolutionGuid = {4F9C0B05-47F7-403F-9C0F-37F2503AC6A3} 90 | EndGlobalSection 91 | EndGlobal 92 | -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/HOGDetectorForOpenCV.txt: -------------------------------------------------------------------------------- 1 | -0.111296 2 | 0.207583 3 | 0.102277 4 | 0.0198495 5 | 0.0206155 6 | 0.272758 7 | -0.0186163 8 | 0.22672 9 | -0.264891 10 | 0.0704875 11 | 0.0271858 12 | -0.0493174 13 | 0.159855 14 | 0.0585702 15 | 0.220411 16 | 0.129255 17 | 0.220813 18 | -0.0474885 19 | -0.142626 20 | -0.00530091 21 | -0.12502 22 | 0.0748223 23 | 0.180784 24 | 0.315376 25 | 0.182986 26 | 0.355358 27 | -0.0463142 28 | -0.215807 29 | -0.0342878 30 | 0.115879 31 | 0.0669707 32 | 0.109946 33 | 0.164122 34 | 0.20686 35 | 0.268279 36 | 0.112083 37 | -0.365844 38 | -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/Queue.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/Queue.cpp -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/Queue.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/Queue.h -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/Read_Camera02.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include "Windows.h" 3 | #include "HCNetSDK.h" 4 | #include "plaympeg4.h" 5 | #include 6 | #include "cv.h" 7 | #include "highgui.h" 8 | #include 9 | #include "Queue.h" 10 | using namespace std; 11 | using namespace cv; 12 | #define USECOLOR 1 13 | #define ImgX 64 14 | #define ImgY 128 15 | 16 | LONG nPort = -1; 17 | HWND hWnd = NULL; 18 | 19 | LinkQueue MYQUEUE; //创建队列 20 | void svm_hog_detect(); 21 | 22 | 23 | 24 | void yv12toYUV(char *outYuv, char *inYv12, int width, int height, int widthStep) 25 | { 26 | int col, row; 27 | unsigned int Y, U, V; 28 | int tmp; 29 | int idx; 30 | 31 | //printf("widthStep=%d.\n",widthStep); 32 | 33 | for (row = 0; row>1; 41 | tmp = (row / 2)*(width / 2) + (col / 2); 42 | // if((row==1)&&( col>=1400 &&col<=1600)) 43 | // { 44 | // printf("col=%d,row=%d,width=%d,tmp=%d.\n",col,row,width,tmp); 45 | // printf("row*width+col=%d,width*height+width*height/4+tmp=%d,width*height+tmp=%d.\n",row*width+col,width*height+width*height/4+tmp,width*height+tmp); 46 | // } 47 | Y = (unsigned int)inYv12[row*width + col]; 48 | U = (unsigned int)inYv12[width*height + width * height / 4 + tmp]; 49 | V = (unsigned int)inYv12[width*height + tmp]; 50 | // if ((col==200)) 51 | // { 52 | // printf("col=%d,row=%d,width=%d,tmp=%d.\n",col,row,width,tmp); 53 | // printf("width*height+width*height/4+tmp=%d.\n",width*height+width*height/4+tmp); 54 | // return ; 55 | // } 56 | if ((idx + col * 3 + 2)> (1200 * widthStep)) 57 | { 58 | //printf("row * widthStep=%d,idx+col*3+2=%d.\n",1200 * widthStep,idx+col*3+2); 59 | } 60 | outYuv[idx + col * 3] = Y; 61 | outYuv[idx + col * 3 + 1] = U; 62 | outYuv[idx + col * 3 + 2] = V; 63 | } 64 | } 65 | //printf("col=%d,row=%d.\n",col,row); 66 | } 67 | //解码回调 视频为YUV数据(YV12),音频为PCM数据 68 | void CALLBACK DecCBFun(long nPort, char * pBuf, long nSize, FRAME_INFO * pFrameInfo, long nReserved1, long nReserved2) 69 | { 70 | long lFrameType = pFrameInfo->nType; 71 | 72 | if (lFrameType == T_YV12) 73 | { 74 | #if USECOLOR 75 | //int start = clock(); 76 | IplImage* pImgYCrCb = cvCreateImage(cvSize(pFrameInfo->nWidth, pFrameInfo->nHeight), 8, 3);//得到图像的Y分量 77 | yv12toYUV(pImgYCrCb->imageData, pBuf, pFrameInfo->nWidth, pFrameInfo->nHeight, pImgYCrCb->widthStep);//得到全部RGB图像 78 | IplImage* pImg = cvCreateImage(cvSize(pFrameInfo->nWidth, pFrameInfo->nHeight), 8, 3); 79 | cvCvtColor(pImgYCrCb, pImg, CV_YCrCb2RGB); 80 | //int end = clock(); 81 | #else 82 | IplImage* pImg = cvCreateImage(cvSize(pFrameInfo->nWidth, pFrameInfo->nHeight), 8, 1); 83 | memcpy(pImg->imageData, pBuf, pFrameInfo->nWidth*pFrameInfo->nHeight); 84 | #endif 85 | //printf("%d\n",end-start); 86 | //cvNamedWindow("IPCamera", CV_WINDOW_NORMAL); 87 | //cvShowImage("IPCamera", pImg); 88 | if (!EnQueue(&MYQUEUE, pImg)) 89 | { 90 | cout << "入队失败" << endl; 91 | return; 92 | } 93 | if (QueueLength(&MYQUEUE) > 15) 94 | { 95 | IplImage *data = NULL; 96 | DeQueue(&MYQUEUE, &data); 97 | cvReleaseImage(&data); 98 | } 99 | cvWaitKey(1); 100 | #if USECOLOR 101 | cvReleaseImage(&pImgYCrCb); 102 | //cvReleaseImage(&pImg); 103 | #else 104 | cvReleaseImage(&pImg); 105 | #endif 106 | 107 | 108 | //此时是YV12格式的视频数据,保存在pBuf中,可以fwrite(pBuf,nSize,1,Videofile); 109 | //fwrite(pBuf,nSize,1,fp); 110 | } 111 | /*************** 112 | else if (lFrameType ==T_AUDIO16) 113 | { 114 | //此时是音频数据,数据保存在pBuf中,可以fwrite(pBuf,nSize,1,Audiofile); 115 | 116 | } 117 | else 118 | { 119 | 120 | } 121 | *******************/ 122 | 123 | } 124 | 125 | ///实时流回调 126 | void CALLBACK fRealDataCallBack(LONG lRealHandle, DWORD dwDataType, BYTE *pBuffer, DWORD dwBufSize, void *pUser) 127 | { 128 | DWORD dRet = 0; 129 | BOOL inData = FALSE; 130 | switch (dwDataType) 131 | { 132 | case NET_DVR_SYSHEAD: //系统头 133 | if (nPort >= 0) 134 | { 135 | break; //同一路码流不需要多次调用开流接口 136 | } 137 | if (!PlayM4_GetPort(&nPort)) //获取播放库未使用的通道号 138 | { 139 | break; 140 | } 141 | if (dwBufSize > 0) 142 | { 143 | if (!PlayM4_SetStreamOpenMode(nPort, STREAME_REALTIME)) //设置实时流播放模式 144 | { 145 | cout << "PlayM4_SetStreamOpenMode failed " << endl; 146 | break; 147 | } 148 | if (!PlayM4_OpenStream(nPort, pBuffer, dwBufSize, 1024 * 1024)) //打开流接口 149 | { 150 | cout << "PlayM4_OpenStream failed " << endl; 151 | dRet = PlayM4_GetLastError(nPort); 152 | break; 153 | } 154 | //设置解码回调函数 只解码不显示 155 | if (!PlayM4_SetDecCallBack(nPort, DecCBFun)) //设置回调函数,替换播放器中的显示部分,由用户自己控制显示 156 | { 157 | dRet = PlayM4_GetLastError(nPort); 158 | break; 159 | } 160 | 161 | //设置解码回调函数 解码且显示 162 | //if (!PlayM4_SetDecCallBackEx(nPort,DecCBFun,NULL,NULL)) 163 | //{ 164 | // dRet=PlayM4_GetLastError(nPort); 165 | // break; 166 | //} 167 | 168 | //打开视频解码 169 | if (!PlayM4_Play(nPort, hWnd)) 170 | { 171 | dRet = PlayM4_GetLastError(nPort); 172 | break; 173 | } 174 | 175 | //打开音频解码, 需要码流是复合流 176 | /*if (!PlayM4_PlaySound(nPort)) 177 | { 178 | dRet = PlayM4_GetLastError(nPort); 179 | break; 180 | }*/ 181 | } 182 | break; 183 | 184 | case NET_DVR_STREAMDATA: //码流数据 185 | inData = PlayM4_InputData(nPort, pBuffer, dwBufSize); 186 | while (!inData) 187 | { 188 | Sleep(2); 189 | inData = PlayM4_InputData(nPort, pBuffer, dwBufSize); 190 | cout << "PlayM4_InputData failed 11111" << endl; 191 | break; 192 | } 193 | break; 194 | default: 195 | inData = PlayM4_InputData(nPort, pBuffer, dwBufSize); 196 | while (!inData) 197 | { 198 | Sleep(2); 199 | inData = PlayM4_InputData(nPort, pBuffer, dwBufSize); 200 | cout << "PlayM4_InputData failed 22222" << endl; 201 | break; 202 | } 203 | break; 204 | } 205 | } 206 | 207 | void CALLBACK g_ExceptionCallBack(DWORD dwType, LONG lUserID, LONG lHandle, void *pUser) 208 | { 209 | char tempbuf[256] = { 0 }; 210 | switch (dwType) 211 | { 212 | case EXCEPTION_RECONNECT: //预览时重连 213 | cout << "----------reconnect--------" << endl; 214 | break; 215 | default: 216 | break; 217 | } 218 | } 219 | //线程函数,读取摄像头 220 | unsigned __stdcall readCamera(void *param) 221 | { 222 | //--------------------------------------- 223 | // 初始化 SDK 224 | NET_DVR_Init(); 225 | //设置连接时间与重连时间 226 | NET_DVR_SetConnectTime(2000, 1); 227 | NET_DVR_SetReconnect(10000, true); 228 | 229 | 230 | //--------------------------------------- 231 | // 注册设备 232 | LONG lUserID; 233 | NET_DVR_USER_LOGIN_INFO struLoginInfo = { 0 };//登录参数,包括设备地址、登录用户、密码等 234 | NET_DVR_DEVICEINFO_V40 struDeviceInfo = { 0 };//设备信息,输出参数 235 | 236 | strcpy((char *)struLoginInfo.sDeviceAddress, "169.254.27.88"); //设备 IP 地址 237 | strcpy((char *)struLoginInfo.sUserName, "admin"); //设备登录用户名 238 | strcpy((char *)struLoginInfo.sPassword, "landian123"); //设备登录密码 239 | struLoginInfo.wPort = 8000; 240 | struLoginInfo.bUseAsynLogin = 0; //同步登录,登录接口返回成功即登录成功 241 | 242 | lUserID = NET_DVR_Login_V40(&struLoginInfo, &struDeviceInfo); 243 | if (lUserID < 0) 244 | { 245 | cout << "NET_DVR_Login_V40 failed, error code: " << NET_DVR_GetLastError() << endl; 246 | NET_DVR_Cleanup(); 247 | return 0; 248 | } 249 | 250 | 251 | int iRet; 252 | //获取通道 1 的压缩参数 253 | DWORD dwReturnLen; 254 | NET_DVR_COMPRESSIONCFG_V30 struParams = { 0 }; 255 | iRet = NET_DVR_GetDVRConfig(lUserID, NET_DVR_GET_COMPRESSCFG_V30, 1, &struParams, \ 256 | sizeof(NET_DVR_COMPRESSIONCFG_V30), &dwReturnLen); 257 | if (!iRet) 258 | { 259 | printf("NET_DVR_GetDVRConfig NET_DVR_GET_COMPRESSCFG_V30 error.\n"); 260 | NET_DVR_Logout(lUserID); 261 | NET_DVR_Cleanup(); 262 | return 0; 263 | } 264 | 265 | //设置通道 1 的压缩参数 266 | struParams.struNormHighRecordPara.dwVideoBitrate = 0.5; 267 | 268 | iRet = NET_DVR_SetDVRConfig(lUserID, NET_DVR_SET_COMPRESSCFG_V30, 1, \ 269 | &struParams, sizeof(NET_DVR_COMPRESSIONCFG_V30)); 270 | if (!iRet) 271 | { 272 | printf("NET_DVR_GetDVRConfig NET_DVR_SET_COMPRESSCFG_V30 error.\n"); 273 | NET_DVR_Logout(lUserID); 274 | NET_DVR_Cleanup(); 275 | return 0; 276 | } 277 | //获取通道 1 的压缩参数 278 | iRet = NET_DVR_GetDVRConfig(lUserID, NET_DVR_GET_COMPRESSCFG_V30, 1, \ 279 | &struParams, sizeof(NET_DVR_COMPRESSIONCFG_V30), &dwReturnLen); 280 | if (!iRet) 281 | { 282 | printf("NET_DVR_GetDVRConfig NET_DVR_GET_COMPRESSCFG_V30 error.\n"); 283 | NET_DVR_Logout(lUserID); 284 | NET_DVR_Cleanup(); 285 | return 0; 286 | } 287 | printf("Video Bitrate is %d\n", struParams.struNormHighRecordPara.dwVideoBitrate); 288 | 289 | 290 | 291 | //--------------------------------------- 292 | //设置异常消息回调函数 293 | NET_DVR_SetExceptionCallBack_V30(0, NULL, g_ExceptionCallBack, NULL); 294 | 295 | //--------------------------------------- 296 | //启动预览并设置回调数据流 297 | NET_DVR_PREVIEWINFO StruPlayInfo = { 0 }; 298 | StruPlayInfo.hPlayWnd = NULL; //窗口为空,设备SDK不解码只取流 299 | StruPlayInfo.lChannel = 1; //预览通道号 300 | StruPlayInfo.dwStreamType = 0; //0-主流码,1-子流码,2-流码3,3-流码4,以此类推 301 | StruPlayInfo.dwLinkMode = 0; //0-TCP方式,1-UDP方式,2-多播方式,3-RTP方式,4-RTP/RTSP,5-RSTP/HTTP 302 | StruPlayInfo.bBlocked = 1; //0-非堵塞取流,1-堵塞取流 303 | 304 | LONG lRealPlayHandle; 305 | lRealPlayHandle = NET_DVR_RealPlay_V40(lUserID, &StruPlayInfo, fRealDataCallBack, NULL); 306 | 307 | 308 | if (lRealPlayHandle<0) 309 | { 310 | cout << "NET_DVR_RealPlay_V40 failed! Error number: " << NET_DVR_GetLastError() << endl; 311 | return 0; 312 | } 313 | 314 | cout << "The program is successful !!" << endl; 315 | Sleep(-1); 316 | 317 | //--------------------------------------- 318 | //关闭预览 319 | if (!NET_DVR_StopRealPlay(lRealPlayHandle)) 320 | { 321 | cout << "NET_DVR_StopRealPlay error! Error number: " << NET_DVR_GetLastError() << endl; 322 | NET_DVR_Logout(lUserID); 323 | NET_DVR_Cleanup(); 324 | return 0; 325 | } 326 | //释放播放库资源 327 | PlayM4_Stop(nPort); 328 | PlayM4_CloseStream(nPort); 329 | PlayM4_FreePort(nPort); 330 | 331 | //注销用户 332 | NET_DVR_Logout(lUserID); 333 | NET_DVR_Cleanup(); 334 | 335 | return 0; 336 | 337 | } 338 | //获得矩形中心 339 | Point getCenterPoint(Rect rect) 340 | { 341 | Point cpt; 342 | cpt.x = rect.x + cvRound(rect.width / 2.0); 343 | cpt.y = rect.y + cvRound(rect.height / 2.0); 344 | return cpt; 345 | } 346 | 347 | 348 | 349 | unsigned __stdcall process_people(void *param) 350 | { 351 | 352 | svm_hog_detect(); 353 | 354 | return -1; 355 | } 356 | 357 | 358 | void main() 359 | { 360 | 361 | InitQueue(&MYQUEUE); 362 | HANDLE hGetFrame, hProcess_people; //创建句柄 363 | unsigned tidGetFrame, tidProcess_people; //记录线程ID地址 364 | //创建2个线程 365 | hGetFrame = (HANDLE)_beginthreadex(NULL, 0, &readCamera, NULL, 0, &tidGetFrame); //读取摄像头线程 366 | hProcess_people = (HANDLE)_beginthreadex(NULL, 0, &process_people, NULL, 0, &tidProcess_people); //图像处理线程 367 | 368 | ExitThread(tidGetFrame); //结束线程 369 | ExitThread(tidProcess_people); 370 | 371 | } 372 | 373 | 374 | 375 | void svm_hog_detect() 376 | { 377 | IplImage *img = NULL; 378 | //HOG检测器,用来计算HOG描述子的 379 | //检测窗口(48,48),块尺寸(16,16),块步长(8,8),cell尺寸(8,8),直方图bin个数9 380 | cv::HOGDescriptor hog(cv::Size(ImgX, ImgY), cv::Size(16, 16), cv::Size(8, 8), cv::Size(8, 8), 9); 381 | 382 | //HOG描述子的维数,由图片大小、检测窗口大小、块大小、细胞单元中直方图bin个数决定 383 | int DescriptorDim; 384 | 385 | //从XML文件读取训练好的SVM模型 386 | //cv::Ptr svm = cv::ml::SVM::load("D:\\OpenCV\\opencv\\sources\\data\\hogcascades\\SVM_HOG_2400PosINRIA_12000Neg\\SVM_HOG_2400PosINRIA_12000Neg.xml"); 387 | cv::Ptr svm = cv::ml::SVM::load("E:\\大学\\中英3\\李旭\\SVM_HOG.xml"); 388 | if (svm->empty()) 389 | { 390 | std::cout << "load svm detector failed!!!" << std::endl; 391 | return; 392 | } 393 | 394 | //特征向量的维数,即HOG描述子的维数 395 | DescriptorDim = svm->getVarCount(); 396 | 397 | //获取svecsmat,元素类型为float 398 | cv::Mat svecsmat = svm->getSupportVectors(); 399 | //特征向量维数 400 | int svdim = svm->getVarCount(); 401 | int numofsv = svecsmat.rows; 402 | 403 | //alphamat和svindex必须初始化,否则getDecisionFunction()函数会报错 404 | cv::Mat alphamat = cv::Mat::zeros(numofsv, svdim, CV_32F); 405 | cv::Mat svindex = cv::Mat::zeros(1, numofsv, CV_64F); 406 | 407 | cv::Mat Result; 408 | double rho = svm->getDecisionFunction(0, alphamat, svindex); 409 | //将alphamat元素的数据类型重新转成CV_32F 410 | alphamat.convertTo(alphamat, CV_32F); 411 | Result = -1 * alphamat * svecsmat; 412 | 413 | std::vector vec; 414 | for (int i = 0; i < svdim; ++i) 415 | { 416 | vec.push_back(Result.at(0, i)); 417 | } 418 | vec.push_back(rho); 419 | 420 | //saving HOGDetectorForOpenCV.txt 421 | std::ofstream fout("HOGDetectorForOpenCV.txt"); 422 | for (int i = 0; i < vec.size(); ++i) 423 | { 424 | fout << vec[i] << std::endl; 425 | } 426 | 427 | hog.setSVMDetector(vec); 428 | 429 | 430 | 431 | int width = 1280; 432 | int height = 720; 433 | Point CenterPoint; //创建一个Point类用来存放矩形的中心点 434 | //cv::VideoWriter out; 435 | //char saveName[256];//剪裁出来的hard example图片的文件名 436 | //int hardExampleCount = 0; //hard example计数 437 | //用于保存检测结果 438 | //out.open("test result.avi", CV_FOURCC('D', 'I', 'V', 'X'), 25.0, cv::Size(width / 2, height / 2), true); 439 | while (1) 440 | { 441 | // 先判断队列长度是否为0 442 | while (QueueLength(&MYQUEUE) <= 0) 443 | { 444 | Sleep(8); 445 | } 446 | //capture >> frame; 447 | 448 | DeQueue(&MYQUEUE, &img); //出队获取图像 449 | Mat frame = cvarrToMat(img, 1); //格式转换 450 | //Mat frame = imread("E:\\Pictures\\Camera Roll\\447FA072CBDCC89F45ED5F805B8BA0D2.jpg",1); 451 | width = frame.cols; 452 | height = frame.rows; 453 | Mat src=frame; //储存灰度前的图像 454 | cv::resize(src, src, cv::Size(width / 2, height / 2)); 455 | cv::resize(frame, frame, cv::Size(width / 2, height / 2)); 456 | cv::cvtColor(frame, frame, CV_RGB2GRAY); //灰度转换 457 | //目标矩形框数组 458 | std::vector found, found_1, found_filtered; 459 | //对图片进行多尺度检测 460 | hog.detectMultiScale(frame, found, 0, cv::Size(8, 8), cv::Size(16, 16), 1.2, 2); 461 | 462 | for (int i = 0; i 0 && found[i].y > 0 && (found[i].x + found[i].width)< frame.cols 465 | && (found[i].y + found[i].height)< frame.rows) 466 | found_1.push_back(found[i]); 467 | } 468 | 469 | //找出所有没有嵌套的矩形框r,并放入found_filtered中,如果有嵌套的话, 470 | //则取外面最大的那个矩形框放入found_filtered中 471 | for (int i = 0; i < found_1.size(); i++) 472 | { 473 | cv::Rect r = found_1[i]; 474 | int j = 0; 475 | for (; j < found_1.size(); j++) 476 | if (j != i && (r & found_1[j]) == found_1[j]) 477 | break; 478 | if (j == found_1.size()) 479 | found_filtered.push_back(r); 480 | } 481 | 482 | //画矩形框,因为hog检测出的矩形框比实际目标框要稍微大些,所以这里需要做一些调整,可根据实际情况调整 483 | for (int i = 0; i 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 15.0 23 | {45C181A8-EC9D-415A-BA9F-18A7045D6E38} 24 | Win32Proj 25 | ReadCamera02 26 | 10.0.16299.0 27 | 28 | 29 | 30 | Application 31 | true 32 | v141 33 | Unicode 34 | 35 | 36 | Application 37 | false 38 | v141 39 | true 40 | Unicode 41 | 42 | 43 | Application 44 | true 45 | v141 46 | Unicode 47 | 48 | 49 | Application 50 | false 51 | v141 52 | true 53 | Unicode 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | false 75 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\头文件;$(IncludePath) 76 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\库文件;$(LibraryPath) 77 | 78 | 79 | true 80 | 81 | 82 | true 83 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\头文件;$(IncludePath) 84 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\库文件;$(LibraryPath) 85 | 86 | 87 | false 88 | 89 | 90 | 91 | Level3 92 | MaxSpeed 93 | true 94 | true 95 | true 96 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 97 | true 98 | 4996 99 | 100 | 101 | true 102 | true 103 | true 104 | Console 105 | opencv_world341.lib;HCNetSDK.lib;PlayCtrl.lib;ws2_32.lib;winmm.lib;GdiPlus.lib;%(AdditionalDependencies) 106 | 107 | 108 | 109 | 110 | Level3 111 | Disabled 112 | true 113 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 114 | true 115 | 116 | 117 | true 118 | Console 119 | 120 | 121 | 122 | 123 | Level3 124 | Disabled 125 | true 126 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 127 | true 128 | 129 | 130 | true 131 | Console 132 | 133 | 134 | 135 | 136 | Level3 137 | MaxSpeed 138 | true 139 | true 140 | true 141 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 142 | true 143 | 144 | 145 | true 146 | true 147 | true 148 | Console 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/Read_Camera02.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | 源文件 23 | 24 | 25 | 26 | 27 | 头文件 28 | 29 | 30 | -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/Read_Camera02.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Queue.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/Queue.obj -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.Build.CppClean.log: -------------------------------------------------------------------------------- 1 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\vc141.pdb 2 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\read_camera02.obj 3 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\peopledetect.obj 4 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\queue.obj 5 | e:\documents\visual studio 2017\vs_2017_project\read_camera\x64\release\read_camera02.ipdb 6 | e:\documents\visual studio 2017\vs_2017_project\read_camera\x64\release\read_camera02.iobj 7 | e:\documents\visual studio 2017\vs_2017_project\read_camera\x64\release\read_camera02.pdb 8 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\read_camera02.tlog\cl.command.1.tlog 9 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\read_camera02.tlog\cl.read.1.tlog 10 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\read_camera02.tlog\cl.write.1.tlog 11 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\read_camera02.tlog\link.command.1.tlog 12 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\read_camera02.tlog\link.read.1.tlog 13 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\read_camera02.tlog\link.write.1.tlog 14 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\x64\release\read_camera02.tlog\read_camera02.write.1u.tlog 15 | -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.log: -------------------------------------------------------------------------------- 1 |  Read_Camera02.cpp 2 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\read_camera02.cpp(266): warning C4244: “=”: 从“double”转换到“DWORD”,可能丢失数据 3 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\read_camera02.cpp(359): warning C4326: “main”的返回类型应为“int”而非“void” 4 | e:\documents\visual studio 2017\vs_2017_project\read_camera\read_camera02\read_camera02.cpp(418): warning C4244: “参数”: 从“double”转换到“const float”,可能丢失数据 5 | 正在生成代码 6 | 3 of 479 functions ( 0.6%) were compiled, the rest were copied from previous compilation. 7 | 0 functions were new in current compilation 8 | 6 functions had inline decision re-evaluated but remain unchanged 9 | 已完成代码的生成 10 | Read_Camera02.vcxproj -> E:\Documents\Visual Studio 2017\VS_2017_Project\Read_Camera\x64\Release\Read_Camera02.exe 11 | -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/Read_Camera02.obj -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/Read_Camera02.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0 2 | Release|x64|E:\Documents\Visual Studio 2017\VS_2017_Project\Read_Camera\| 3 | -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/Read_Camera02.write.1u.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/Read_Camera02.write.1u.tlog -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/Read_Camera02.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Read_Camera/Read_Camera02/x64/Release/vc141.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/Read_Camera02/x64/Release/vc141.pdb -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/YV12_RGB.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/YV12_RGB.cpp -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/YV12_RGB.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 15.0 23 | {97F38CC4-8BFC-441F-B1E8-899595A7D9A4} 24 | Win32Proj 25 | YV12RGB 26 | 10.0.16299.0 27 | 28 | 29 | 30 | Application 31 | true 32 | v141 33 | Unicode 34 | 35 | 36 | Application 37 | false 38 | v141 39 | true 40 | Unicode 41 | 42 | 43 | Application 44 | true 45 | v141 46 | Unicode 47 | 48 | 49 | Application 50 | false 51 | v141 52 | true 53 | Unicode 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | false 75 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\头文件;$(IncludePath) 76 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\库文件;$(LibraryPath) 77 | 78 | 79 | true 80 | 81 | 82 | true 83 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\头文件;$(IncludePath) 84 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\库文件;$(LibraryPath) 85 | 86 | 87 | false 88 | 89 | 90 | 91 | Level3 92 | MaxSpeed 93 | true 94 | true 95 | true 96 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 97 | true 98 | 99 | 100 | true 101 | true 102 | true 103 | Console 104 | opencv_world341.lib;HCNetSDK.lib;PlayCtrl.lib;ws2_32.lib;winmm.lib;GdiPlus.lib;%(AdditionalDependencies) 105 | 106 | 107 | 108 | 109 | Level3 110 | Disabled 111 | true 112 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 113 | true 114 | 115 | 116 | true 117 | Console 118 | 119 | 120 | 121 | 122 | Level3 123 | Disabled 124 | true 125 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 126 | true 127 | 128 | 129 | true 130 | Console 131 | HCNetSDK.lib;PlayCtrl.lib;ws2_32.lib;winmm.lib;GdiPlus.lib;%(AdditionalDependencies) 132 | 133 | 134 | 135 | 136 | Level3 137 | MaxSpeed 138 | true 139 | true 140 | true 141 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 142 | true 143 | 144 | 145 | true 146 | true 147 | true 148 | Console 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/YV12_RGB.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/YV12_RGB.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.log: -------------------------------------------------------------------------------- 1 |  YV12_RGB.cpp 2 | e:\documents\visual studio 2017\vs_2017_project\read_camera\yv12_rgb\yv12_rgb.cpp(181): warning C4477: “printf”: 格式字符串“%d”需要类型“int”的参数,但可变参数 1 拥有了类型“time_t” 3 | e:\documents\visual studio 2017\vs_2017_project\read_camera\yv12_rgb\yv12_rgb.cpp(181): note: 请考虑在格式字符串中使用“%lld” 4 | e:\documents\visual studio 2017\vs_2017_project\read_camera\yv12_rgb\yv12_rgb.cpp(181): note: 请考虑在格式字符串中使用“%Id” 5 | e:\documents\visual studio 2017\vs_2017_project\read_camera\yv12_rgb\yv12_rgb.cpp(181): note: 请考虑在格式字符串中使用“%I64d” 6 | e:\documents\visual studio 2017\vs_2017_project\read_camera\yv12_rgb\yv12_rgb.cpp(188): warning C4326: “main”的返回类型应为“int”而非“void” 7 | YV12_RGB.vcxproj -> E:\Documents\Visual Studio 2017\VS_2017_Project\Read_Camera\x64\Debug\YV12_RGB.exe 8 | -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.obj -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/YV12_RGB.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0 2 | Debug|x64|E:\Documents\Visual Studio 2017\VS_2017_Project\Read_Camera\| 3 | -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Debug/YV12_RGB.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/vc141.idb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Debug/vc141.idb -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Debug/vc141.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Debug/vc141.pdb -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Release/YV12_RGB.log: -------------------------------------------------------------------------------- 1 |  YV12_RGB.cpp 2 | e:\documents\visual studio 2017\vs_2017_project\read_camera\yv12_rgb\yv12_rgb.cpp(12): fatal error C1083: 无法打开包括文件: “stdafx.h”: No such file or directory 3 | -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/YV12_RGB.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0 2 | Release|x64|E:\Documents\Visual Studio 2017\VS_2017_Project\Read_Camera\| 3 | -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/YV12_RGB.write.1u.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/YV12_RGB.write.1u.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/unsuccessfulbuild: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Release/YV12_RGB.tlog/unsuccessfulbuild -------------------------------------------------------------------------------- /Read_Camera/YV12_RGB/x64/Release/vc141.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/YV12_RGB/x64/Release/vc141.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/AudioRender.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/AudioRender.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCCore.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDK.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDK.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/AnalyzeData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/AnalyzeData.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/AudioIntercom.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/AudioIntercom.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCAlarm.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCAlarm.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCAlarm.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCAlarm.lib -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCCoreDevCfg.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCCoreDevCfg.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCDisplay.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCDisplay.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCGeneralCfgMgr.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCGeneralCfgMgr.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCGeneralCfgMgr.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCGeneralCfgMgr.lib -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCIndustry.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCIndustry.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCPlayBack.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCPlayBack.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCPreview.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCPreview.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCPreview.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCPreview.lib -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/HCVoiceTalk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/HCVoiceTalk.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/OpenAL32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/OpenAL32.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/StreamTransClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/StreamTransClient.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/SystemTransform.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/SystemTransform.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/HCNetSDKCom/libiconv2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/HCNetSDKCom/libiconv2.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/PlayCtrl.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/PlayCtrl.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/Read_Camera01.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/Read_Camera01.exe -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/Read_Camera01.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/Read_Camera01.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/SuperRender.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/SuperRender.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Debug/YV12_RGB.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Debug/YV12_RGB.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/AudioRender.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/AudioRender.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCCore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCCore.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDK.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDK.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/AnalyzeData.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/AnalyzeData.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/AudioIntercom.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/AudioIntercom.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCAlarm.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCAlarm.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCAlarm.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCAlarm.lib -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCCoreDevCfg.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCCoreDevCfg.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCDisplay.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCDisplay.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCGeneralCfgMgr.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCGeneralCfgMgr.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCGeneralCfgMgr.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCGeneralCfgMgr.lib -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCIndustry.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCIndustry.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCPlayBack.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCPlayBack.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCPreview.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCPreview.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCPreview.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCPreview.lib -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/HCVoiceTalk.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/HCVoiceTalk.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/OpenAL32.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/OpenAL32.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/StreamTransClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/StreamTransClient.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/SystemTransform.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/SystemTransform.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HCNetSDKCom/libiconv2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HCNetSDKCom/libiconv2.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HOG+SVM训练.iobj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HOG+SVM训练.iobj -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HOG+SVM训练.ipdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HOG+SVM训练.ipdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/HOG+SVM训练.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/HOG+SVM训练.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/PeopleDetect.iobj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/PeopleDetect.iobj -------------------------------------------------------------------------------- /Read_Camera/x64/Release/PeopleDetect.ipdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/PeopleDetect.ipdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/PeopleDetect.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/PeopleDetect.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/PlayCtrl.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/PlayCtrl.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera01.iobj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera01.iobj -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera01.ipdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera01.ipdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera01.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera01.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera02.iobj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera02.iobj -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera02.ipdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera02.ipdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera02.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera02.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera02_Head.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera02_Head.exe -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera02_Head.iobj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera02_Head.iobj -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera02_Head.ipdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera02_Head.ipdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/Read_Camera02_Head.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/Read_Camera02_Head.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/SuperRender.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/SuperRender.dll -------------------------------------------------------------------------------- /Read_Camera/x64/Release/YV12_RGB.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/YV12_RGB.exe -------------------------------------------------------------------------------- /Read_Camera/x64/Release/YV12_RGB.iobj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/YV12_RGB.iobj -------------------------------------------------------------------------------- /Read_Camera/x64/Release/YV12_RGB.ipdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/YV12_RGB.ipdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/YV12_RGB.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/YV12_RGB.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/hog+svm训练.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/hog+svm训练.exe -------------------------------------------------------------------------------- /Read_Camera/x64/Release/peopledetect.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/peopledetect.exe -------------------------------------------------------------------------------- /Read_Camera/x64/Release/read_camera01.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/read_camera01.exe -------------------------------------------------------------------------------- /Read_Camera/x64/Release/read_camera02.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/read_camera02.exe -------------------------------------------------------------------------------- /Read_Camera/x64/Release/样本处理.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/样本处理.exe -------------------------------------------------------------------------------- /Read_Camera/x64/Release/样本处理.iobj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/样本处理.iobj -------------------------------------------------------------------------------- /Read_Camera/x64/Release/样本处理.ipdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/样本处理.ipdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/样本处理.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/样本处理.pdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/训练集裁剪.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/训练集裁剪.exe -------------------------------------------------------------------------------- /Read_Camera/x64/Release/训练集裁剪.iobj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/训练集裁剪.iobj -------------------------------------------------------------------------------- /Read_Camera/x64/Release/训练集裁剪.ipdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/训练集裁剪.ipdb -------------------------------------------------------------------------------- /Read_Camera/x64/Release/训练集裁剪.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/x64/Release/训练集裁剪.pdb -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/train_main.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/train_main.cpp -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/main.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/main.obj -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/train_main.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/train_main.obj -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/vc141.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/vc141.pdb -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/训练集裁剪.log: -------------------------------------------------------------------------------- 1 |  train_main.cpp 2 | e:\documents\visual studio 2017\vs_2017_project\read_camera\训练集裁剪\train_main.cpp(25): warning C4101: “v”: 未引用的局部变量 3 | 正在生成代码 4 | 9 of 427 functions ( 2.1%) were compiled, the rest were copied from previous compilation. 5 | 4 functions were new in current compilation 6 | 0 functions had inline decision re-evaluated but remain unchanged 7 | 已完成代码的生成 8 | 训练集裁剪.vcxproj -> E:\Documents\Visual Studio 2017\VS_2017_Project\Read_Camera\x64\Release\训练集裁剪.exe 9 | -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/CL.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/CL.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/CL.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/CL.read.1.tlog -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/CL.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/CL.write.1.tlog -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/link.command.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/link.command.1.tlog -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/link.read.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/link.read.1.tlog -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/link.write.1.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/link.write.1.tlog -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/训练集裁剪.lastbuildstate: -------------------------------------------------------------------------------- 1 | #TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.16299.0 2 | Release|x64|E:\Documents\Visual Studio 2017\VS_2017_Project\Read_Camera\| 3 | -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/训练集裁剪.write.1u.tlog: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaMiBear/Hik_OpenCV_PeopleDetect/a5e1cf6081208e9d12df7734afb68fece49ae83f/Read_Camera/训练集裁剪/x64/Release/训练集裁剪.tlog/训练集裁剪.write.1u.tlog -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/训练集裁剪.vcxproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | Win32 7 | 8 | 9 | Release 10 | Win32 11 | 12 | 13 | Debug 14 | x64 15 | 16 | 17 | Release 18 | x64 19 | 20 | 21 | 22 | 15.0 23 | {12820B2D-992B-49FD-8EAD-1AD1A592F986} 24 | Win32Proj 25 | 训练集裁剪 26 | 10.0.16299.0 27 | 28 | 29 | 30 | Application 31 | true 32 | v141 33 | Unicode 34 | 35 | 36 | Application 37 | false 38 | v141 39 | true 40 | Unicode 41 | 42 | 43 | Application 44 | true 45 | v141 46 | Unicode 47 | 48 | 49 | Application 50 | false 51 | v141 52 | true 53 | Unicode 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | false 75 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\头文件;$(IncludePath) 76 | D:\OpenCV\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\CH-HCNetSDK%28Windows64%29V5.3.1.22_build20170909\库文件;$(LibraryPath) 77 | 78 | 79 | true 80 | 81 | 82 | true 83 | 84 | 85 | false 86 | 87 | 88 | 89 | Level3 90 | MaxSpeed 91 | true 92 | true 93 | true 94 | NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 95 | true 96 | 97 | 98 | true 99 | true 100 | true 101 | Console 102 | opencv_world341.lib;%(AdditionalDependencies) 103 | 104 | 105 | 106 | 107 | Level3 108 | Disabled 109 | true 110 | WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) 111 | true 112 | 113 | 114 | true 115 | Console 116 | 117 | 118 | 119 | 120 | Level3 121 | Disabled 122 | true 123 | _DEBUG;_CONSOLE;%(PreprocessorDefinitions) 124 | true 125 | 126 | 127 | true 128 | Console 129 | 130 | 131 | 132 | 133 | Level3 134 | MaxSpeed 135 | true 136 | true 137 | true 138 | WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) 139 | true 140 | 141 | 142 | true 143 | true 144 | true 145 | Console 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/训练集裁剪.vcxproj.filters: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF} 6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx 7 | 8 | 9 | {93995380-89BD-4b04-88EB-625FBE52EBFB} 10 | h;hh;hpp;hxx;hm;inl;inc;ipp;xsd 11 | 12 | 13 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} 14 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms 15 | 16 | 17 | 18 | 19 | 源文件 20 | 21 | 22 | -------------------------------------------------------------------------------- /Read_Camera/训练集裁剪/训练集裁剪.vcxproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | --------------------------------------------------------------------------------