Real-time detection of documents in images.
Project description
docdetect
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
Release history Release notifications | RSS feed
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.0.tar.gz
(4.5 kB
view details)
Built Distribution
File details
Details for the file docdetect1-1.0.0.tar.gz
.
File metadata
- Download URL: docdetect1-1.0.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 767a73e953cf1c61c0426581c7e2374033ee4c6e104bb5ce1a41ce693cb55e11 |
|
MD5 | ed0b990b23bdbd7de5be83503ba65cda |
|
BLAKE2b-256 | 6a70385ca9629d5427a9f868afd11e824dbb79c4fa4b6664cf529e8fde632ee4 |
File details
Details for the file docdetect1-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: docdetect1-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bde2868548c8a681cae3721cf272206d583d4dad3886bf959d735ac7a89e4bc |
|
MD5 | 985e675e140d6e2cedf1c08f92278a6e |
|
BLAKE2b-256 | 71eb7f26ca02004e3c42add0054df12596ba2805409c51000eb75eb503009ed8 |