PredetectedRegionElement
The PredetectedRegionElement class represents a pre-detected region element, which is a subclass of RegionObjectElement.
Definition
Namespace: com.dynamsoft.core.intermediate_results
Assembly: DynamsoftCaptureVisionBundle.aar
class PredetectedRegionElement extends RegionObjectElement
Methods
| Method | Description |
|---|---|
getModeName |
Gets the name of the detection mode used to detect this region element. |
setLocation |
Sets the location of the pre-detected region object. |
getLabelId |
Gets the label ID of the pre-detected region object. |
getLabelName |
Gets the label name of the pre-detected region object. |
getModeName
Gets the name of the detection mode used to detect this region element.
String getModeName()
Return Value
The name of the detection mode used to detect this region element. It can be one of the following:
- “RPM_AUTO”
- “RPM_GENERAL”
- “RPM_GENERAL_RGB_CONTRAST”
- “RPM_GENERAL_GRAY_CONTRAST”
- “RPM_GENERAL_HSV_CONTRAST”
setLocation
Sets the location of the pre-detected region object.
void setLocation(@NonNull Quadrilateral location);
Parameters
location: The location info of the element that defined in DSQuadrilateral.
Return Value
The location info of the element that defined in DSQuadrilateral.
getLabelId
Gets the label ID of this pre-detected region.
String getLabelId();
Return Value
The label ID of this pre-detected region.
getLabelName
Gets the label name of this pre-detected region element.
@NonNull
String getLabelName();
Return Value
The label name of this pre-detected region element.