1 Star 7 Fork 3

陕西颜值扛把子 / OCR-CopyText-And-Search

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

截图OCR识别后搜索题目获取答案

适用于一些单位组织的那种在专门的APP上答题,但是又有题库的开卷考试,方便搜索答案😂😂😂

基于PaddleOCR开发

使用说明

  • 1.使用python main.py运行脚本,按提示操作。

  • 2.如果识别区域不对,请修改题目位置,修改位置在代码main.py第66行,按照提示的信息修改相应坐标数据,坐标原点(0,0)点为图片左上角。

        # 切割问题区域
        # (起始点的横坐标,起始点的纵坐标,宽度,高度)
        question  = img.crop((10, 400, 1060, 1000))

截图

运行示例


自动搜索

运行依赖

pip install "paddleocr>=2.0.1" # 推荐使用2.0.1+版本
  • 安装 PaddlePaddle(注意此版本为CPU版本,如需GPU版本请查看PaddlePaddle文档)
python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple

安装完成后您可以使用 python 进入python解释器,输入import paddle ,再输入 paddle.utils.run_check()

如果出现PaddlePaddle is installed successfully!,说明您已成功安装。

  • 安装 pyperclip 模块,负责操作剪切板
pip install pyperclip
  • 安装 pyautogui 模块,操作鼠标键盘
pip install pyautogui
MIT License Copyright (c) 2021 陕西颜值扛把子 or 史上最帅社会主义接班人 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

适用于一些单位组织的那种在专门的APP上答题,但是又有题库的开卷考试,方便搜索答案😂😂😂 基于PaddleOCR开发 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/puzhiweizuishuai/OCR-CopyText-And-Search.git
git@gitee.com:puzhiweizuishuai/OCR-CopyText-And-Search.git
puzhiweizuishuai
OCR-CopyText-And-Search
OCR-CopyText-And-Search
main

搜索帮助