> 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/aidetectexternalinfo.md).

# AiDetectExternalInfo

O algoritmo detecta classes adicionais de encapsulamento de informações, atualmente principalmente identificar informações relacionadas ao quadro.

De acordo com essas informações pode-se obter dados específicos do quadro de detecção, face esteiras e assim por diante.

```java
public class AiDetectExternalInfo {
    
/**
* SessionId, Used to distinguish between callbacks in the same identification flow
*/
public int mSessionId;

/**
* Detects the UId of the frame object, which is used to distinguish whether it is a callback in
the same recognition flow
*/
public int mObjectUid;

/**
* Face detection ID, algorithm returns, is >=0 at present
*/
public int mDetectId;

/**
* The Shared memory address of the data frame, by {@ link ShareMemoryWrapperManager#
readShareBytes (int)} frame data interface to get the recognition, the data format for YUV format.
*/
public int mDetectFrameToken;

/**
* the width and height of the frame data. Based on the width and height, and the yuv frame data
obtained from the token, it is converted to jpeg format using {@link ImageUtils#yuvCompressToJpeg()}
*/
public int mDetectFrameWidth, mDetectFrameHeight;

/**
*The shared memory address of Rgb frame data. In face recognition, infrared frames will be used
for detection in low-light scenes. At this time, RGB frames can be obtained using this field.
*/
public int mRgbFrameToken;

/**
* Width and height of Rgb frame data. In face recognition, infrared frames will be used for
detection in low-light scenes. At this time, RGB frames can be obtained using this field.
*/
public int mRgbFrameWidth, mRgbFrameHeight;

/**
* Detected target object coordinates (coordinates in the coordinate system of the identified
frame)
* According to {@ link LamyImageUtilsProxy# cropAndEncodeImageWithShareMem ()} get to frame the
face cutout
*/
public int mOriLeft, mOriTop, mOriRight, mOriBottom;

/**
* The detection type of the result, 0 represents the face detection result, 1 represents the
recognition result. Face recognition, other algorithms will only call back once
*/
public int mFaceResultType;

/**
* An interface that deserializes to an instance object
*
* @param inBundle
* @return AiDetectExternalInfo
*/
public static AiDetectExternalInfo deserialize(Bundle inBundle);

/**
* Serialize the interface to the Bundle object
*
* @param externalInfo the instance data to be serialized
* @return bundle
*/
public static Bundle serialize(AiDetectExternalInfo externalInfo);

}

```


---

# 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/aidetectexternalinfo.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.
