Table of contents

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
  1. @interface DSPredetectedRegionElement: DSRegionObjectElement
    
  2. class 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
  1. - (NSString *)getModeName;
    
  2. 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
  1. - (NSInteger)setLocation:(DSQuadrilateral *)location;
    
  2. 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
  1. - (NSInteger)getLabelId;
    
  2. 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
  1. - (NSString *)getLabelName;
    
  2. func getLabelName() -> String
    

Return Value

The label name of this pre-detected region element.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: