Initial Linux Qt OpenCV project

This commit is contained in:
luochen570
2026-05-29 22:29:30 +08:00
commit 81d586c032
22 changed files with 1748 additions and 0 deletions

33
app/include/ImageWorker.h Normal file
View File

@@ -0,0 +1,33 @@
#pragma once
#include "ImageProcessor.h"
#include <QObject>
#include <QMetaType>
#include <opencv2/core.hpp>
Q_DECLARE_METATYPE(cv::Mat)
class ImageWorker final : public QObject
{
Q_OBJECT
public:
enum class Operation {
Rotate,
Scale,
Translate,
ExtractTargets,
ClassifySimple
};
Q_ENUM(Operation)
public Q_SLOTS:
void process(cv::Mat image, ImageWorker::Operation operation, double value, int dx, int dy);
Q_SIGNALS:
void finished(ProcessResult result);
void failed(QString message);
};
Q_DECLARE_METATYPE(ImageWorker::Operation)