From 8e01cb7623bfb2ef37358181c5ece8010fd1d260 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期三, 27 十一月 2019 09:46:22 +0800 Subject: [PATCH] update --- csdk.cpp | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/csdk.cpp b/csdk.cpp index 02b15d6..9ecfcdb 100644 --- a/csdk.cpp +++ b/csdk.cpp @@ -128,4 +128,18 @@ void c_api_plate_id_cloud_free() { uninit_plate_id_cloud_sdk_detector(); +} + +// its vehicle sdk api +int c_api_init_vehicle_its_detector(int sceneMode, int modelMode, char *keyPath, char *modelPath) { + return init_vehicle_its_detector(sceneMode, modelMode, keyPath, modelPath); +} + +cVehicleITSResult* c_api_vehicle_its_detect(int *plateIDCount, uchar *data, const int w, const int h, const cRECT *rcDetect) { + const cIMAGE img{data, w, h, 3}; + return vehicle_its_detect(plateIDCount, &img, rcDetect); +} + +void c_api_vehicle_its_free() { + uninit_vehicle_its_detector(); } \ No newline at end of file -- Gitblit v1.8.0