Lightweight image library
Project description
Usage
file to ndarray
>>> from imageworker import file_to_array
>>> data = file_to_array("test.jpg")
url to ndarray
>>> from imageworker import url_to_array
>>> data = url_to_array("https://n.sinaimg.cn/spider2021326/106/w1024h682/20210326/5927-kmvwsvy1040641.jpg")
upload ndarray to qiniu cdn
>>> key = QINIU_KEY
>>> secret = QINIU_SECRET
>>> domain = HOST
>>> bucket = QINIU_BUCKET
>>> url = put_qiniu(data,key,secret,domain,bucket)
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
imageworker-0.1.6.tar.gz
(2.0 kB
view hashes)
Built Distribution
Close
Hashes for imageworker-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d2dc427cdcb91da35aa11759f1c99fcebb3ba602159997cfe37da376e3e95ce |
|
MD5 | 906cb95928a899878e3681d441a53093 |
|
BLAKE2b-256 | cbf99e119bf7d25d127342b7b9819c5962afb0029b1ecf5bbae6c4c3231e29b6 |