Commit ec4d59c6 by “liusq”

车牌过滤掉nullptr

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