# FaceDetectorManager

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

### 能力介绍

***

1. 人脸识别主要用于人脸特征识别，可用于人脸区分、定位、追踪等场景
2. 该能力并不涉及用户面部隐私问题

<br>

### Static Public Member Function

***

| **Ins**                   | <p><br></p> |
| ------------------------- | ----------- |
| FaceDetectorManager Ins() |             |
| 获取FaceDetectorManager实例   |             |

<br>

### Member Function Documentation

***

> 在使用人脸识别之前,需要先确认是否赋予相机权限.如果没有,则人脸识别无法正常工作.

<table data-header-hidden><thead><tr><th width="608"></th><th></th></tr></thead><tbody><tr><td><strong>GetFacePosition</strong></td><td><br></td></tr><tr><td>Vector3 GetFacePosition(out bool suc)</td><td></td></tr><tr><td><p>人脸识别不需要特别的调用初始化方法,只需要在需要的时候调用该接口即可.</p><p>&#x3C;Return>:人脸的位置,如果是Vector3.zero 则没有识别到人脸</p><p>&#x3C;Param>:  Out Bool: 是否识别到人脸,true代表识别到人脸了</p></td><td></td></tr></tbody></table>

| **StopFaceDectector**    | <p><br></p> |
| ------------------------ | ----------- |
| void StopFaceDectector() |             |
| 停止人脸识别算法                 |             |


---

# 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://rayneo.gitbook.io/rayneo-devdoc/x-xi-lie/unity-kai-fa/x2-api-jiu-ban-sdk-zhi-chi/facedetectormanager.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.
