selenium python 自动滑块检测 2022-10-30 思路 爬图片 目标检测: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, 但没有找到解决方法。最后用的火狐,正常运行。