优化后版本 暂时保存

This commit is contained in:
2025-06-15 03:06:01 +08:00
parent 64b8257511
commit 15017e3a63
34 changed files with 531 additions and 384 deletions
+2 -2
View File
@@ -1,18 +1,18 @@
#include "interface.h"
#include <iostream>
#include <detProcess.hpp>
#include <generalJsonParsing.hpp>
#include <opencv2/core/utils/logger.hpp>
class Backend : public IBackend {
public:
//appCore _core;
void test() override { std::cout << "Hello from Backend!" << std::endl; }
void init(qtFuncBridge* bridgeIn) override {
void init(qtFuncBridge* bridgeIn, nlohmann::json& json) override {
if (initOnce == false) {
cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_ERROR);
_detProcess = new detProcess();
}
nlohmann::json json = readJsonFromPath("./config/backend.json");
bridge = bridgeIn;
emit bridge->loadingWindow_appendLog(u8"核心加载成功,正在初始化",QColor("white"));
_detProcess->initConfig(json, bridgeIn);