ansjer_ai_cfg.h 683 B

12345678910111213141516171819202122232425262728293031323334
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. #include <string.h>
  6. #include <vector>
  7. #include "tiny_json.h"
  8. #pragma once
  9. typedef struct ClassAttrsAll {
  10. float conf_thresh;
  11. float iou_thresh;
  12. }ClassAttrsAll_t;
  13. typedef struct Property {
  14. char ezbStr[128];
  15. char binStr[128];
  16. unsigned int anchors[18] ;
  17. std::vector<std::string> label;
  18. std::vector<std::string> yolo_outputs_name;
  19. bool need_nu_freq;
  20. int freq_nu;
  21. bool need_vu_freq;
  22. int freq_vu;
  23. }Property_t;
  24. typedef struct Asj_Ai_Cfg {
  25. Property property;
  26. ClassAttrsAll class_attrs_all;
  27. }Asj_Ai_Cfg_t;
  28. int read_Asj_Ai_Json (void *hdl,char *filename);