From 01f10af7d520bd93367f385f91e33849f5d8773e Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期四, 14 十一月 2019 17:27:21 +0800
Subject: [PATCH] fix: plate id sdk add get default config method
---
csdk.cpp | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/csdk.cpp b/csdk.cpp
index 1810569..052fd84 100644
--- a/csdk.cpp
+++ b/csdk.cpp
@@ -32,11 +32,15 @@
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_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(){
@@ -96,4 +100,18 @@
const char* c_api_yolo_obj_name(const int typ){
return yolo_obj_name_by_type(typ);
+}
+
+// plateid api
+int c_api_plate_id_init(const cPlateIDCfg *config, char *soPath) {
+ return init_plate_id_detector(config, soPath);
+}
+
+cPlateIDResult* c_api_plate_id_detect(int *plateIDCount, uchar *data, const int w, const int h) {
+ const cIMAGE img{data, w, h, 3};
+ return plate_id_detect(plateIDCount, &img);
+}
+
+int c_api_plate_id_free() {
+ return uninit_plate_id_detector();
}
\ No newline at end of file
--
Gitblit v1.8.0