image utils
Project description
已经有了一个imutils库,但是这个imutils也不能完全满足我的需求,所以就整了一个imutils2
安装
pip install imutils2
# or install with opencv
pip install imutils2[opencv]
常用函数
- imread 读取或转化图像为opencv格式
- pil2cv Pillow转Opencv格式
- cv2pil Opencv转Pillow格式
- cv2gray Opencv转成灰度图
- url_to_image 下载URL为图像
- show_image 查看图像兼容jupyter, requires matplotlib
- merge_app_screenshots App下滑长截图拼接
from imutils2 import *
im1 = imread("m1.jpg")
im2 = imread("m2.jpg")
im3 = imread("m3.jpg")
output = merge_app_screenshots([im1, im2, im3])
show_image(output)
写的不一定全,更多的例子可以去tests/test_imutils2.py中查看
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
imutils2-0.3.5.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file imutils2-0.3.5.tar.gz
.
File metadata
- Download URL: imutils2-0.3.5.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6f063a67e8a73fccff256e229a2e5ed86196e9138e8a6c9ebd16e4ab2ae0ac5 |
|
MD5 | fb98c434b91b67124ab94abfe6aab885 |
|
BLAKE2b-256 | fb803ad5251747bbabd5af159eec890b847ffaba4c735d49a129660022ef8dd6 |
File details
Details for the file imutils2-0.3.5-py3-none-any.whl
.
File metadata
- Download URL: imutils2-0.3.5-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0bfd644ddc10bba4a766b66b1a34f545f43e373ebb9f27040aa84c268af7024 |
|
MD5 | 0c3e533a6720dd78acb6ec7779b2bff6 |
|
BLAKE2b-256 | ddbbf0522b57393b9a93b84c447b472db052ffe8fc8cdd947c17027c89657b1a |