Skip to main content

九宫格图片分割,最简单的Python图像分割工具。

Project description

Gongge

九宫格图片分割,最简单的Python图像分割工具。

特点

  • 默认九宫格分割模式
    • 支持自定义设置分割数量
  • 支持分割图像预览
  • 默认保存到本地文件夹,包括预览图像

安装说明

pip install Gongge

调用说明

默认生成九格

import Gongge

Gongge.split("test.jpg")

test-9.jpg

设置参数size修改生成格数

import Gongge

Gongge.split("test.jpg", size=2)

test-4.jpg

效果展示

test-16.jpg

test-25.jpg

test-36.jpg

test-49.jpg

test-64.jpg

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

Gongge-0.0.6.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file Gongge-0.0.6.tar.gz.

File metadata

  • Download URL: Gongge-0.0.6.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for Gongge-0.0.6.tar.gz
Algorithm Hash digest
SHA256 fc532c4a4cfee273f2479e6fa5a4fbad3f81b8f47d0324ebdc50ce526348b3e7
MD5 9e7571751ee89b8526dfd5fc6840117f
BLAKE2b-256 136e4820ecf4f3e2fb2a3a1a8758377e8f40a2dc65641a495a61a614ca11b336

See more details on using hashes here.

Supported by

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