如题
我要搭建基于网页的工作流,希望在影刀可以网页的图片,进而点击。
但是在鼠标键盘-点击图像的功能中,添加图像元素,在网页上截图,然后点击校验图像,出现了【校验图像发生异常】
实际运行这段程序时,出现了以下报错:
——————
Traceback (most recent call last):
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/xbot_interpreter.py", line 94, in <module>
main()
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/xbot_interpreter.py", line 56, in main
try:
File "/Users/user/Library/Application Support/Shadowbot/users/675759808597438500/apps/b72e6e05-ccae-4a7c-bc17-52c1995a3e0c/xbot_robot/main.py", line 11, in main
xbot_visual.image.click(window_kind="screen", window=None, template_images=[package.image_selector("图像5")], anchor_type="center", sudoku_part="MiddleCenter", offset_x="0", offset_y="0", clicks="click", button="left", keys="null", move_mouse=True, timeout="5", delay_after="1", _block=("main", 2, "点击图像"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 112, in click
File "<string>", line 349, in click
File "<string>", line 340, in click
File "<string>", line 570, in _invoke
File "<string>", line 115, in execute
File "<string>", line 88, in execute
xbot.errors.UIAError: Message:The type initializer for 'Emgu.CV.CvInvoke' threw an exception.,NativeMessage:The type initializer for 'Emgu.CV.CvInvoke' threw an exception.
Code:-1,StackTrace:
at Emgu.CV.Image`2..ctor(String fileName)
at xDxuJu2lx6gHXE7bM4u.XGWEJY2x2CHLMqVTfFN.jj82CoOX0m(Rectangle , fBoMMerID2dImjWQpED , Rectangle& )
at xDxuJu2lx6gHXE7bM4u.XGWEJY2x2CHLMqVTfFN.Uwo2AwcexG(Rectangle , fBoMMerID2dImjWQpED[] , Boolean )+MoveNext()
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Func`2 predicate, Boolean& found)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at xDxuJu2lx6gHXE7bM4u.XGWEJY2x2CHLMqVTfFN.jae24vpP8h(Rectangle , fBoMMerID2dImjWQpED[] , Boolean )
at lambda_method40(Closure , LFFe7gHkNBvc5Ml7DQb , Object[] )
at iZxQSSHwYbFvJV0aFdr.QlQFkIHZd25gkwGf2X9.<>c__DisplayClass9_0.rcgBGWtQyr(LFFe7gHkNBvc5Ml7DQb service, Object[] parameters)
at iZxQSSHwYbFvJV0aFdr.QlQFkIHZd25gkwGf2X9.wJvHp6EqhS(LFFe7gHkNBvc5Ml7DQb , rLcv6uIN9DKtxX9lW8F )
at AfrVdNHG21IKVkte5Gw.BDa15mHDZoa4rDQkA2h.aS9HHBCOpW(LFFe7gHkNBvc5Ml7DQb , pgpxCiI4RphfyolKq0Z )
at xdOF6tNq6CwlIJCeGnf.CAjOWmNkTyFi49cjEeG.wCaNgxVnja(pgpxCiI4RphfyolKq0Z )


——之前是用谷歌浏览器,后来切换到影刀浏览器,问题依旧
——影刀卸载重装后,问题依旧