Commit ec4d59c6 by “liusq”

车牌过滤掉nullptr

parent dd5b951a
...@@ -407,7 +407,7 @@ int CameraHandle::callbackFunction(XSDK_HANDLE hObject, QString &szString) { ...@@ -407,7 +407,7 @@ int CameraHandle::callbackFunction(XSDK_HANDLE hObject, QString &szString) {
qInfo() << "图像尺寸或通道数不正确,需排查原因"; qInfo() << "图像尺寸或通道数不正确,需排查原因";
return -1; return -1;
} }
qDebug() << "callbackFunction request to: " << sSn; qInfo() << "callbackFunction request to: " << sSn;
updateImage(image, currentTime); updateImage(image, currentTime);
} }
...@@ -582,8 +582,6 @@ bool CameraHandle::isChanged(const QPoint& newInfo, const QPoint& current) { ...@@ -582,8 +582,6 @@ bool CameraHandle::isChanged(const QPoint& newInfo, const QPoint& current) {
void CameraHandle::updateImage(const cv::Mat & frame,qint64 currentTime){ void CameraHandle::updateImage(const cv::Mat & frame,qint64 currentTime){
Common & instace= Common::getInstance(); Common & instace= Common::getInstance();
qInfo()<<"=============================>"; qInfo()<<"=============================>";
AlgorithmTaskManage &algorithmTaskManage=AlgorithmTaskManage::getInstance(); AlgorithmTaskManage &algorithmTaskManage=AlgorithmTaskManage::getInstance();
......
...@@ -18,7 +18,6 @@ HumanDetection::~HumanDetection(){ ...@@ -18,7 +18,6 @@ HumanDetection::~HumanDetection(){
if(detector!=nullptr){ if(detector!=nullptr){
TCV_ReleaseHumanDetector(detector); TCV_ReleaseHumanDetector(detector);
qInfo()<<"工服析构"<<++i; qInfo()<<"工服析构"<<++i;
detector=nullptr; detector=nullptr;
} }
} }
......
...@@ -25,8 +25,10 @@ LicensePlateRecognition::LicensePlateRecognition(){ ...@@ -25,8 +25,10 @@ LicensePlateRecognition::LicensePlateRecognition(){
LicensePlateRecognition::~LicensePlateRecognition(){ LicensePlateRecognition::~LicensePlateRecognition(){
static int i=0; static int i=0;
if(ctx!=nullptr){
HLPR_ReleaseContext(ctx); HLPR_ReleaseContext(ctx);
qInfo()<<"车牌析构"<<++i; qInfo()<<"车牌析构"<<++i;
}
} }
......
...@@ -18,6 +18,7 @@ private: ...@@ -18,6 +18,7 @@ private:
MqttSubscriber& operator=(const MqttSubscriber&) = delete; MqttSubscriber& operator=(const MqttSubscriber&) = delete;
MQTTAsync client; MQTTAsync client;
vides_data::MqttConfig config; vides_data::MqttConfig config;
void onConnect(MQTTAsync_successData* response); void onConnect(MQTTAsync_successData* response);
......
...@@ -78,7 +78,6 @@ MainWindow::MainWindow() ...@@ -78,7 +78,6 @@ MainWindow::MainWindow()
QString tempPath = qSetting->value("devices/sz_temp_path").toString(); QString tempPath = qSetting->value("devices/sz_temp_path").toString();
int sdk_handle= mediaFaceImage->SdkInit(configPath,tempPath); int sdk_handle= mediaFaceImage->SdkInit(configPath,tempPath);
qDebug()<<"句柄为:"<<sdk_handle;
if(sdk_handle<0){ if(sdk_handle<0){
qInfo() << "sdk初始化失败"; qInfo() << "sdk初始化失败";
return; return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment