Skip to main content

image utils

Project description

PyPI version codecov

已经有了一个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


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.3.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imutils2-0.3.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file imutils2-0.3.3.tar.gz.

File metadata

  • Download URL: imutils2-0.3.3.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

Hashes for imutils2-0.3.3.tar.gz
Algorithm Hash digest
SHA256 dbe7fd746edbb17697f488a18cc4f35dbba9da6cce709e3e495dff8ae3b2cf64
MD5 6c0b0bd22080abd0243fb9a854b586cf
BLAKE2b-256 cb032d59f5572bea21272eee8e280dcfc0653d4eb287ddfd7edcfbfe5a6cb24e

See more details on using hashes here.

File details

Details for the file imutils2-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: imutils2-0.3.3-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

Hashes for imutils2-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 55b157c754d511388014f6b029d99d5dcb8be598628653280a2ad2a2380346f3
MD5 f0071412a9cc46e4c6c7e90b43b60199
BLAKE2b-256 8ac294098d2b54fdb14f3b4c3278ffb57b55ddd2b42f84ffe7b99a9a2dcd7a00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page