1 #ifndef __TRACK_C_LINK_C_H 2 #define __TRACK_C_LINK_C_H 3 #include "stdio.h" 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 #ifdef __cplusplus 9 extern "C"{ 10 #endif 11 #include <android/log.h> 12 #define LOG_TAG "hpc -- JNILOG" // 这个是自定义的LOG的标识 13 #define LOGI(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG, __VA_ARGS__) 14 15 typedef struct 16 { 17 int x; 18 int y; 19 int width; 20 int height; 21 } 22 Rect_T; 23 24 typedef struct 25 { 26 Rect_T r; 27 int obj_class; 28 float score; 29 int id; 30 int reserve[1]; 31 } 32 object_T; 33 34 long create_tracker(); 35 36 void destroy_tracker(long handle); 37 38 void track(long handle, int maxTrackLifetime, int track_input_num, float * c_track_input_locations, int * c_track_input_class, float * c_track_input_score, 39 int * c_track_output_num, float * c_track_output_locations, int * c_track_output_class, float * c_track_output_score, int * c_track_output_id, 40 int width, int height); 41 #ifdef __cplusplus 42 } 43 #endif 44 #endif