阅读量:0
以酒店为例我们需要调用shen份证读取,采集人脸,门锁写房卡,如何通过浏览器调用
1.通过本地http服务
2.通过webkit模式
这里说政务单位模式的集成
由于篇幅问题,怎么集成webkit就不说了
一、webkkit加载交互本地代码
browser.RegisterJsObject("CyberWin_JsAPP", new CyberWin_未来之窗人工智能appV2005());
二、CyberWin_未来之窗人工智能appV2005
是一个类:class
using System; using System.Collections.Generic; using System.Text; using System.Data; using System.Windows.Forms; using CyberWin.CSHARP.YNWLZC.WebFrame.CyberPHP.CyberWinNet.Http; using System.Collections.Specialized; using FastReport; using FastReport.Export.Pdf; using System.IO; using System.Runtime.InteropServices; using System.Threading; using Spire.Xls; using System.Drawing.Printing; using System.Drawing; using System.Media; using System.Speech.Synthesis; using System.Security.Cryptography; using Tesseract; using System.Net; namespace CyberWin.未来之窗人工智能 { public class CyberWin_未来之窗人工智能appV2005 {
三、万能交互app
/// public string run(string app_name,string action,string param,string password="") { CyberWin.CSHARP.YNWLZC.WebFrame.CyberPHP.CyberWinApp.Cls_CyberWinApp app; string app_root =""; app = new Cls_CyberWinApp(app_root); app.CyberWinCaheBuild = true; if (password.Length > 5) { } NameValueCollection ht = new NameValueCollection(); ht.Add("param", param); object o = app.Cyber_CallApp(app_name, action, ht); return o.ToString(); }
四、网页调用
CyberWin_JsAPP.run('app插件名称','参数');