dl_api.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef _ASJDL_H_
  2. #define _ASJDL_H_
  3. #ifdef __cplusplus
  4. extern "C"
  5. {
  6. #endif
  7. #define SAMPLE_OBJ_NAME_MAX_LEN 20
  8. typedef struct _sampleRunJoint_RECT_S
  9. {
  10. float x;
  11. float y;
  12. float w;
  13. float h;
  14. } sampleRunJoint_RECT_S;
  15. typedef struct _sampleRunJoint_POINT_S
  16. {
  17. float x;
  18. float y;
  19. float score;
  20. } sampleRunJoint_POINT_S;
  21. typedef struct _sampleRunJoint_MAT_S
  22. {
  23. int w, h, c, s;
  24. unsigned char *data;
  25. } sampleRunJoint_MAT_S;
  26. typedef struct _sampleRunJoint_OBJECT_ITEM_S
  27. {
  28. unsigned int labelId;
  29. char labelName[20];
  30. sampleRunJoint_RECT_S stRect;
  31. unsigned int nLandmark;
  32. sampleRunJoint_POINT_S *landmark;
  33. sampleRunJoint_MAT_S mMask; // cv::Mat
  34. float prob;
  35. } sampleRunJoint_OBJECT_ITEM_S;
  36. typedef struct _sampleRunJoint_RESULT_S
  37. {
  38. unsigned int nObjectSize;
  39. unsigned int nWidth;
  40. unsigned int nHeight;
  41. int bHasMask;
  42. int bHasLandmark;
  43. sampleRunJoint_OBJECT_ITEM_S *pstObjectItems;
  44. } sampleRunJoint_RESULT_S;
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48. #endif