GithubHelp home page GithubHelp logo

huangpanwei / image-document-extract-and-correction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fantding/image-document-extract-and-correction

0.0 0.0 0.0 317 KB

数字图像课程大作业,实现图片中文档提取与矫正。整体思路是通过hough变换检测出直线,进而得到角点,最后经过投影变换,进行矫正。整个项目只用到了opencv的IO操作(包括手写卷积,hough哈夫变换,投影变换等等)

Python 100.00%

image-document-extract-and-correction's Introduction

简介

hahaha~~ 很开心又开始做新项目了,是《数字图像分析》大作业。实现文档提取与矫正。 整个项目只用到了opencv的IO操作(包括卷积,生成高斯滤波器等等)

运行

环境

  • pip install opencv-python numpy

run

  • python main.py
  • main.py中可以修改需要提取的文件,结果保存在result文件夹中

技术栈

S&G ?

SG是自己乱起的,包含了两个技术栈:

  • S: Susan角点检测
  • G: Geometic几何校正

H&G !

通过实验发现直接检测角点根本实现不了,图片中角点太多,且不能加入先验进行过滤。遂通过 检测直线,求角点实现

  • H: Hough哈夫变换检测直线,得到角点
  • G: Geometic几何校正

结果

000026.jpg 000026.jpg 000872.jpg 000872.jpg 001402.jpg 001402.jpg 001552.jpg 001552.jpg 001201.jpg 001201.jpg

image-document-extract-and-correction's People

Contributors

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