Skip to main content

SCSD-PY001 info: This is a simple demo of pictures color theme batch analysis use MMCQ with Python

Project description

说明

已修改默认分支为 pypi

项目地址

Bitbucket(最快更新)

Gitee(最快下载)

Github(仅同步PyPi分支)

GitLab(仅同步PyPi分支)

Pypi

libraries.io

源仓库在 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

color-theme-analyse-1.1.1.dev1.tar.gz (689.2 kB view hashes)

Uploaded Source

Built Distribution

color_theme_analyse-1.1.1.dev1-cp39-cp39-win32.whl (580.0 kB view hashes)

Uploaded CPython 3.9 Windows x86

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