Coder Social home page Coder Social logo

hostpital-test-ocr's Introduction

化验单检查项目相应结果识别

代码参考

  • 运行:

    1. 进行识别时运行python labReport.py
    2. findLine.py 用于定位直线,不过这个方法效果不好,后期被放弃
    3. imageResize.py 用于改变图片尺寸,从opencv的方法里移植过来的,做了点小改变
    4. scanDouble.py 平时用来调试的文件,不用理
    5. transform.py 用于一张图片的四点定位,将化验单从照片中裁剪出来
    6. labReportBackup.py 用于备份代码
  • 要求:

    1. 这张照片要横屏拍照,化验单正对,手机头部向左
    2. 保证化验单四个角都在照片内
    3. 照片要和背景对比明显一点好
    4. 基于python2.7
  • 识别过程:

    1. 得到一张符合图像的照片,经过处理,得到一张裁剪出来的化验单
    2. 分析化验单图片,定位每个数据的像素框,分别裁剪出来
    3. 通过tesseract来进行识别
  • 后期处理:

    1. 第一位有可能识别出非法字符,我直接舍弃
    2. 有可能把小数点.识别出上引号’,还有就是多识别出空格,我先把全部非数字转化为小数点,然后删除多余小数点
    3. 第一位0可能识别为o或者O,加个条件判断,转化过来

hostpital-test-ocr's People

Contributors

shinezzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.