SceneSwitcher/plugins/video/cascade-classifier-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

28 lines
564 B
C++

#pragma once
#include "object-detector.hpp"
#include <memory>
namespace advss {
class CascadeClassifierDetector : public ObjectDetector {
public:
CascadeClassifierDetector();
~CascadeClassifierDetector() override;
static bool IsSupported();
bool Load(const std::string &modelPath) override;
bool IsLoaded() const override;
std::vector<cv::Rect> Detect(QImage &img) override;
double scaleFactor = 1.1;
int minNeighbors = 3;
cv::Size minSize{0, 0};
cv::Size maxSize{0, 0};
private:
struct Impl;
std::unique_ptr<Impl> _impl;
};
} // namespace advss