| class info |
| com.huawei.hms.mlsdk.common.MLProminentTransactor |
| Represents an abstract class of the processor for processing detection results of a specific object. The class implements the following functions: 1. Sets an object to be tracked and automatically adjusts the processing logic in the object tracker when the object status changes in consecutive frames. 2. Compares whether objects detected from consecutive frames are the same. The maximum area, width, and height can be set for comparison. |
| Constructor name |
| MLProminentTransactor(MLAnalyzer<T> analyzer, MLResultTrailer<T> trailer) |
| Instantiates a ConcentrateTransactor object. |
| Return type | Method name |
| boolean | compare(Object target1, Object target2) |
| void | destroy() |
| int | getSpecificTarget(MLAnalyzer.Result<T> result) |
| void | transactResult(MLAnalyzer.Result<T> result) |
| Return type | Method name |
| void | setMaxFrameLostCount(int maxFrameLostCount) |
| Method |
| public MLProminentTransactor(MLAnalyzer<T> analyzer, MLResultTrailer<T> trailer) |
| Instantiates a ConcentrateTransactor object. |
Parameters
| Parameter name | Parameter desc |
| analyzer | Analyzer instance |
| trailer | Tracker instance |
Parameters
| Parameter name | Parameter desc |
| target1 | Detected object 1 |
| target2 | Detected object 2 |
Return
| Type | desc |
| boolean | true: same object false: different objects |
| Method |
| public void destroy() |
| Releases resources used by a processor by calling the completeCallback() method of a trailer class. |
| Method |
| public abstract int getSpecificTarget(MLAnalyzer.Result<T> result) |
| Identifies objects with certain features among multiple detected objects. |
Parameters
| Parameter name | Parameter desc |
| result | Detection results obtained by an analyzer. |
Return
| Type | Desc |
| int | Sequence of an object with specified features in the detection result list. |
Parameters
| Parameter name | Parameter desc |
| result | Detection results obtained by an analyzer. |
| Method |
| protected void setMaxFrameLostCount(int maxFrameLostCount) |
| Sets the maximum allowable gap of frames for determining object disappearance. |
Parameters
| Parameter name | Parameter desc |
| maxFrameLostCount | Maximum allowable gap of frames for determining object disappearance. |