Skip to main content

Real-time detection of documents in images.

Project description

docdetect

Build Status Build status codecov Maintainability PyPI version

sample_01 sample_02 sample_03

Simple real-time detection of documents in images using Canny Edge Detection, Hough Transform and Depth First Search.

Installation

To install, use pip or easy_install:

$ pip install --upgrade docdetect1

or

$ easy_install --upgrade docdetect1

Instructions

TBD

Examples

Process an image:

import docdetect

rects = docdetect.process(image)
image = docdetect.draw(rects, image)

Process a video:

import cv2
import docdetect1

video = cv2.VideoCapture(video_path)
cv2.startWindowThread()
cv2.namedWindow('output')
while video.isOpened():
    ret, frame = video.read()
    if ret:
        rects = docdetect1.process(frame)
        frame = docdetect1.draw(rects, frame)
        cv2.imshow('output', frame)
        cv2.waitKey(1)
video.release()

Resources

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docdetect1-1.0.1.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

docdetect1-1.0.1-py2.py3-none-any.whl (7.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page