| class info |
| com.huawei.hms.mlsdk.common.MLResultTrailer |
| Represents an abstract class of an object tracker, which can track the detection results of a specific object in consecutive frames to identify the object appearance, change, disappearance, and processing completion. Each scenario corresponds to a processing method where you can customize the processing logic. |
| Constructor name |
| MLResultTrailer() |
| Instantiates MLResultTrailer. |
| Return type | Method name |
| void | completeCallback() |
| void | lostCallback(MLAnalyzer.Result<T> result) |
| void | objectCreateCallback(int itemId, T obj) |
| void | objectUpdateCallback(MLAnalyzer.Result<T> result, T obj) |
| Method |
| public MLResultTrailer() |
| Instantiates MLResultTrailer. |
Parameters
| Parameter name | Parameter desc |
| result | Detection result of the current object. |
| Method |
| public void objectCreateCallback(int itemId, T obj) |
| Represents a callback method that is called when a new object is detected. |
Parameters
| Parameter name | Parameter desc |
| itemId | ID of a new object. |
| obj | New object, for example, an MLFace instance. |
Parameters
| Parameter name | Parameter desc |
| result | Detection result of the current object. |
| obj | Current object, for example, an MLFace instance. |