python - 是否有这样的库,能把文档/白板照片进行特殊的清晰化处理?
怪我咯
怪我咯 2017-04-17 14:31:40
0
1
345

一直在用微软的 Office Lens 这个应用,能把拍的文档、白板照片进行处理。

拍摄图:

处理后:

我有很多类似的文档照片,希望有一个库能对文档图片进行批量处理,不知道有没有现成的库可以使用的?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
PHPzhong

What you took were JPG, PNG, and IMG pictures. OpenCV is generally used for image processing. There is a corresponding python interface cv2, which is mainly used for image and video processing.

Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print len(dir(cv2))
1018

In fact, I think OpenCV is basically the standard for python image and video processing. I haven’t found a particularly good example, but for image processing, openCV is basically indispensable

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template