hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef _OCCLUSION_DETECTION_H
#define _OCCLUSION_DETECTION_H
 
#ifdef __cplusplus
extern "C" {
#endif
 
typedef struct {
   unsigned short flag;           // 1 有效, 0无效
   unsigned short up_left[2];     // 下采样前左上角坐标,0是y坐标,1是x坐标
   unsigned short down_right[2];  // 下采样前右下角坐标,0是y坐标,1是x坐标
   unsigned short occlusion;      // 1 遮挡, 0没遮挡
} OD_ROI_INFO;
 
typedef void* od_ctx;
 
od_ctx occlusion_detection_init(int width, int height);
int occlusion_detection_deinit(od_ctx ctx);
int occlusion_detection(od_ctx ctx, void *downscale_frame_y, OD_ROI_INFO *p_roi_in, int roi_cnt);
int occlusion_refresh_bg(od_ctx ctx);
int occlusion_set_sensitivity(od_ctx ctx, int value);
int occlusion_detection_enable_switch(od_ctx ctx, int enable, int value);
 
#ifdef __cplusplus
} //extern "C"
#endif
 
#endif // _OCCLUSION_DETECTION_H