You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.8 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __IMAGE_MILL_DATA_STRUCTURES_HEADER__
  2. #define __IMAGE_MILL_DATA_STRUCTURES_HEADER__
  3. #include <queue>
  4. #include <opencv2/opencv.hpp>
  5. #include <opencv2/core.hpp>
  6. using namespace cv;
  7. #include "../../lib/components/base/basicFunctionality.h"
  8. typedef struct S_IM_ITEM_DATA{
  9. uint32_t item_id;
  10. char md5[33];
  11. uint8_t process_type;
  12. uint32_t width;
  13. uint32_t height;
  14. uint8_t type;
  15. }IM_ITEM_DATA;
  16. typedef enum E_IM_ITEM_TYPES{
  17. IM_ITEM_TYPE_JPEG = 0,
  18. IM_ITEM_TYPE_PNG = 1,
  19. IM_ITEM_TYPE_GIF = 2,
  20. IM_ITEM_TYPE_AGIF = 3,
  21. IM_ITEM_TYPE_TIFF = 4,
  22. IM_ITEM_TYPE_AVIF = 5
  23. }IM_ITEM_TYPES;
  24. typedef enum E_IM_PROCESS_TYPES{
  25. IM_PROC_TYPE_DNN = 0,
  26. IM_PROC_TYPE_FACE = 1
  27. }IM_PROCESS_TYPES;
  28. typedef struct S_IM_JOB{
  29. uint32_t dbID;
  30. uint8_t job_type;
  31. uint8_t image_type;
  32. uint32_t width;
  33. uint32_t height;
  34. uint32_t depth;
  35. char md5[33];
  36. }IM_JOB;
  37. typedef struct S_IM_CLASS_BOUNDARY_BOX{
  38. uint32_t classID;
  39. float weight;
  40. uint32_t x;
  41. uint32_t y;
  42. uint32_t width;
  43. uint32_t height;
  44. uint32_t depth;
  45. }IM_CLASS_BOUNDARY_BOX;
  46. typedef struct S_IM_RESULT{
  47. IM_JOB * pJOB;
  48. uint32_t nBoxCount;
  49. IM_CLASS_BOUNDARY_BOX * boxes;
  50. }IM_RESULT;
  51. typedef std::queue<IM_JOB *> IM_JOB_QUEUE;
  52. CSTR buildMd5Path( CSTR base, CSTR md5, mode_t mode = 0755, CSTR user=NULL, CSTR group=NULL );
  53. #endif