inferResult.h 392 B

1234567891011121314151617181920212223242526272829
  1. #ifndef INFER_RESULT_H
  2. #define INFER_RESULT_H
  3. #include <string>
  4. typedef struct
  5. {
  6. int left;
  7. int top;
  8. int right;
  9. int bottom;
  10. } image_rect_t;
  11. typedef struct
  12. {
  13. image_rect_t box;
  14. float prop;
  15. int cls_id;
  16. } object_detect_result;
  17. typedef struct
  18. {
  19. int id;
  20. int count;
  21. object_detect_result results[128];
  22. } object_detect_result_list;
  23. #endif // INFER_RESULT_H