Coder Social home page Coder Social logo

enjoyxu / natocr Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 0.0 786 KB

本人所在的大学的学生正在周期性做核酸,奈何学校信息系统不完善,需要每轮核酸周期结束后搜集同学们的核酸检测报告结果,并判断是否在本轮内做过核酸。我应辅导员请求,利用了百度的paddleOCR项目开发了自动识别检测的代码,仅供大家参考

Python 99.69% Batchfile 0.31%

natocr's Introduction

natOCR

本人所在的大学的学生正在周期性做核酸,奈何学校信息系统不完善,需要每轮核酸周期结束后搜集同学们的核酸检测报告结果,并判断是否在本轮内做过核酸。我应辅导员请求,利用了百度的paddleOCR项目开发了自动识别检测的代码,仅供大家参考。

用途:OCR核酸报告结果,并查询是否在一轮核酸检测周期内做过核酸,读取姓名-学号对应表,生成相应统计表格。

1.安装环境

1.1创建虚拟环境(强烈建议,若不想可直接跳过)

**!!!!!!!!!把工作目录切换到该文件夹!!!!!!!**

复制以下语句到cmd

  1. 有conda
conda -n ocr python=3.7

conda activate ocr
  1. 无conda,使用virtualenv
python -m pip install --upgrade pip

pip install virtualenv
virtualenv venv

.\venv\Scripts\activate.bat

1.2 安装依赖

pip install paddlepaddle==2.2.2 -i https://mirror.baidu.com/pypi/simple

pip install -r requirements.txt

2.使用

将核酸检测截图放入pictures文件夹,把姓名-学号的excel表格(.xlsx)放入该文件夹下,再将.time文件的文件名重命名为本轮核酸开始的时间(默认周期为5天,可在ocr.py中修改period参数) ,运行ocr.py文件即可(记得在虚拟环境下运行)

natocr's People

Contributors

enjoyxu avatar

Stargazers

 avatar Biang_wua avatar 公子恒 avatar  avatar  avatar Limin Wang @wlmnzf avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.