1 Star 0 Fork 0

qinxude/rk3568ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
localcamera.h 1.24 KB
一键复制 编辑 原始数据 按行查看 历史
qinxude 提交于 2024-09-04 10:00 . befor moc
#ifndef LOCALCAMERA_H
#define LOCALCAMERA_H
#include <QObject>
#include <QDebug>
#include <QTimer>
#include <QImage>
#include <QFile>
//#include <opencv4/opencv2/highgui/highgui.hpp>
//#include <opencv4/opencv2/imgproc/imgproc.hpp>
//#include <opencv4/opencv2/core/core.hpp>
//#include <opencv4/opencv2/videoio.hpp>
#include "common.h"
#include <QDateTime>
using namespace cv;
using namespace std;
#define LOCAL_FRAME_FRQ (10)
#define LOCAL_CAMERA_TIMEOUT (1000/LOCAL_FRAME_FRQ)
class LocalCamera : public QObject
{
Q_OBJECT
public:
static LocalCamera* GetInstance();
~LocalCamera();
bool OpenCamera();
void CloseCamera();
bool IsOpened();
bool Capture(cv::Mat &);
signals:
void CameraFrameRefresh(QImage);
void CameraFrameRefresh(cv::Mat);
private slots:
void FrameRefresh();
private:
LocalCamera();
static LocalCamera* m_LocalCamera;
cv::VideoCapture m_cap;
QTimer *m_Timer;
int32_t m_UserCnt;
};
#include "datadictionary.h"
class LocalCameraCapture : public QObject
{
Q_OBJECT
public:
LocalCameraCapture();
public slots:
void MisDataChange(MisDataIndex_t Index);
private:
LocalCamera *m_LocalCamera;
DataDictionary *m_DataDictionary;
};
#endif // LOCALCAMERA_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/qinxude/rk3568ui.git
[email protected]:qinxude/rk3568ui.git
qinxude
rk3568ui
rk3568ui
master

搜索帮助