1234567891011121314151617181920212223242526272829303132333435 |
- #include <iostream>
- #include <stdio.h>
- #include <stdlib.h>
- #include <stdio.h>
- #include <string.h>
- #include <vector>
- #include "tiny_json.h"
- #pragma once
- typedef struct ClassAttrsAll {
- float conf_thresh;
- float iou_thresh;
- }ClassAttrsAll_t;
- typedef struct Property {
- std::string model_type;
- char ezbStr[128];
- char binStr[128];
-
- unsigned int anchors[18] ;
- std::vector<std::string> label;
- std::vector<std::string> yolo_outputs_name;
- bool need_nu_freq;
- int freq_nu;
- bool need_vu_freq;
- int freq_vu;
- }Property_t;
- typedef struct Asj_Ai_Cfg {
- Property property;
- ClassAttrsAll class_attrs_all;
- }Asj_Ai_Cfg_t;
- int read_Asj_Ai_Json (void *hdl,char *filename);
|