docdetect1-1.0.1
توضیحات
Real-time detection of documents in images.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | docdetect1-1.0.1 |
| نام | docdetect1 |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | haotran |
| ایمیل نویسنده | hao.cse@gmail.com |
| آدرس صفحه اصلی | https://github.com/haocse/docdetect-1 |
| آدرس اینترنتی | https://pypi.org/project/docdetect1/ |
| مجوز | MIT |
# docdetect
[](https://travis-ci.org/alessandrozamberletti/docdetect)
[](https://ci.appveyor.com/project/alessandrozamberletti/docdetect/branch/master)
[](https://codecov.io/gh/alessandrozamberletti/docdetect)
[](https://codeclimate.com/github/alessandrozamberletti/docdetect/maintainability)
[](https://badge.fury.io/py/docdetect)
<p align="center">
<img src="./res/01.gif" alt="sample_01"/>
<img src="./res/02.gif" alt="sample_02"/>
<img src="./res/03.gif" alt="sample_03"/>
</p>
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`:
```bash
$ pip install --upgrade docdetect1
```
or
```bash
$ easy_install --upgrade docdetect1
```
# Instructions
TBD
# Examples
Process an ```image```:
```python
import docdetect
rects = docdetect.process(image)
image = docdetect.draw(rects, image)
```
Process a ```video```:
```python
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
* [Fast and Accurate Document Detection for Scanning](https://blogs.dropbox.com/tech/2016/08/fast-and-accurate-document-detection-for-scanning/)
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
| - | opencv-python |
نحوه نصب
نصب پکیج whl docdetect1-1.0.1:
pip install docdetect1-1.0.1.whl
نصب پکیج tar.gz docdetect1-1.0.1:
pip install docdetect1-1.0.1.tar.gz