DSPredetectedRegionElement
The DSPredetectedRegionElement class extends the DSRegionObjectElement class and represents a pre-detected region element in an image.
Definition
Assembly: DynamsoftCaptureVisionBundle.xcframework
- Objective-C
- Swift
@interface DSPredetectedRegionElement: DSRegionObjectElementclass PredetectedRegionElement : 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
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”
- Objective-C
- Swift
- (NSString *)getModeName;func getModeName() -> String
Return Value
The name of the detection mode used to detect this region element.
setLocation
Sets the location of the pre-detected region object.
- Objective-C
- Swift
- (NSInteger)setLocation:(DSQuadrilateral *)location;func setLocation(_ location: Quadrilateral?)
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.
- Objective-C
- Swift
- (NSInteger)getLabelId;func getLabelId() -> Int
Return Value
The label ID of this pre-detected region.
getLabelName
Gets the label name of this pre-detected region element.
- Objective-C
- Swift
- (NSString *)getLabelName;func getLabelName() -> String
Return Value
The label name of this pre-detected region element.