Skip to main content

python cv2 load image from image file, url or base64 code of image

Project description


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编码字符串'

# 加载图片文件
    image = ImageLoad.loadImage(file)
except ImageLoadError as e:

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)

Uploaded source

Built Distribution

cv2imageload-1.0.1-py3-none-any.whl (4.3 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page