OpenParable
Skip to content
← Back to skills

Pencil4img

Documents
pencil4img

Pencil4img 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.

将输入的图片转换为铅笔画风格。当用户提到铅笔画、素描、画风转换、图片转素描时使用。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. 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_imgstr是-输入的图像文件路径
output_pathstr否'./'输出图像的路径
output_namestr否'pencil4img.jpg'转换后的图像文件名

返回值

None

使用示例

from office.skills.image import pencil4img
pencil4img(input_img='./photo.jpg')

原始函数

office.api.image.pencil4img