几天前,我为我正在开发的网络系统购买了 WISON OR200 传感器。
我使用了企业发送给我的 SDK,并且一直在窗口应用程序中进行测试并且工作正常,但我需要将它用于 Web 应用程序,但我不知道该怎么做。
这是 Windows 窗体应用程序:
WisSensorN WisObj = new WisSensorN(); // instance of wison object
形式的对象:
private System.Windows.Forms.Button Enroll;
private System.Windows.Forms.Button Identify;
private System.Windows.Forms.PictureBox FingerPic;
private System.Windows.Forms.Button Stop;
private System.Windows.Forms.TextBox Status;
Load method() //Open() 指纹需要DataEvent和SetDisplay
private void Form1_Load(object sender, EventArgs e)
{
WisObj.Open();
WisObj.DataEvent += new _IWisSensorNEvents_DataEventEventHandler(WisObj_DataEvent);
WisObj.SetDisplay((int)FingerPic.Handle);
// i can´t do WisObj.SetDisplay((int)FingerPic.Handle) on mvc web app
// because i can't get FingerPic object from view.
}
private void WisObj_DataEvent(WisSensorNLibLib.DATA data, string str)
{
switch (data)
{
case DATA.DATA_ENROLL:
// save the base 64 string of finger image
break;
case DATA.DATA_IDENTIFY_CAPTURE:
//validation
break;
case DATA.DATA_VERIFY_CAPTURE:
break;
}
}
private void Enroll_Click(object sender, EventArgs e)
{
WisObj.StartEnroll(); // it used for save the fingerprint
}
private void Identify_Click(object sender, EventArgs e)
{
WisObj.IdentifyCapture();
// it used to activate the sensor. When i did this on controller action,
// nothing happen. This is because the property setDisplay was not set
}
有什么建议么?我能做些什么?
我向我购买指纹读取器的公司询问是否有用于 Web 应用程序的 SDK,但从未回答。
请帮忙!
谢谢!