/// <summary> /// 注册截屏插件 /// </summary> /// <param name="timeHandler"></param> public static void OrcRegister(OcrTimerHandler timeHandler, ScreenConfig config = null) { _screenTimerPlugins = new ScreenTimerPlugins(config); _screenTimerPlugins.OnTimerHandler += timeHandler; _screenTimerPlugins.Start(); }
/// <summary> /// 获取Ocr 内容 /// </summary> /// <param name="config"></param> /// <returns></returns> public static decimal GetOcrMoney(ScreenConfig config, out Bitmap bitmap) { if (_screenTimerPlugins == null) { _screenTimerPlugins = new ScreenTimerPlugins(config); } _screenTimerPlugins.InitConifg(config); return(_screenTimerPlugins.GetOcrMoney(config, out bitmap)); }