Skip to main content

一个往图片上写汉字的软件包

Project description

这是一个字库软件包

使用方法:

import ziku
import cv2
ziku.size(0.4)
img=cv2.imread("src/ziku/earthmap.png")
img=ziku.write(img,"太阳当空照",x=100,y=100)

ziku.size(0.6)
img=ziku.write(img,"花儿对我笑",x=100,y=200)
cv2.imwrite("ziku.png",img)

ziku.size(0.8)
img=ziku.write(img,"小鸟说 早早早",x=100,y=300)
cv2.imwrite("ziku.png",img)

ziku.size(1)
img=ziku.write(img,"你为什么背上大书包",x=100,y=400)
cv2.imwrite("ziku.png",img)

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

ziku-0.1.2.tar.gz (8.6 MB view hashes)

Uploaded Source

Built Distribution

ziku-0.1.2-py3-none-any.whl (12.7 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page