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.1.tar.gz
(4.8 kB
view details)
Built Distribution
File details
Details for the file docdetect1-1.0.1.tar.gz
.
File metadata
- Download URL: docdetect1-1.0.1.tar.gz
- Upload date:
- Size: 4.8 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 | 3c4a0f2856afc80be98e6b8cef9dad6f00187d9e2650044c96381cc2360e7f61 |
|
MD5 | e6222aef40597605c7c7de8e09c2bd8f |
|
BLAKE2b-256 | 14033d21199db365a4035a87284f12f295fa33a606407682689a5a1353c708c4 |
File details
Details for the file docdetect1-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: docdetect1-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 7.2 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 | ca6a4e670c05abe8dd0fb441bb5bd5f316cb6ad3cade43ef2d57f10f6e5f2f79 |
|
MD5 | 685ec6f7473050174f0fee0c5ffb6272 |
|
BLAKE2b-256 | 632dc79995e95038cc8f1cbeea15ce0ecf4808375ec148084e597c16d0322d0e |