pip install simple-dh
from dh import *
img=cv2.imread('testimg.png')
mx,my=img.shape[0],img.shape[1]
mx//=2
my//=2
spin(img,30,2,'result.mp4',col=(255,255,255))
enlarge(img,2,'result2.mp4',(my,mx),col=(255,255,255))
enlarge_spin(img,30,2,'result3.mp4',(my,mx),col=(255,255,255))
translate(img,110,250,2,'result4.mp4',col=(255,255,255))
spin(img,30,2,'result.gif',col=(255,255,255))
enlarge(img,2,'result2.gif',(my,mx),col=(255,255,255))
enlarge_spin(img,30,2,'result3.gif',(my,mx),col=(255,255,255))
translate(img,110,250,2,'result4.gif',col=(255,255,255))
simple_dh
简易动画制作器
需要的库:opencv-python,imageio
目前支持如下动画,详细简介请看注释:
- 旋转
- 放大
- 放大旋转
- 平移
效果:
Simple Animation Maker
Required libraries: opencv-python,imageio
Currently, these types of animation are supported. Please refer to the comments for a detailed introduction:
- Spin
- Enlarge
- Enlarge and spin
- Translate
Effect:
Metadata
Release files for simple-dh 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| simple-dh-1.0.0.tar.gz | 2.3 kB | Without provenance | Details for simple-dh-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| simple_dh-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for simple_dh-1.0.0-py3-none-any.whl |
Total release size: 4.9 kB
Release files / simple-dh-1.0.0.tar.gz
| Download URL | simple-dh-1.0.0.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ce44a14599375a06377a790cbe66d2c0373408f1aca70d82fd75eaf16ca11685
|
|
BLAKE2b-256 checksum How to use checksums |
79100eb6f5894f20419a68324cc1cf447546c7d9d8be357517a6c2904c042254
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.0
|
Release files / simple_dh-1.0.0-py3-none-any.whl
| Download URL | simple_dh-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5b77908a58cb8b4a2a6c2b5985ad8a8ae07f47ad9223126104d16f8fd1df4ce8
|
|
BLAKE2b-256 checksum How to use checksums |
f503a955d75a7ad434355845df91db09294eaca70f90e3c05900bb604ee3616a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.0
|
Security for simple-dh 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.