PredetectedRegionsUnit
The PredetectedRegionsUnit class extends the IntermediateResultUnit class and represents a unit of intermediate result specifically for pre-detected regions.
Definition
Namespace: com.dynamsoft.core.intermediate_results
Assembly: DynamsoftCaptureVisionBundle.aar
class PredetectedRegionsUnit extends IntermediateResultUnit
Methods
| Method | Description |
|---|---|
getPredetectedRegions |
Gets an array of PredetectedRegionElement objects, each representing a pre-detected region detected within the image. |
getCount |
Get the number of PredetectedRegionElement objects. |
getPredetectedRegion |
Get the PredetectedRegionElement object at the specified index. |
removeAllPredetectedRegions |
Remove all PredetectedRegionElement objects. |
removePredetectedRegion |
Remove the PredetectedRegionElement object at the specified index. |
addPredetectedRegion |
Add a PredetectedRegionElement object. |
setPredetectedRegion |
Set the PredetectedRegionElement object at the specified index. |
Inherited Methods
The following methods are inherited from class IntermediateResultUnit.
| Method | Description |
|---|---|
clone |
Creates a copy of the intermediate result unit. |
gethashId |
Gets the hash ID of the unit. The hash ID is the unique identifier for the intermediate result unit. |
getOriginalImageHashId |
Gets the hash ID of the original image. You can use this ID to get the original image via IntermediateResultManager class. |
getOriginalImageTag |
Gets the image tag of the original image associated with this unit. |
getType |
Gets the type of the intermediate result unit, defined by the enumeration EnumIntermediateResultUnitType. |
getTransformMatrix |
Gets the transformation matrix via EnumTransformMatrixType. |
replace |
Replaces the old unit with the new unit. |
getPredetectedRegions
Get the array of PredetectedRegionElement objects.
@Nullable
PredetectedRegionElement[] getPredetectedRegions();
Return Value
The array of PredetectedRegionElement objects.
getCount
Get the number of PredetectedRegionElement objects.
int getCount();
Return Value
The number of PredetectedRegionElement objects.
getPredetectedRegion
Get the PredetectedRegionElement object at the specified index.
@Nullable
PredetectedRegionElement getPredetectedRegion(int index);
Return Value
The PredetectedRegionElement object at the specified index.
removeAllPredetectedRegions
Remove all PredetectedRegionElement objects.
void removeAllPredetectedRegions();
removePredetectedRegion
Remove the PredetectedRegionElement object at the specified index.
int removePredetectedRegion(int index);
Return Value
The index of the removed PredetectedRegionElement object.
addPredetectedRegion
Add a PredetectedRegionElement object.
int addPredetectedRegion(PredetectedRegionElement element, Matrix matrixToOriginalImage);
Return Value
The index of the added PredetectedRegionElement object.
setPredetectedRegion
Set the PredetectedRegionElement object at the specified index.
int setPredetectedRegion(int index, PredetectedRegionElement element, Matrix matrixToOriginalImage);
Return Value
The index of the set PredetectedRegionElement object.