Enroll face using Zkteco - c#

I cannot enroll face via C# application. I can enroll directly in the device and I can access the enrolled face using the function GetUserFaceStr. I could do fingerprint enrollment from c# application. But device not responding to face enrollment. I'm using dll from standalone+sdk-6.3.1.37-doc-2.1.0-demo-1.1.15.In the demo application, I cannot find any code for enrolling face. In the SDK changelog.txt file, its mentioned
2017-07-13:
1.StartEnrollEx support face online registration.
But the function StartEnrollEx takes FingerID as a parameter. Any help would be appreciated.
Thanks in advance

Try using StartEnrollEx with FingerIndex = 111 to enroll face.
I sent the same question to ZKteco Technical dept and received that response. I tried it was successful.

Related

I can't upload user face template in device (SpeedFace-V4L)

I am using the ZKteco device (speedFace-V4L) with the ZKFace VX5.8 facial algo.
I want to download and upload the users faces templates, but I can't do it.
If I try to download the face template (from device to software) it works, but the opposite does not work, it downloads all other information without a face template.
I debugged this and found the error code is -103, according to the documentation which means device send back error of face version error
I tested the official demo with this device, and it still doesn't work!
I'm using GetUserFaceStr(int dwMachineNumber, string dwEnrollNumber, int dwFaceIndex, ref string TmpData, ref int TmpLength); function to get user informations and SetUserFaceStr(int dwMachineNumber, string dwEnrollNumber, int dwFaceIndex, string TmpData, int TmpLength) to set it
I forgot to say that the functions are working fine with the MB2000 device.
How can i solve this please.
Device: SpeedFace V4L
Face algo: ZKFace VX5.8
SDK: Standalone SDK-6.3.1.43
Language: C#, WPF
I had the same problem just a few days. We contacted ZKteco support and this the solution:
The Standalone SDK is not fully compatible with ZkTeco Visible Light Series devices and you have to contact ZKteco Sales to request the Push SDK which is in deed a communication protocol Http based so they will give access to the Api.
The ZkTeco new devices have http server like embeded. Also you have to pay for that Push SDK.
But with it you will be able to download user faces and upload user faces to SpeedFace v4L devices via TCP IP.

Connecting to the device via zkemkeeper.dll WITH PASSWORD in C# .net

I have to implement a biometric system. Im using ZKTeco LP600 time attendance device and ZKTeco SDK (ZKemKeeper.dll) here its the situation:
When I try to connect to device with no security password(the one who configure in the device > menu > communication > security > 6 digit Password ) I achieve it without any trouble.
But when I put some password things go wrong...I recive the error -6
Im using: bool isConn= axCZKEM1.Connect_Net(devIP,4370);
This is the answer to my own question if someone need the info in the future. After checking the class dictionary (Which I found in a remote place in the zk page) there's a method call SetCommPassword(int password) which you must set before use the Connect_Net method. Theres many strange things in this dll and im still trying to understand some....

Contents Transfer Not Available Now, Sony A6000

I've got Sony A6000 camera with the latest firmware(3.20) and latest Smart Remote Control application (4.30). I've been trying to write application for transferring images, but faced with issues.
I can't switch camera function to Contents Transfer mode.
Repro steps:
Run Smart Remote Control app on my camera;
Sucesfully connect device to camera via WI-FI;
Discover the camera with parameter ST=urn:schemas-sony-com:service:ScalarWebAPI:1;
Receive response Location http://ip:port/scalarwebapi_dd.xml (instead mentioned in doc http://ip:port/dd.xml);
Parsed scalarwebapi_dd.xml contains guide, accessControl and camera services (instead mentioned in doc camera, system and avContent);
Request with getAvailableApiList method return the following:
getVersions, getMethodTypes, getApplicationInfo, getAvailableApiList, getEvent, startRecMode, stopRecMode.
Successfully run request with "startRecMode" method;
"getAvailableApiList" result doesn't contain "getCameraFunction" and
"setCameraFunction"
"getCameraFunction" return the following result:
{"id":1,"error":[1,"Not Available Now"]}
What I'm doing wrong?
Smart Remote 4.30 should give you the avContent services. I had an older version that had the same guide, accessControl, camera but after I updated it had the avContent service.
You can also try using getEvent to troubleshoot the camera status. This could shed some light into why the services aren't available.

Show IP camera using c# windows forms

i'm developing software to display ip camera "Acti", i tried to use axnvUnifiedControl but i cannot find any information about it.
my goal is to connect to the camera using IP, username, and password and display the camera image in windows form.
i'm using c# .net 4.0
This can be done using the following code snippet:
First you should reference the OCX in your toolbox, and drag it to your form. but i tried to use it in design mode, but the VS is hang and force close.
camMedia.MediaSource = CameraIP;
camMedia.MediaUsername = UserName;
camMedia.MediaPassword = Password;
camMedia.HttpPort = HttpPort;//80
camMedia.RegisterPort = RegisterPort;//6000
camMedia.ControlPort = ControlPort;//6001
camMedia.StreamingPort = StreamingPort;//6002
camMedia.Connect(0);
where the camMedia is the OCX object name.
ACTi has quite a wide range of cameras, and they do not share uniform API. You have to look for documentation for your model of interest and check the vendor's sample code and SDKs. The cameras also have some support for well known protocols, such as RTSP and M-JPEG over HTTP so you can leverage certain libraries to visualize the feed, but again you will need documentation, specification and SDKs to find out the essential information.

How to connect the WiiMote internally in a C# app?

I want to connect a single wiiMote to my app using WiiMoteLib, but I want the connection done internally ie. the user has only to run the app (and should have no need to connect the wiiMote with windows wizard or bluesoleil). The app is in C# and the language cannot be changed.
Thanks!
Does 32feet.NET do the job?
BluetoothAddress addr = ... address from discovery or known address...
var dev = new BluetoothDeviceInfo(addr);
dev.SetServiceState(BluetoothService.HumanInterfaceDevice, true); // this line!
You may also need to handle pairing, perhaps using BluetoothWin32Authentication and handling its callback, see http://32feet.codeplex.com/wikipage?title=Bluetooth%20Security and http://32feet.codeplex.com/wikipage?title=BluetoothWin32Authentication
There is an example of how to do this here using the Microsoft Bluetooth API and the HID API:
http://www.richlynch.com/code/wiipair
It works quire well.
Its in C++, but its pretty easy to convert to C#.

Categories

Resources