SCSD-PY001 info: This is a simple demo of pictures color theme batch analysis use MMCQ with Python
Project description
说明
已修改默认分支为 pypi
项目地址
源仓库在 Bitbucket,因此会首先得到同步
Bug 反馈和 Issues 提交可以在 Bitbucket 或者 Gitee,在 Gitee 会得到最快反馈
请勿在 Github 或 GitLab 提交 Issues ,它们只是同步仓库,不会处理任何提交的 Issues
简介
基于MMCQ对图片进行色彩主题分析,采用图片压缩和多进程来加速批量分析速度。
master
分支是功能实现的 Simple Demo
pypi
分支是 基于master分支重构的 Python Package 打包发布的 Simple Demo
本项目是ImageColorTheme的(MMCQ)具体实现,ImageColorTheme的GitHub(国内镜像)地址:
GitHub - rainyear/ImageColorTheme: Extract Color Themes from Images (fastgit.org)
本项目同时也是SCMD开源计划的一部分
Requires
要求的版本 Python>=3.8.0
建议的版本 Python==3.9.5
from multiprocessing import shared_memory required for Python >= 3.8
要求的操作系统 Windows >= 1909 ( Win 10 / 11 )
建议的操作系统 Windows>=22000.71( Win 11 Dev )
必要的 Python 第三方库依赖:numpy, opencv-python, pillow, easygui, rich
本项目使用了 React
框架(非项目构建,只是运行时 Babel
)
教程
Build
Feature
Customize
str(hex(k))[-2:].replace('x', '0').upper()
本demo处理结果由RGB转为16进制,可根据需要不转换或者转为其他颜色表达形式。
MMCQ(d, 5)
本demo默认颜色主题为5个颜色,可根据需要减少或者增加(注意:主题色越多,分析速度越慢)。
本demo限制一次最多处理1020图片,不建议修改,更多图片分批次处理即可
Scheme
计划将 rich
移植为扩展依赖
计划移除 opency-python
依赖
目录树
src ├─ MMCQsc │ ├─ scp │ │ ├─ lib │ │ │ ├─ error_sc.py │ │ │ ├─ logger.py │ │ │ ├─ MMCQ.py │ │ │ └─ init.py │ │ ├─ scripts │ │ │ ├─ executer.py │ │ │ ├─ profile.json │ │ │ └─ init.py │ │ ├─ executable_check.py │ │ ├─ main.py │ │ └─ init.py │ ├─ src │ │ ├─ _css │ │ │ ├─ animate.css │ │ │ ├─ base.css │ │ │ └─ sweet-alert.css │ │ ├─ _js │ │ │ ├─ babel.min_5.8.23.js │ │ │ ├─ base.js │ │ │ ├─ react-dom.development.js │ │ │ ├─ react.development.js │ │ │ ├─ sweet-alert.js │ │ │ ├─ wow.min.js │ │ │ └─ wow.min2.js │ │ ├─ gitee.svg │ │ ├─ index.css │ │ ├─ index.html │ │ └─ index.js │ ├─ color_theme_analyse.py │ ├─ version.py │ └─ init.py └─ MMCQsc.cmd
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
Built Distribution
Hashes for color-theme-analyse-1.1.1.dev1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43e95a30da3a10709d8c5662e6e1716720cf63023b8e9e530292a91e9a97b122 |
|
MD5 | 7e582011d86041fb7913b7dbafd5156f |
|
BLAKE2b-256 | e0b1d143823f9de7bd963604a0b3f066c491833dc6ee8d3a71502b8da4bb9cbb |
Hashes for color_theme_analyse-1.1.1.dev1-cp39-cp39-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 444e34e37c55840f0eac6eda40f9d2709efa2f02466bcc38e86b0efc8e3c80fb |
|
MD5 | ad00aaf5d333bbb3955f0af7aae002bc |
|
BLAKE2b-256 | 15161bd9b707e1e07b06a995afbfb0f6e11b552be71c798db606b1a343d1bfa1 |