//#ifndef FACEDETECTIONPARKINGPUSH_H
//#define FACEDETECTIONPARKINGPUSH_H
//#include "RecognitionInfo.h"
//#include "FaceRecognition.h"
//#include "HttpService.h"
//#include "LicensePlateRecognition.h"
//#include "Json_Header/AlarmInfo.h"
//#include "TaskRunnable.h"
//#include "mainwindow.h"
//#include <QDateTime>
//#include <QJsonDocument>
//#include "Common.h"
//#include <QString>
//#include <QObject>
//#include <QTimer>
//#include <QThreadPool>
//#include <QQueue>
//#include <opencv2/opencv.hpp>

//class FaceDetectionParkingPush : public QObject {
//    Q_OBJECT
//public:
//    FaceDetectionParkingPush(QString &url,QString &httpUrl,QString &sSn,QTimer* devSnapSynTimer, int &channel);
//    ~FaceDetectionParkingPush();
//    FaceDetectionParkingPush();
//    int SdkDevLoginSyn(QString sDevId, int nDevPort, QString sUserName, QString sPassword, int nTimeout);
//    //int SdkMediaGetFaceImage(int hDevice, int nSeq, int nTimeout);
//    int SdkDevSetAlarmListener(XSDK_HANDLE hDevice, int bListener);

//    int getHdevice();

//    int getChannel();

//    bool getConnectionStatus();

//    void initSdkRealTimeDevSnapSyn(int hDevice);

//    void updateImage(const cv::Mat & frame,const QString  &respUrl);


//    int CallbackFunction(XSDK_HANDLE hObject,QString &szString);

//    void CheckAndUpdateCurrentPlate( RecognizedInfo& newInfo);

//    void SdkDevSnapSyn(XSDK_HANDLE hDevice, int nChannel);

//    TaskRunnable*getTask();

//    void setTask(TaskRunnable* newTask);
    
//signals:
//    void CallbackFrameReady(const cv::Mat &frame, const QString &url);
//public slots:
//    void SdkRealTimeDevSnapSyn(int hDevice);
//private:
//    TaskRunnable* task = nullptr;

//    int hDevice;
//    int channel;

//    SXSDKLoginParam *loginParam;
//    SXMediaFaceImageReq *sxMediaFaceImageReq;
//    std::mutex queueMutex;
//    std::mutex plateMutex;

//    std::mutex taskThread;
//    QQueue<RecognizedInfo> queuels;

//    RecognizedInfo currentPlate;

//    QString sSn;
//    QString url;
//    volatile bool currentConStatus=false;


//    //2秒钟抓一次图
//    QTimer *dev_snap_syn_timer;

//};

//#endif // FACEDETECTIONPARKINGPUSH_H
