# 换脸步骤

{% embed url="<https://www.bilibili.com/video/BV1crX9YFEjA>" %}

### 换脸步骤

1. 导入素材：头像、人设图片默认存放在 `程序同级目录` 下的 `头像` 文件夹，视频文件放在 `程序同级目录` 下的 `视频` 文件夹，可以根据自己操作习惯，自定义文件夹路径。

   <figure><img src="/files/Zae9a7N45llZ7LmZt7Sp" alt="" width="563"><figcaption></figcaption></figure>
2. 加载资源：运行<mark style="color:red;">`启动.exe`</mark>打开程序后，首先点击程序界面 `左上角` 的<mark style="color:red;">`加载资源`</mark>按钮，将素材和摄像头导入到程序。

<figure><img src="/files/LT9vCV2XA9mEDfjWSGnk" alt=""><figcaption></figcaption></figure>

3. 选中左侧视频栏中的摄像头，并点击播放。

<figure><img src="/files/JnHvT1ykYeIEyJqgQJZ7" alt=""><figcaption></figcaption></figure>

`注意：如果未找到摄像头，请在右侧的“`<mark style="color:red;">`摄像头最大数量`</mark>`”设置成`<mark style="color:red;">`3-5`</mark>`，然后再重新“加载资源”`

4. 找脸：脸正对摄像头，点击“<mark style="color:red;">找脸</mark>”按钮，识别视频中的脸。（脸部光线要充足，可以适当补光，画面要清晰）

<p align="center"><img src="/files/ndfsnToVLDLpKsShLSm8" alt=""></p>

5. 换脸：选中自己的头像人脸，然后再选中目标头像人脸。最后点击“<mark style="color:red;">换脸</mark>”按钮。（按住Ctrl键可以同时选择多个同一人物的多个头像）

<figure><img src="/files/16oelRFFdxkupSvZni62" alt=""><figcaption></figcaption></figure>

6. 点击“换脸”按钮稍微卡顿一会后，就换脸成功了。

<figure><img src="/files/GLTyu4DhFYO3Ebj3zT5Q" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/wfc1jsABcHaKTBakQvQJ" alt=""><figcaption></figcaption></figure>

7. 如果觉得比较模糊，效果不太好，可以在右侧参数面板进行调整。

* `开启：高清修复、自动遮罩、面部（嘴巴 -> 15）`
* 其它默认即可

<figure><img src="/files/nawrywRvqmQbYZeYuE1s" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/QDULM53XizNoK36lcb2d" alt=""><figcaption></figcaption></figure>

8. 将换脸画面发送到虚拟摄像头
   1. 点击右上角“<mark style="color:red;">设置</mark>”菜单，点击“<mark style="color:red;">摄像头扩展</mark>”，如果提示“扩展失败”，请重试，直到提示“扩展成功”

<figure><img src="/files/fnFbi5zGGXxBlOKMZe0I" alt=""><figcaption></figcaption></figure>

&#x20;            b. 开启“发送至虚拟摄像头”

<figure><img src="/files/9NySHbAPCYMKfbv6LBVR" alt=""><figcaption></figcaption></figure>

###

### 视频电话换脸

#### **微信**

摄像头选择 “`OBS Virtual Camera`”或者“`DroidCam Video`”

![](https://cloudwing.feishu.cn/space/api/box/stream/download/asynccode/?code=OTgzYzJhYjE4NmEwZDI2ZjU5ZTZiZjhmMzdkOWJiZDlfclpnNzhNWDZBTHpBRm82UFUybjhLdkswUVpBS1NqSHpfVG9rZW46QWJpcGJoMmxab0p5b3l4UzhYaWNJMm5ybnpDXzE3NjQzOTY1NzQ6MTc2NDQwMDE3NF9WNA)

**QQ**

使用 TIM 版QQ（下载地址：<https://tim.qq.com）>

摄像头选择 “`OBS Virtual Camera`”或者“`DroidCam Video`”<br>

**其他应用**

同理，摄像头选择 “`OBS Virtual Camera`”或者“`DroidCam Video`”


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ai-yy.com/shi-yong-jiao-cheng/zhun-bei-gong-zuo.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
