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.4.tar.gz
(5.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file imutils2-0.3.4.tar.gz.
File metadata
- Download URL: imutils2-0.3.4.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 |
f16aace6c425b84cf86ce90dc7f1427df9f1822b11a41071357da61d514c26c1
|
|
| MD5 |
37d531669d9e4505e2f1a5d7725c6bac
|
|
| BLAKE2b-256 |
3ed7cec0c46af3c4a8cde4a6792199ef25e547883e0446dc2d926ba40ef4e89f
|
File details
Details for the file imutils2-0.3.4-py3-none-any.whl.
File metadata
- Download URL: imutils2-0.3.4-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 |
64a5d3bc34ca98af55c88f63b57eb3cd0cb9688ff758b59bc18083aa46f3c463
|
|
| MD5 |
8b179cb860e72f16402121bf5b39b033
|
|
| BLAKE2b-256 |
d92d3206fb4452520839e69696323717fd10ae8637bddcb99a11edaaadde7719
|