Giter VIP home page Giter VIP logo

camscanner-in-python's Introduction

CamScanner-In-Python

Build your own document scanner with OpenCV Python

Video DEMO and TUTORIAL : https://www.youtube.com/watch?v=PV0uxIfy_-A

What is this ?

The script takes an image as input and then scans the document from the image by applying few image processing techniques and gives the output image with scanned effect

How does it do this?

Initially we need to resize the images so OpenCV can handle it and then the following functions are applied

  1. Guassian Blur to smoothen image.
  2. Canny Edges to detect the edges.
  3. Find contours and boundary of the page
  4. Map the end points of contours to 800 * 800 window
  5. Apply perspective trasform to get scanned or bird eye view of the image.

This is shit, why did you build this?

I was BORED :/

Installation

pip install opencv-python

Credits

  1. Guassian Blur : https://docs.opencv.org/3.1.0/d4/d13/tutorial_py_filtering.html
  2. SO article on guassian Blur https://computergraphics.stackexchange.com/questions/39/how-is-gaussian-blur-implemented
  3. Vipul Sharma Github : https://github.com/vipul-sharma20/document-scanner
  4. Canny Edge Deetction https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_canny/py_canny.html 5)Contours Documentation : https://docs.opencv.org/3.1.0/d4/d73/tutorial_py_contours_begin.html
  5. ArcLength Documentation: https://docs.opencv.org/3.1.0/dd/d49/tutorial_py_contour_features.html
  6. Perspective Transform Pyimage Search Tutorial https://www.pyimagesearch.com/2014/08/25/4-point-opencv-getperspective-transform-example/

camscanner-in-python's People

Contributors

adityapai2398 avatar falcon027 avatar kj5699 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.