# Opencv_找茬插件 **Repository Path**: yunyuehuang/fault-finding-plug-in ## Basic Information - **Project Name**: Opencv_找茬插件 - **Description**: 一个玩找茬游戏的插件。使用opencv图片处理技术,快速完成找茬任务。 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-01-13 - **Last Updated**: 2025-02-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: OpenCV ## README ## 介绍 一个玩找茬游戏的插件。 ## 基本原理 对游戏界面截图,提取出图中两个图片区域内的图片进行diff对比,并绘制出位置。
python自动化程序自动点击选择。 视频预览 ## 环境依赖 运行环境python3.6 opencv 教程 https://codec.wang/docs/opencv/basic/template-matching#%E5%B0%8F%E7%BB%93 依赖安装 pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn 更新依赖 pip install -U pywin32 -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pypi.tuna.tsinghua.edu.cn 导出依赖 pip freeze > requirements.txt 添加子模块 运行 git submodule add https://gitee.com/yunyuehuang/py_base.git py_base,会自动生成.gitmodules文件 打包成exe程序 pip install pyinstaller pyinstaller --onefile main.py --onefile 参数会将所有依赖项打包成一个单独的 .exe 文件。 如果你不需要打包成一个文件,可以省略 --onefile 参数,这样会生成一个包含多个文件的目录。 pyinstaller --noconsole --add-data 'asset/;asset/' --add-data 'output/;output/' --add-data 'setting.json/;.' main.py