segMain.cpp 567 B

12345678910111213141516171819202122
  1. //
  2. // Created by zx on 2023/10/7.
  3. //
  4. #include <iostream>
  5. #include "tool/log.hpp"
  6. #include "tool/load_protobuf.hpp"
  7. #include "yolo_seg_mqtt_async.h"
  8. int main(int argc, char * argv[]) {
  9. // 初始化日志系统
  10. ZX::InitGlog(PROJECT_NAME, ETC_PATH PROJECT_NAME "/LogInfo/");
  11. YoloSegmentMqttAsyncClient::iter()->init(ETC_PATH PROJECT_NAME "/mqtt.json");
  12. // 加载看门狗 TODO:添加看门狗,监视线程
  13. LOG(INFO) << "---------- all init complate ----------";
  14. while (true) {
  15. usleep(100 * 1000);
  16. }
  17. return EXIT_SUCCESS;
  18. }