PredetectedRegionsUnit
The PredetectedRegionsUnit class represents a unit that contains a collection of pre-detected regions. It inherits from the IntermediateResultUnit class and stores the result of image color pre-detection.
Definition
Namespace: com.dynamsoft.core.intermediate_results
public class PredetectedRegionsUnit extends IntermediateResultUnit
Methods
| Method | Description |
|---|---|
getCount |
Gets the number of pre-detected regions in the collection. |
getPredetectedRegion |
Gets a specific pre-detected region in the collection. |
getPredetectedRegions |
Gets all pre-detected regions in the collection. |
removeAllPredetectedRegions |
Removes all pre-detected regions in the unit. |
removePredetectedRegion |
Removes a pre-detected region in the unit at the specified index. |
addPredetectedRegion |
Adds a pre-detected region in the unit. |
setPredetectedRegion |
Sets a pre-detected region in the unit at the specified index. |
getCount
Gets the number of pre-detected regions in the collection.
int getCount()
Return value
Returns the number of pre-detected regions in the collection.
getPredetectedRegion
Gets a specific pre-detected region in the collection.
PredetectedRegionElement getPredetectedRegion(int index)
Parameters
index The index of the pre-detected region to retrieve.
Return value
Returns the specified pre-detected region in the collection.
See Also
getPredetectedRegions
Gets all pre-detected regions in the collection.
PredetectedRegionElement[] getPredetectedRegions()
Return value
Returns all pre-detected regions in the collection.
See Also
removeAllPredetectedRegions
Removes all pre-detected regions in the unit.
void removeAllPredetectedRegions()
removePredetectedRegion
Removes a pre-detected region in the unit at the specified index.
void removePredetectedRegion(int index) throws CoreException
Parameters
index The index of the pre-detected region to remove.
Exception
addPredetectedRegion
Adds a pre-detected region in the unit.
void addPredetectedRegion(PredetectedRegionElement element) throws CoreException
void addPredetectedRegion(PredetectedRegionElement element, double[] matrixToOriginalImage) throws CoreException
Parameters
element The pre-detected region to add.
matrixToOriginalImage The transform matrix to the original image.
Exception
See Also
setPredetectedRegion
Sets a pre-detected region in the unit at the specified index.
void setPredetectedRegion(int index, PredetectedRegionElement element) throws CoreException
void setPredetectedRegion(int index, PredetectedRegionElement element, double[] matrixToOriginalImage) throws CoreException
Parameters
index The index of the pre-detected region to set.
element The pre-detected region to set.
matrixToOriginalImage The transform matrix to the original image.
Exception
See Also