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 hashes)
Built Distribution
Close
Hashes for docdetect1-1.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca6a4e670c05abe8dd0fb441bb5bd5f316cb6ad3cade43ef2d57f10f6e5f2f79 |
|
MD5 | 685ec6f7473050174f0fee0c5ffb6272 |
|
BLAKE2b-256 | 632dc79995e95038cc8f1cbeea15ce0ecf4808375ec148084e597c16d0322d0e |