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.12.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for imageworker-0.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fec41f7b39a95818bc7c591d308909a8994d2666a07caedf6656e77e8abae5ee |
|
MD5 | 9af744e57a865fd74080fa2f9363071f |
|
BLAKE2b-256 | 534d358658f9ff95d3925ec9cced75e191a4454909e8635cb795b282dcd1626f |