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 hashes)
Built Distribution
Close
Hashes for docdetect1-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1bde2868548c8a681cae3721cf272206d583d4dad3886bf959d735ac7a89e4bc |
|
MD5 | 985e675e140d6e2cedf1c08f92278a6e |
|
BLAKE2b-256 | 71eb7f26ca02004e3c42add0054df12596ba2805409c51000eb75eb503009ed8 |