/
limb
/
catedit-aurora
Обзор
Документация
Войти
/
limb
/
catedit-aurora
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
src/segmentationengine.h
29 строк
724 B
Артемий
fix: load models
09 июл 2026, 10:44
09 июл 2026, 10:44
1af5624
Код
Авторство
О чём код?
#ifndef SEGMENTATIONENGINE_H #define SEGMENTATIONENGINE_H #include <QColor> #include <QImage> #include <QString> class SegmentationEngine { public: static SegmentationEngine &instance(); void setModelPaths(const QString ¶mPath, const QString &binPath); bool isAvailable() const; bool ensureLoaded() const; QImage replaceBackground(const QImage &source, const QColor &color, qreal *backgroundPercent, qint64 *preprocessMs, qint64 *inferenceMs, qint64 *postprocessMs) const; private: SegmentationEngine() = default; QString m_paramPath; QString m_binPath; mutable bool m_loaded = false; }; #endif // SEGMENTATIONENGINE_H