> For the complete documentation index, see [llms.txt](https://portal-integracao.intelbras.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portal-integracao.intelbras.com.br/linha-android/iaserver/faceparametershelper.md).

# FaceParametersHelper

Classe de ajuda de encapsulamento de parâmetros necessária para inicialização do algoritmo de reconhecimento facial.

```java
/**
* Sets the width of the maximum recognition region
*
* @param bundle The parameter passed when the algorithm is started
* @param width The width of the maximum recognized region
* @return The bundle that was passed the argument
*/
public static Bundle setMaxDetectWidth(Bundle bundle, int width)

/**
* Gets the width of the maximum recognized region
*
* @param bundle The parameter passed when the algorithm is started
* @param defaultValue the default value
* @return the width of the maximum recognized region
*/
public static int getMaxDetectWidth(Bundle bundle, int defaultValue)

/**
* Sets the height of the maximum recognition region
*
* @param bundle The parameter passed when the algorithm is started
* @param height The height of the maximum recognized region
* @return The bundle that was passed the argument
*/
public static Bundle setMaxDetectHeight(Bundle bundle, int height)

/**
* Gets the height of the maximum recognized region
*
* @param bundle The parameter passed when the algorithm is started
* @param defaultValue the default value
* @return the height of the maximum recognized region
*/
public static int getMaxDetectHeight(Bundle bundle, int defaultValue)

/**
* Set a valid detection area, that is, only the coordinates of this area in the image data are
detected
*
* @param bundle The parameter passed when the algorithm is started
* @param rect Valid detection area
* @return The bundle that was passed the argument
*/
public static Bundle setDetectRect(Bundle bundle, Rect rect)

/**
* gets the valid detection area
*
* @param bundle The parameter passed when the algorithm is started
* @param defaultValue the default value
* @return the valid detection area
*/
public static Rect getDetectRect(Bundle bundle, Rect defaultValue)

/**
* sets the thread model of the recognition result callback, either synchronous or asynchronous
*
* @param bundle The parameter passed when the algorithm is started
* @param threadMode The threading model for callbacks {@link CallbackThreadMode}
* @return The bundle that was passed the argument
*/
public static Bundle setCallbackThreadMode(Bundle bundle, @CallbackThreadMode int threadMode)

/**
* Gets the thread model that identifies the result callbacks
*
* @param bundle The parameter passed when the algorithm is started
* @return the thread model, Default is asynchronous {@link CallbackThreadMode#ASYNC}
*/
public static int getCallbackThreadMode(Bundle bundle)

/**
* Sets the width of the preview screen
*
* @param bundle The parameter passed when the algorithm is started
* @param viewWidth The width of the preview screen
* @return The bundle that was passed the argument
*/
public static Bundle setViewWidth(Bundle bundle, int viewWidth)

/**
* Gets the width of the preview screen
*
* @param bundle The parameter passed when the algorithm is started
* @param defaultValue The default value
* @return the width of the preview screen
*/
public static int getViewWidth(Bundle bundle, int defaultValue)

/**
* Sets the height of the preview screen
*
* @param bundle The parameter passed when the algorithm is started
* @param viewHeight The height of the preview screen
* @return The bundle that was passed the argument
*/
public static Bundle setViewHeight(Bundle bundle, int viewHeight)

/**
* Gets the height of the preview screen
*
* @param bundle The parameter passed when the algorithm is started
* @param defaultValue The default value
* @return The height of the preview screen
*/
public static int getViewHeight(Bundle bundle, int defaultValue)

/**
* Set the maximum number of faces that can be detected at the same time
*
* @param bundle The parameter passed when the algorithm is started
* @param faceNumber Maximum number of faces
* @return The bundle that was passed the argument
*/
public static Bundle setMaxFaceDetectCount(Bundle bundle, int faceNumber)

/**
* Get the maximum number of faces that can be detected at the same time
*
* @param bundle The parameter passed when the algorithm is started
* @return The number of faces detected simultaneously
*/
public static int getMaxFaceDetectCount(Bundle bundle)

/**
* Set whether to enable face area detection, that is, to detect whether the face is in the specified
area
*
* @param bundle The parameter passed when the algorithm is started
* @param enable Enable detection or not
* @return The bundle that was passed the argument
*/
public static Bundle setFaceDetectAreaEnable(Bundle bundle, boolean enable)

/**
* Gets a flag to enable or disable the face recognition area
* The default is enabled.
*
* @param bundle The parameter passed when the algorithm is started
* @return ture means enabled
*/
public static boolean getFaceDetectAreaEnable(Bundle bundle)

/**
* Whether to do further analysis on the detect results, such as mask detection
*
* @param bundle The parameter passed when the algorithm is started
* @param enable Whether enabled, true means enabled
* @return The bundle that was passed the argument
*/
public static Bundle setFaceDetectResultAnalysisEnable(Bundle bundle, boolean enable)

/**
* Gets a flag that whether to do further analysis on the detect results
* The default value is true, which means it is enabled
*
* @param bundle The parameter passed when the algorithm is started
* @return true means enabled
*/
public static boolean getFaceDetectResultAnalysisEnable(Bundle bundle)


```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://portal-integracao.intelbras.com.br/linha-android/iaserver/faceparametershelper.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
