数日前、開発中のWebシステム用にWISONOR200センサーを購入しました。
エンタープライズに送信された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があるかどうか尋ねましたが、答えられませんでした。
助けてください!
Thnxs!