Download cpp/retinaface.h from ElectronBotCli/retinaface_rknn: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/ElectronBotCli/retinaface_rknn/resolve/main/cpp/retinaface.h
- Command line
-
hf download hf://ElectronBotCli/retinaface_rknn/cpp/retinaface.h
-
curl -L -o retinaface.h https://huggingface.co/ElectronBotCli/retinaface_rknn/resolve/main/cpp/retinaface.h
1.19 kB
| typedef struct { | |
| rknn_context rknn_ctx; | |
| rknn_input_output_num io_num; | |
| rknn_tensor_attr *input_attrs; | |
| rknn_tensor_attr *output_attrs; | |
| int model_channel; | |
| int model_width; | |
| int model_height; | |
| } rknn_app_context_t; | |
| typedef struct box_rect_t { | |
| int left; ///< Most left coordinate | |
| int top; ///< Most top coordinate | |
| int right; ///< Most right coordinate | |
| int bottom; ///< Most bottom coordinate | |
| } box_rect_t; | |
| typedef struct ponit_t { | |
| int x; | |
| int y; | |
| } ponit_t; | |
| typedef struct retinaface_object_t { | |
| int cls; | |
| box_rect_t box; | |
| float score; | |
| ponit_t ponit[5]; | |
| } retinaface_object_t; | |
| typedef struct { | |
| int count; | |
| retinaface_object_t object[128]; | |
| } retinaface_result; | |
| int init_retinaface_model(const char *model_path, rknn_app_context_t *app_ctx); | |
| int release_retinaface_model(rknn_app_context_t *app_ctx); | |
| int inference_retinaface_model(rknn_app_context_t *app_ctx, image_buffer_t *img, retinaface_result *out_result); | |