image utils
Project description
已经有了一个imutils库,但是这个imutils也不能完全满足我的需求,所以就整了一个imutils2
常用函数
- 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.2.tar.gz
(5.7 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.2.tar.gz.
File metadata
- Download URL: imutils2-0.3.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13a92294a1dd5fa466bb51d18eef0a1d6e122a111e589efe5c862d9964841066
|
|
| MD5 |
bd18a65fb9f41703ebf507e4ddb67481
|
|
| BLAKE2b-256 |
d9e775748093f803ae64e0f05631d80e80211736a94b32f86761d12abae6fa44
|
File details
Details for the file imutils2-0.3.2-py3-none-any.whl.
File metadata
- Download URL: imutils2-0.3.2-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7f2d7af2e6183e12b9b6e23cbe9ad7380597a258777bdc77d73564b02a7fa0b
|
|
| MD5 |
a233c01b6ee676bdbd1b3b4394ce4203
|
|
| BLAKE2b-256 |
ff613df1ac63e020f4848f22e4e5c357b879aad52c74086b9f843baf3c863209
|