Benefits at Work

header_login_header_asset

Libzkfp.dll [new] 【TOP ✦】

int ret = ZKFP_Init(); if (ret != 0) Console.WriteLine("Init failed"); return; int deviceCount = ZKFP_GetDeviceCount(); if (deviceCount == 0) Console.WriteLine("No scanner found"); return; ret = ZKFP_OpenDevice(0); if (ret != 0) Console.WriteLine("Open failed"); return; // Acquire fingerprint byte[] imgBuffer = new byte[100000]; int imgSize = imgBuffer.Length; ret = ZKFP_AcquireFingerprint(0, imgBuffer, ref imgSize); // Extract template byte[] template = new byte[2048]; int tmplSize = template.Length; ret = ZKFP_ExtractFeatures(0, imgBuffer, template, ref tmplSize); Console.WriteLine($"Template extracted, size: tmplSize"); ZKFP_CloseDevice(0);

[DllImport("libzkfp.dll", CallingConvention = CallingConvention.Cdecl)] public static extern int ZKFP_MatchTemplate(int index, byte[] template1, byte[] template2); libzkfp.dll

[DllImport("libzkfp.dll", CallingConvention = CallingConvention.Cdecl)] public static extern int ZKFP_ExtractFeatures(int index, byte[] imageBuffer, byte[] templateBuffer, ref int templateSize); int ret = ZKFP_Init(); if (ret

int ret = ZKFP_Init(); if (ret != 0) Console.WriteLine("Init failed"); return; int deviceCount = ZKFP_GetDeviceCount(); if (deviceCount == 0) Console.WriteLine("No scanner found"); return; ret = ZKFP_OpenDevice(0); if (ret != 0) Console.WriteLine("Open failed"); return; // Acquire fingerprint byte[] imgBuffer = new byte[100000]; int imgSize = imgBuffer.Length; ret = ZKFP_AcquireFingerprint(0, imgBuffer, ref imgSize); // Extract template byte[] template = new byte[2048]; int tmplSize = template.Length; ret = ZKFP_ExtractFeatures(0, imgBuffer, template, ref tmplSize); Console.WriteLine($"Template extracted, size: tmplSize"); ZKFP_CloseDevice(0);

[DllImport("libzkfp.dll", CallingConvention = CallingConvention.Cdecl)] public static extern int ZKFP_MatchTemplate(int index, byte[] template1, byte[] template2);

[DllImport("libzkfp.dll", CallingConvention = CallingConvention.Cdecl)] public static extern int ZKFP_ExtractFeatures(int index, byte[] imageBuffer, byte[] templateBuffer, ref int templateSize);