Giter Site home page Giter Site logo

check_acid_test's Introduction

说明

从2022年3月开始,奥密克戎袭击了上海。大学老师的工作负担也直线上升,其中有一项工作是收集所有学生的核酸检查结果,手工统计非常耗费精力。白天要尽力服务学院几百位学生,晚上还学处理这些耗费精力的事情。

老师们的身体渐渐吃不消。

作为一名老师家属,当得知还有这种统计工作,首先想到的是为什么随申办(从2022年04月09日起健康云切换为随申办核酸码)的开发者,不开发这样的功能?竟让广大基层工作者浪费如此大量的人力物力去做统计工作。 真的希望负责研发随申办的人员能主动听一听基层人员的建议或苦衷。那才是社会不断创新、进步的源泉。

但是,我的力量有限,只能“将计就计”,那就利用现有paddleocr的中文识别技术去识别所有同学的截图来一定程度的自动化统计。

希望这个简单的程序能缓解基层工作人员的压力。更期待随申办开发者能主动收集建议,而不是闭门造车。

运行时间:~2.5s/picture

程序不可避免存在bug,且程序也仅仅是为了尽快解决问题,肯定有考虑欠妥的地方,欢迎评论。

运行程序,需要最基本的编程基础知识。我尝试过转化可单独在windows上运行的exe文件,但是失败了,因此无法提供便捷运行的方式了。如果有知晓如何转换的,请提交代码,共同为社会贡献自己的力量。

所解析的随申办截图截图格式见文末。

我也用qpt模块生成了可以在windows直接双击运行的exe文件,下载方式:

百度网盘:

链接:https://pan.baidu.com/s/1Ux5lm--sUYL2D3sFMJ5pFw 提取码:8888

腾讯微云:

链接:https://share.weiyun.com/PZSEjQks 密码:888888

安装

git clone https://github.com/dahaiyidi/check_acid_test.git
cd check_acid_test
conda create -name ocr
conda activate ocr
conda install python==3.8
pip install -r requirements.txt

数据准备

  • 放置所有的照片在images文件夹中,如:

img.png

  • 放置学生信息统计表name_list.xlsx,如

img.png

文件中也可以不包含证件号码信息,此时则无法处理重名的情况,需手工查验的需求增加

img.png

  • 在check_acid_test 目录中运行命令
python main_ssb.py

你也可以指定图片文件夹和name_list.xlsx位置

python main_ssb.py --names C:\check_acid_test\backup\name_list.xlsx --images C:\check_acid_test\backup\images

得到结果:

随申办结果:img.png

  • 同一目录下,会多出一个name_list_{当前时间}.xlsx的文件

在该文件的overview sheet中,会多出4列,test列记录了学生是否已经做核酸(1是做了核酸),img列记录了与该学生匹配的图片名字,其他3列根据列名即可知晓含义。

随申办结果:img.png

在img_detection_res sheet中,存储了图片检测结果, matching列,1代表了与输入的name_list.xlsx名单信息能匹配上。

随申办结果:img.png

在warning sheet中的3列分别记录了:需要提醒做核酸的同学名单,检测失败的图片名单(需要手工查验),检测成功但是与名单不符合的图片名单(需要手工查验)。

随申办结果:img.png

所解析的随申办截图格式

img.png

check_acid_test's People

Contributors

evaevazzz avatar

Stargazers

Wen Zhao (Joan) avatar  avatar SogoodIT avatar 公子恒 avatar  avatar Chase Choi avatar 扶桑 avatar Bingkun Sun avatar

Watchers

扶桑 avatar dahaiyidi 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.