Pencil4img
Documentspencil4imgPencil4img is an Agent Skill for documents published in the CoderWanFeng/python-office repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
将输入的图片转换为铅笔画风格。当用户提到铅笔画、素描、画风转换、图片转素描时使用。
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CoderWanFeng/python-office/blob/HEAD/skills/image/pencil4img/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/pencil4img, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
pencil4img Skill
使用 pencil4img 算法处理图像
功能描述
将输入的图像转换为铅笔画风格的图像。
所属分类
office/skills/image/pencil4img/
调用方式
from office.skills.image import pencil4img
pencil4img(
input_img='./test.jpg',
output_path='./',
output_name='pencil4img.jpg'
)
参数说明
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
input_img | str | 是 | - | 输入的图像文件路径 |
output_path | str | 否 | './' | 输出图像的路径 |
output_name | str | 否 | 'pencil4img.jpg' | 转换后的图像文件名 |
返回值
None
使用示例
from office.skills.image import pencil4img
pencil4img(input_img='./photo.jpg')
原始函数
office.api.image.pencil4img