mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-05 04:13:31 -05:00
This makes it easier to conditionally exclude video-edit-object.cpp from the build when OpenCV >= 5 drops CascadeClassifier support.
19 lines
352 B
C++
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
|