优化后版本 暂时保存
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user