python cv2 load image from image file, url or base64 code of image
Project description
cv2ImageLoad
python cv2通过图片文件、图片url、图片的base64编码加载图片。cv2ImageLoad
安装
pip install cv2imageload
使用
from cv2imageload import ImageLoad, ImageLoadError
file = 'th-108.jpg'
url = 'http://*.com/test.png'
base64_str = '图片的base64编码字符串'
# 加载图片文件
try:
image = ImageLoad.loadImage(file)
except ImageLoadError as e:
print(e.reason)
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
cv2imageload-1.0.1.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for cv2imageload-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35ec8de862fbcabdc482ea3d0dc8a670857e5175867f696c758ac17b7311fd3e |
|
MD5 | 20b79907ed25ad49d47050c2d4039e47 |
|
BLAKE2b-256 | 0179ebeb435bf23515ccefe5a1276c66312cec3dfb1410ed116f48e05626a990 |