selenium python 自动滑块检测
思路
爬图片
目标检测:Canny
边缘检测后正交相似匹配定位,求得相对水平距离 distance
。注意根据页面图像元素 clientWidth
,和原图像尺寸做一次尺度缩放。
用 selenium 模拟鼠标运动,copyhttps://github.com/CharlesPikachu/SeleniumLogin。
效果
遇到的问题
本来想直接用 edgedriver 的,但是 edgedriver 启动直接报错,https://stackoverflow.com/questions/72546992/selenium-python-doesnt-work-gpu-process-launch-failed-error-code-2, 但没有找到解决方法。最后用的火狐,正常运行。
标题:selenium python 自动滑块检测
作者:bingoct
地址:https://blog.bingoct.top/articles/2022/10/30/1667135960946.html

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.