ThmclrXNode.js 图片主题色提取包
ThmclrX 是一个能提取图片主题色的 Node.js 包。
有三个 API:
var thmclrx = require("thmclrx"); thmclrx.octreeGet(file, [maxColors], [callback], [frameNumber]); thmclrx.mindiffGet(file, [palette], [callback], [frameNumber]); thmclrx.mixGet(file, [firstStepMaxColors], [palette], [callback], [frameNumber]);
上面三种方法提取出来的图片主题色结果都不一样,按自己的需求选择。
评论
DominantColorSwift 图片主色提取
DominantColor是提取图片主色示例项目,使用CIELAB颜色空间和k-均值聚类算法查找图像的主色。
DominantColorSwift 图片主色提取
0
DominantColorSwift 图片主色提取
DominantColor 是提取图片主色示例项目,使用 CIE LAB 颜色空间和 k-均值聚类算
DominantColorSwift 图片主色提取
0