A Python package developed for “Xin-Xin-She” (formerly “Zheng-Xin-She” and “Zheng-Xin-Xin”) Women’s Football Team at Peking University, mainly used for producing game highlights.
Project description
zxx
- 为北京大学信心社(原政信社、政信信)女足开发的 Python 库,主要用于剪辑比赛集锦。 / A Python package developed for “Xin-Xin-She” (formerly “Zheng-Xin-She” and “Zheng-Xin-Xin”) Women’s Football Team at Peking University, mainly used for producing game highlights.
- 点击此处前往
zxx的 GitHub 主页。您可以在zxx_example_code文件夹查看示例代码。 / Click here to go to the GitHub homepage ofzxx. You can check example code in thezxx_example_codefolder. - 点击此处前往
zxx的 PyPI 主页。 / Click here to go to the PyPI homepage ofzxx. - 安装 / To install:
pip install zxx. - 更新 / To update:
pip install --upgrade zxx/pip install -U zxx. - 随着
zxx库依赖的moviepy库的版本大更,现在无需预先安装 ImageMagick,也可正常使用。 / With a major update of themoviepylibrary, which thezxxlibrary depends on, it is now unnecessary to install ImageMagick in advance.
更新日志 Update Logs
- 1.3.0 (2026-02-17)
- 增加导出指定帧的
Highlight.preview_frame()。 / Added the ability to export specified frames viaHighlight.preview_frame(). - 为
Highlight.take()方法增加了裁切(放大)视频指定区域的参数cropcrop_abscrop_keep_ratio和crop_keep_ratio_abs。 / Introduced parameterscrop,crop_abs,crop_keep_ratio, andcrop_keep_ratio_abstoHighlight.take()for cropping (zooming in on) a specific area of the video. - 增加比分牌位置和字体高度的设置
options.SetScoreBoardStyle(position=("left", "top"), relative=False, fontsize_factor=0.8)。 / Added scoreboard positioning and font height settings viaoptions.SetScoreBoardStyle(position=("left", "top"), relative=False, fontsize_factor=0.8). - 改进
Highlight.print_duration()的输出格式。 / Improved the output format ofHighlight.print_duration(). - 设计了默认的比分牌样式,并可以通过
options.SetScoreBoardStyle(board_color = "#ffccccff")修改比分牌颜色。 / Designed a default scoreboard style, with customizable color viaoptions.SetScoreBoardStyle(board_color="#ffccccff"). - 增加了字幕背景设置
options.SetCaptionStyle(background=None, margin=0, vertical_adj=0)。 / Added caption background settings viaoptions.SetCaptionStyle(background=None, margin=0, vertical_adj=0). - 增加了全局控制是否显示字幕的方法
Highlight.show_caption()。 / Introduced global control for caption visibility viaHighlight.show_caption(). - 加快了导出速度,当视频同时显示比分牌和字幕时,导出时间缩减为原来的一半左右。 / Export speed has been Optimized. When both scoreboard and captions are displayed, export time is reduced to approximately half of the former.
- 增加导出指定帧的
- 1.2.0 (2025-08-01)
- 由于
moviepy库版本大更至2.x: / Due to the major update of themoviepylibrary to version2.x:- 不再需要预先安装 ImageMagick 了。 / Pre-installation of ImageMagick is no longer required.
- 弃用
tools.AllFonts()方法。 / Thetools.AllFonts()method has been deprecated. - 全面修改了其他相关代码。 / Other related code has been completely modified.
- 统一比分牌和字幕的字体指定方式,兼容绝对路径和相对路径。 / Unified the font specification methods for scoreboards and subtitles, compatible with both absolute and relative paths.
- 优化
print_duration()的输出格式。 / Optimized the output format ofprint_duration(). - 修复视频变速时音频不同步问题。 / Fixed audio desynchronization issues during video speed adjustment.
- 增加设置比分牌宽度的选项
SetCaptionStyle(width_factor=0.25)/ Added an option to set the scoreboard width:SetCaptionStyle(width_factor=0.25) - 修改 "DJI Action 4" 导出选项帧率为 59.94(原来是 60)。 / Changed the "DJI Action 4" export frame rate from 60 to 59.94.
- 由于
- 1.0.1 (2024-10-23)
- 修改了一些文字错误,增加了示例代码。 / Fixed some typos and added example code.
- 1.0.0 (2024-10-23)
- 修复了一些 bug,简化了使用逻辑,添加了详细的文档字符串(使用说明)。 / Fixed some bugs, simplified the usage, and added detailed docstrings.
- 1.1.0 (2025-07-30)
- 增加了修改主客队信息的
change_match_info()方法。 / Addchange_match_info()method. - 增加了多线程导出集锦的选项。 / Add multi-threading exporting option.
- 增加了修改主客队信息的
- 0.2.0 (2023-04-03)
- 全面修改运行逻辑。 / An entire modification.
- 0.1.0 (2022-11-07)
- 第一次正式发布。 / The first release.
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
zxx-1.3.0.tar.gz
(31.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
zxx-1.3.0-py3-none-any.whl
(31.9 kB
view details)
File details
Details for the file zxx-1.3.0.tar.gz.
File metadata
- Download URL: zxx-1.3.0.tar.gz
- Upload date:
- Size: 31.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a4f27fcbe87636f0f45b220a47079948493f1bda1ca2aadc3b99b9eb24cd02d
|
|
| MD5 |
267979b185a30ba635ceed32e1ff7929
|
|
| BLAKE2b-256 |
8ea1c48f470347a7f5fbc6506ea5460b339ecb3db4fad3b129b136121613e24b
|
File details
Details for the file zxx-1.3.0-py3-none-any.whl.
File metadata
- Download URL: zxx-1.3.0-py3-none-any.whl
- Upload date:
- Size: 31.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1081d1fb2a03363f65993ae522c0896e7b4f65084bc006764344c05abd6a38ed
|
|
| MD5 |
8ac6e462d4ca556e098d5d3f9aa1df99
|
|
| BLAKE2b-256 |
0a9d642d8385a42a3360ca104d68bb0c1360c12689eba1729568397badb32bd7
|