本项目是一个基于 Model Context Protocol (MCP) 的服务器,借助 https://thispersondoesnotexist.com 来生成人类脸部图像,为用户提供便捷的人脸图像生成服务。
本项目是一个使用 https://thispersondoesnotexist.com 生成人类脸部图像的 Model Context Protocol (MCP) 服务器。你可以通过以下步骤快速使用该服务器。
在你的项目中安装人脸生成工具,可使用以下命令:
npm install @dasheck0/face-generator
npx face-generator
generate_face 工具。| 参数 | 详情 |
|---|---|
outputDir |
(必填)保存图像的目录 |
fileName |
可选文件名(默认为时间戳) |
count |
生成的图像数量(默认:1) |
width |
图像宽度(以像素为单位,默认:256) |
height |
图像高度(以像素为单位,默认:256) |
shape |
图像形状(square|circle|rounded,默认:square) |
borderRadius |
圆角矩形的边距半径(默认:32) |
以下是一个使用示例,展示如何批量生成特定尺寸和形状的图像:
{
"outputDir": "./output",
"count": 3,
"width": 512,
"height": 512,
"shape": "circle"
}
本项目采用 MIT 许可证。