![]() Create a thread to retrieve any new fingerprint and handle device eventsĬaptureThread = new Thread( new ThreadStart(DoCapture)) Īcquiring fingerprint is normally handled by calling the AcquireFingerprint method which gets called upon time to time by the thread that we just setup in the previous section. Zkfp2.ByteArray2Int(paramValue, ref mfpHeight) įPBuffer = new byte Zkfp2.ByteArray2Int(paramValue, ref mfpWidth) įpInstance.GetParameters(PARAM_CODE_IMAGE_HEIGHT, paramValue, ref size) Retrieve the fingerprint image width int size = 4 įpInstance.GetParameters(PARAM_CODE_IMAGE_WIDTH, paramValue, ref size) Unable to connect with the device return įor ( int i = 0 i < REGISTER_FINGER_COUNT i++) If (zkfp.ZKFP_ERR_OK != openDeviceCallBackCode) Int openDeviceCallBackCode = fpInstance.OpenDevice(deviceIndex) public void ConnectDevice( int deviceIndex) It is recommended to use the image size parameters provided by the device instead of using a static height and width. The index can be retrieved by calling the GetDeviceCount method from the above section.īesides establishing a connection to the device, you need to initialize a few more things like the fingerprint image height and width with can be obtained by calling the GetParameters method. Connecting to a device requires the index of the device you wish to connect to.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |