From 752223f279965b562e3d086b78f01efb55925ae4 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期三, 30 四月 2025 16:32:23 +0800
Subject: [PATCH] 11

---
 project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/FaceAI/FaceManager.cs |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/FaceAI/FaceManager.cs" b/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/FaceAI/FaceManager.cs
similarity index 89%
copy from "\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/FaceAI/FaceManager.cs"
copy to project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/FaceAI/FaceManager.cs
index e01b594..2ec8018 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/FaceAI/FaceManager.cs"
+++ b/project/WCS/WIDESEAWCS_Server/WIDESEAWCS_Common/FaceAI/FaceManager.cs
@@ -1,6 +1,6 @@
-锘縰sing System;
+锘縰sing OpenCvSharp;
+using System;
 using System.Runtime.InteropServices;
-using OpenCvSharp;
 /**
  *  澶囨敞锛堜汉鑴告暟鎹簱绠$悊璇存槑锛夛細
  *  浜鸿劯鏁版嵁搴撲负閲囩敤sqlite3鐨勬暟鎹簱锛屼細鑷姩鐢熸垚涓�涓猟b鐩綍澶癸紝涓嬮潰鏈夋暟鎹簱face.db鏂囦欢淇濆瓨鏁版嵁搴�
@@ -20,56 +20,56 @@
         // 浜鸿劯娉ㄥ唽(浼犵壒寰佸��,鐗瑰緛鍊煎彲鍙傝�僃aceFeature.cs鎻愬彇锛屼害鍙弬鑰僃aceCompare.cs鏌ョ湅鐗瑰緛鍊肩殑姣斿)
         [DllImport("BaiduFaceApi.dll", EntryPoint = "user_add", CharSet = CharSet.Ansi
             , CallingConvention = CallingConvention.Cdecl)]
-        private static extern IntPtr user_add(ref BDFaceFeature f1, string user_id, string group_id, 
+        public static extern IntPtr user_add(ref BDFaceFeature f1, string user_id, string group_id, 
             string user_info="");
 
         // 浜鸿劯娉ㄥ唽(浼爋pencv鍥剧墖甯�,鐗瑰緛鍊煎彲鍙傝�僃aceFeature.cs鎻愬彇锛屼害鍙弬鑰僃aceCompare.cs鏌ョ湅鐗瑰緛鍊肩殑姣斿)
         [DllImport("BaiduFaceApi.dll", EntryPoint = "user_add_by_mat", CharSet = CharSet.Ansi
             , CallingConvention = CallingConvention.Cdecl)]
-        private static extern IntPtr user_add_by_mat(IntPtr mat, string user_id, string group_id,
+        public static extern IntPtr user_add_by_mat(IntPtr mat, string user_id, string group_id,
             string user_info = "");
 
         // 浜鸿劯鏇存柊(浼犲浘鐗囧抚)
         [DllImport("BaiduFaceApi.dll", EntryPoint = "user_update", CharSet = CharSet.Ansi
             , CallingConvention = CallingConvention.Cdecl)]
-        private static extern IntPtr user_update(IntPtr mat, string user_id, string group_id,
+        public static extern IntPtr user_update(IntPtr mat, string user_id, string group_id,
             string user_info = "");
       
         // 鐢ㄦ埛鍒犻櫎
         [DllImport("BaiduFaceApi.dll", EntryPoint = "user_delete", CharSet = CharSet.Ansi
            , CallingConvention = CallingConvention.Cdecl)]
-        private static extern IntPtr user_delete(string user_id, string group_id);
+        public static extern IntPtr user_delete(string user_id, string group_id);
         // 缁勬坊鍔�
         [DllImport("BaiduFaceApi.dll", EntryPoint = "group_add", CharSet = CharSet.Ansi
            , CallingConvention = CallingConvention.Cdecl)]
-        private static extern IntPtr group_add(string group_id);
+        public static extern IntPtr group_add(string group_id);
         // 缁勫垹闄�
         [DllImport("BaiduFaceApi.dll", EntryPoint = "group_delete", CharSet = CharSet.Ansi
            , CallingConvention = CallingConvention.Cdecl)]
-        private static extern IntPtr group_delete(string group_id);
+        public static extern IntPtr group_delete(string group_id);
         // 鏌ヨ鐢ㄦ埛淇℃伅
         [DllImport("BaiduFaceApi.dll", EntryPoint = "get_user_info", CharSet = CharSet.Ansi
            , CallingConvention = CallingConvention.Cdecl)]
-        private static extern IntPtr get_user_info(string user_id, string group_id);
+        public static extern IntPtr get_user_info(string user_id, string group_id);
 
         // 鏌ヨ鐢ㄦ埛鍥剧墖
         [DllImport("BaiduFaceApi.dll", EntryPoint = "get_user_image", CharSet = CharSet.Ansi
            , CallingConvention = CallingConvention.Cdecl)]
-        private static extern int get_user_image(IntPtr out_mat, string user_id, string group_id);
+        public static extern int get_user_image(IntPtr out_mat, string user_id, string group_id);
 
         // 鐢ㄦ埛缁勫垪琛ㄦ煡璇�
         [DllImport("BaiduFaceApi.dll", EntryPoint = "get_user_list", CharSet = CharSet.Ansi
            , CallingConvention = CallingConvention.Cdecl)]
-        private static extern IntPtr get_user_list(string group_id, int start = 0, int length = 100);
+        public static extern IntPtr get_user_list(string group_id, int start = 0, int length = 100);
         // 缁勫垪琛ㄦ煡璇�
         [DllImport("BaiduFaceApi.dll", EntryPoint = "get_group_list", CharSet = CharSet.Ansi
            , CallingConvention = CallingConvention.Cdecl)]
-        private static extern IntPtr get_group_list(int start = 0, int length = 100);
+        public static extern IntPtr get_group_list(int start = 0, int length = 100);
 
         // 鏁版嵁搴撲汉鑴告暟閲忔煡璇�
         [DllImport("BaiduFaceApi.dll", EntryPoint = "db_face_count", CharSet = CharSet.Ansi
            , CallingConvention = CallingConvention.Cdecl)]
-        private static extern int db_face_count(string group_id);
+        public static extern int db_face_count(string group_id);
 
 
         // 娴嬭瘯浜鸿劯娉ㄥ唽

--
Gitblit v1.9.3