ansjer_ai_cfg.h 711 B

1234567891011121314151617181920212223242526272829303132333435
  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. std::string model_type;
  15. char ezbStr[128];
  16. char binStr[128];
  17. unsigned int anchors[18] ;
  18. std::vector<std::string> label;
  19. std::vector<std::string> yolo_outputs_name;
  20. bool need_nu_freq;
  21. int freq_nu;
  22. bool need_vu_freq;
  23. int freq_vu;
  24. }Property_t;
  25. typedef struct Asj_Ai_Cfg {
  26. Property property;
  27. ClassAttrsAll class_attrs_all;
  28. }Asj_Ai_Cfg_t;
  29. int read_Asj_Ai_Json (void *hdl,char *filename);