| | |
| | | return init_face_tracker(tm, gi, wid, hei, maxFaces, detinterval, sampleSize, dtors_); |
| | | } |
| | | |
| | | int c_api_face_track_resize(const int chan, const int wid, const int hei){ |
| | | return face->face_track_resize(chan, wid, hei); |
| | | } |
| | | |
| | | YoloHandle c_api_yolo_init( |
| | | const char *fcfg, const char *fweights, const char *fname, |
| | | const int gpu_index){ |
| | | |
| | | return init_yolo_detector(fcfg, fweights, fname, gpu_index, dtors_); |
| | | return init_yolo_detector(fcfg, fweights, fname, gpu_index, dtors_); |
| | | } |
| | | |
| | | void c_api_release(){ |
| | | for(auto &i : dtors_){ |
| | | i(); |
| | | } |
| | | dtors_.clear(); |
| | | } |
| | | |
| | | //////////////////////////////////////////////// |