SceneSwitcher/plugins/video/object-detector.hpp
WarmUpTill 107d77f1b8
Some checks failed
debian-build / build (push) Has been cancelled
Push to master / Check Formatting 🔍 (push) Has been cancelled
Push to master / Build Project 🧱 (push) Has been cancelled
Push to master / Create Release 🛫 (push) Has been cancelled
Split macro-condition-video.cpp UI into per-widget files
This makes it easier to conditionally exclude video-edit-object.cpp
from the build when OpenCV >= 5 drops CascadeClassifier support.
2026-08-01 22:34:01 +02:00

19 lines
352 B
C++

#pragma once
#include <opencv2/opencv.hpp>
#include <QImage>
#include <string>
#include <vector>
namespace advss {
struct ObjectDetector {
virtual bool Load(const std::string &modelPath) = 0;
virtual bool IsLoaded() const = 0;
virtual std::vector<cv::Rect> Detect(QImage &img) = 0;
virtual ~ObjectDetector() = default;
};
} // namespace advss