Skip to main content

image utils

Project description

PyPI version codecov

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


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)

Uploaded Source

Built Distribution

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

imutils2-0.3.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

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

Hashes for imutils2-0.3.4.tar.gz
Algorithm Hash digest
SHA256 f16aace6c425b84cf86ce90dc7f1427df9f1822b11a41071357da61d514c26c1
MD5 37d531669d9e4505e2f1a5d7725c6bac
BLAKE2b-256 3ed7cec0c46af3c4a8cde4a6792199ef25e547883e0446dc2d926ba40ef4e89f

See more details on using hashes here.

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

Hashes for imutils2-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 64a5d3bc34ca98af55c88f63b57eb3cd0cb9688ff758b59bc18083aa46f3c463
MD5 8b179cb860e72f16402121bf5b39b033
BLAKE2b-256 d92d3206fb4452520839e69696323717fd10ae8637bddcb99a11edaaadde7719

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