diff --git a/programming/android/api-reference/character-result-v2.6.1003.md b/programming/android/api-reference/character-result-v2.6.1003.md deleted file mode 100644 index bca8e3c..0000000 --- a/programming/android/api-reference/character-result-v2.6.1003.md +++ /dev/null @@ -1,93 +0,0 @@ ---- -layout: default-layout -title: CharacterResult - Dynamsoft Label Recognizer Android Edition -description: The class CharacterResult of Dynamsoft Label Recognizer Android edition represents the result of a character recognition process. -keywords: Character result -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: CharacterResult -permalink: /programming/android/api-reference/character-result.html ---- - -# CharacterResult - -The `CharacterResult` class represents the result of a character recognition process. It contains the characters recognized (high, medium, and low confidence), their respective confidences, and the location of the character in a quadrilateral shape. - -## Definition - -*Namespace:* com.dynamsoft.dlr - -*Assembly:* DynamsoftCaptureVisionBundle.aar - -```java -class CharacterResult -``` - -## Methods - -| Method | Description | -| ------ | ----------- | -| [`getCharacterH`](#getcharacterh) | Returns the highest confidence character recognized. | -| [`getCharacterM`](#getcharacterm) | Returns the medium confidence character recognized. | -| [`getCharacterL`](#getcharacterl) | Returns the lowest confidence character recognized. | -| [`getLocation`](#getlocation) | Returns the location of the recognized character within the image. | -| [`getCharacterHConfidence`](#getcharacterhconfidence) | Returns the confidence score for the highest confidence character. | -| [`getCharacterMConfidence`](#getcharactermconfidence) | Returns the confidence score for the medium confidence character. | -| [`getCharacterLConfidence`](#getcharacterlconfidence) | Returns the confidence score for the lowest confidence character. | - -### getCharacterH - -Returns the highest confidence character recognized. - -```java -char getCharacterH(); -``` - -### getCharacterM - -Returns the medium confidence character recognized. - -```java -char getCharacterM(); -``` - -### getCharacterL - -Returns the lowest confidence character recognized. - -```java -char getCharacterL(); -``` - -### getLocation - -Returns the location of the recognized character within the image. - -```java -Quadrilateral getLocation(); -``` - -### getCharacterHConfidence - -Returns the confidence score for the highest confidence character. - -```java -int getCharacterHConfidence(); -``` - -### getCharacterMConfidence - -Returns the confidence score for the medium confidence character. - -```java -int characterMConfidence(); -``` - -### getCharacterLConfidence - -Returns the confidence score for the lowest confidence character. - -```java -int characterLConfidence(); -``` diff --git a/programming/android/api-reference/raw-text-line-v2.6.1003.md b/programming/android/api-reference/raw-text-line-v2.6.1003.md deleted file mode 100644 index 566f539..0000000 --- a/programming/android/api-reference/raw-text-line-v2.6.1003.md +++ /dev/null @@ -1,191 +0,0 @@ ---- -layout: default-layout -title: RawTextLine - Dynamsoft Label Recognizer iOS Edition -description: The class RawTextLine of Dynamsoft Label Recognizer iOS edition represents a unit which holds the raw text lines. -keywords: raw text lines unit, intermediate result unit -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: RawTextLine ---- - -# RawTextLine - -The `RawTextLine` class represents a text line in an image. It can be in one of the following states: - -- `TLS_LOCALIZED`: Localized but recognition not performed. -- `TLS_RECOGNITION_FAILED`: Recognition failed. -- `TLS_RECOGNIZED_SUCCESSFULLY`: Successfully recognized. - -## Definition - -*Namespace:* com.dynamsoft.dlr - -*Assembly:* DynamsoftLabelRecognizer.aar - -```java -class RawTextLine -``` - -## Methods - -| Methods | Description | -| ------- | ----------- | -| [`getText`](#gettext) | Returns the recognized text. | -| [`setText`](#settext) | Sets the recognized text. | -| [`getConfidence`](#getconfidence) | Returns the confidence level of the recognized text. | -| [`getCharacterResults`](#getcharacterresults) | Returns all the characters contained by the textline. | -| [`getRowNumber`](#getrownumber) | Returns the row number of the text line within the image. | -| [`setRowNumber`](#setrownumber) | Sets the row number of the text line within the image. | -| [`getSpecificationName`](#getspecificationname) | Get the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. | -| [`setSpecificationName`](#setspecificationname) | Sets the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. | -| [`getLocation`](#getlocation) | Returns the location of the text line. | -| [`setLocation`](#setlocation) | Sets the location of the text line. | - -### getText - -Returns the recognized text. - -```java -String getText(); -``` - -**Return value** - -Returns the text of the text line. - -### setText - -Returns the recognized text. - -```java -void setText(string text); -``` - -**Parameter** - -`text`: The text. - -**Return value** - -Returns the `ErrorCode` if failed. Otherwise, returns 0. - -### getConfidence - -Returns the confidence level of the recognized text. - -```java -int getConfidence(); -``` - -**Return value** - -Returns the confidence level of the text line. - -### getCharacterResults - -Returns all the characters contained by the textline in an array of [`CharacterResult`](character-result.md). - -```java -CharacterResult[] getCharacterResults(); -``` - -**Return value** - -Returns all the characters contained by the textline in an array of [`CharacterResult`](character-result.md). - -### getRowNumber - -Returns the row number of the text line within the image. - -```java -int getRowNumber(); -``` - -**Return value** - -Returns the row number of the text line within the image. - -### setRowNumber - -Sets the row number of the text line within the image. - -```java -int setRowNumber(int rowNumber); -``` - -**Parameter** - -`rowNumber`: The row number of the text line within the image. - -**Return value** - -Returns 0 if success, otherwise an error code. - -### getSpecificationName - -Returns the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -```java -String getSpecificationName(); -``` - -**Return value** - -The name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -### setSpecificationName - -Sets the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -```java -int setSpecificationName(String specificationName); -``` - -**Parameter** - -`specificationName`: The name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -**Return value** - -Returns 0 if success, otherwise an error code. - -### getLocation - -Returns a `Quadrilateral` object which represents the location of the text line. - -```java -Quadrilateral getLocation(); -``` - -**Return value** - -A `Quadrilateral` object which represents the location of the text line. - -### setLocation - -Set the location of the text line. - -```java -int setLocation(Quadrilateral location); -``` - -**Parameter** - -`location`: The location of the text line. - -**Return value** - -Returns 0 if success, otherwise an error code. - -### getStatus - -Returns the status of the text line. - -```java -RawTextLineStatus getStatus(); -``` - -**Return value** - -The status of the text line. diff --git a/programming/android/api-reference/recognized-text-line-element-v2.2.3000.md b/programming/android/api-reference/recognized-text-line-element-v2.2.3000.md deleted file mode 100644 index e34b5ee..0000000 --- a/programming/android/api-reference/recognized-text-line-element-v2.2.3000.md +++ /dev/null @@ -1,109 +0,0 @@ ---- -layout: default-layout -title: RecognizedTextLineElement - Dynamsoft Label Recognizer Android Edition -description: The class RecognizedTextLineElement of Dynamsoft Label Recognizer Android edition represents a line of recognized text in an image. -keywords: Recognized text line element -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: RecognizedTextLineElement ---- - -# RecognizedTextLineElement - -The `RecognizedTextLineElement` class extends the [RegionObjectElement]({{ site.dcv_android_api }}core/intermediate-results/region-object-element.html) class and represents a recognized text line element. - -## Definition - -*Namespace:* com.dynamsoft.dlr.intermediate_results - -*Assembly:* DynamsoftCaptureVisionBundle.aar - -```java -class RecognizedTextLineElement extends RegionObjectElement -``` - -*Inheritance:* [RegionObjectElement]({{ site.dcv_android_api }}core/intermediate-results/region-object-element.html) -> RecognizedTextLineElement - -## Methods - -| Method | Description | -| ------ | ----------- | -| [`getText`](#gettext) | Returns the recognized text of the line. | -| [`getConfidence`](#getconfidence) | Returns the confidence score for the recognized text line. | -| [`getCharacterResults`](#getcharacterresults) | Returns all the results for individual characters within the text line. | -| [`getRowNumber`](#getrownumber) | Returns the row number of the text line, starting from 1. | -| [`setText`](#settext) | Sets the recognized text of the line. | -| [`getSpecificationName`](#getspecificationname) | Returns the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. | - -### getText - -Returns the recognized text of the line. - -```java -String getText() -``` - -**Return value** - -The recognized text of the line. - -### getConfidence - -Returns the confidence score for the recognized text line. - -```java -int getConfidence() -``` - -**Return value** - -The confidence score for the recognized text line. - -### getCharacterResults - -Returns all the results for individual characters within the text line, defined by [`CharacterResult`](character-result.md). - -```java -CharacterResult[] getCharacterResults(); -``` - -**Return value** - -The results for individual characters within the text line, defined by [`CharacterResult`](character-result.md). - -### getRowNumber - -Returns the row number of the text line, starting from 1. - -```java -int getRowNumber(); -``` - -**Return value** - -The row number of the text line, starting from 1. - -### setText - -Sets the recognized text of the line. - -```java -void setText(String text); -``` - -**Parameters** - -`text`: The text to be set. - -### getSpecificationName - -Returns the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -```java -String getSpecificationName(); -``` - -**Return value** - -The name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. diff --git a/programming/android/api-reference/recognized-text-lines-result-v2.6.1003.md b/programming/android/api-reference/recognized-text-lines-result-v2.6.1003.md deleted file mode 100644 index 188fb84..0000000 --- a/programming/android/api-reference/recognized-text-lines-result-v2.6.1003.md +++ /dev/null @@ -1,108 +0,0 @@ ---- -layout: default-layout -title: RecognizedTextLinesResult - Dynamsoft Label Recognizer Android Edition -description: The class RecognizedTextLinesResult of Dynamsoft Label Recognizer Android edition represents the result of a text recognition process. -keywords: Recognized text lines result -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: RecognizedTextLinesResult -permalink: /programming/android/api-reference/recognized-text-lines-result.html ---- - -# RecognizedTextLinesResult - -The `RecognizedTextLinesResult` class represents the overall result(s) of a text recognition process. It provides access to information about the recognized text lines, the original image, and any errors that occurred during the recognition process. - -## Definition - -*Namespace:* com.dynamsoft.dlr - -*Assembly:* DynamsoftCaptureVisionBundle.aar - -```java -class RecognizedTextLinesResult -``` - -## Methods - -| Method | Description | -| ------ | ----------- | -| [`getOriginalImageHashId`](#getoriginalimagehashid) | Gets the hash ID of the original image. | -| [`getOriginalImageTag`](#getoriginalimagetag) | Gets the tag of the original image. | -| [`getItems`](#getitems) | Gets the text line result item at the specified index. | -| [`getRotationTransformMatrix`](#getrotationtransformmatrix) | Get the rotation transformation matrix of the original image relative to the rotated image.| -| [`getErrorCode`](#geterrorcode) | Gets the error code of the recognition result, if an error occurred. | -| [`getErrorMessage`](#geterrormessage) | Gets the error message of the recognition result, if an error occurred. | - -### getOriginalImageHashId - -Get the hash id of the original image. You can use this ID to get the original image via the [`IntermediateResultManager`]({{ site.dcv_android_api }}core/intermediate-results/intermediate-result-manager.html) class. - -```java -String getOriginalImageHashId(); -``` - -**Return value** - -Returns the hash ID of the original image as a string. - -### getOriginalImageTag - -Get the [`ImageTag`]({{ site.dcv_android_api }}core/basic-structures/image-tag.html) of the original image. The image tag contains info about the image such as the image ID and the image capture distance mode. - -```java -ImageTag getOriginalImageTag(); -``` - -**Return value** - -An [`ImageTag`]({{ site.dcv_android_api }}core/basic-structures/image-tag.html) object that contain the image extra info. - -### getItems - -Gets all the text line result(s) recognized from the image/frame in an array of [`DSTextLineResultItem`](text-line-result-item.md). - -```java -TextLineResultItem[] getItems(); -``` - -**Return value** - -Returns an array of `TextLineResultItem` that contains all text line recognition results. - -### getRotationTransformMatrix - -Get the rotation transformation matrix of the original image relative to the rotated image. - -```java -Matrix getRotationTransformMatrix(); -``` - -**Return Value** - -A `Matrix` which represents the rotation transform matrix. - -### getErrorCode - -Gets the error code of the recognition result, if an error occurred. - -```java -int getErrorCode(); -``` - -**Return value** - -Returns the error code of the recognition result, or 0 if no error occurred. - -### getErrorMessage - -Gets the error message of the recognition result, if an error occurred. - -```java -String getErrorMessage(); -``` - -**Return value** - -Returns a string that describes the error message. diff --git a/programming/android/api-reference/recognized-text-lines-unit-v2.2.3000.md b/programming/android/api-reference/recognized-text-lines-unit-v2.2.3000.md deleted file mode 100644 index a697e0b..0000000 --- a/programming/android/api-reference/recognized-text-lines-unit-v2.2.3000.md +++ /dev/null @@ -1,98 +0,0 @@ ---- -layout: default-layout -title: RecognizedTextLinesUnit - Dynamsoft Label Recognizer Android Edition -description: The class RecognizedTextLinesUnit of Dynamsoft Label Recognizer Android edition represents an intermediate result unit containing recognized text lines. -keywords: Recognized text lines unit -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: RecognizedTextLinesUnit ---- - -# RecognizedTextLinesUnit - -The `RecognizedTextLinesUnit` class represents an intermediate result unit containing recognized text lines. It inherits from the [IntermediateResultUnit]({{ site.dcv_android_api }}core/intermediate-results/intermediate-result-unit.html) class. - -## Definition - -*Namespace:* com.dynamsoft.dlr.intermediate_results - -*Assembly:* DynamsoftLabelRecognizer.aar - -```java -class RecognizedTextLinesUnit extends IntermediateResultUnit -``` - -*Inheritance:* [IntermediateResultUnit]({{ site.dcv_android_api }}core/intermediate-results/intermediate-result-unit.html) -> RecognizedTextLinesUnit - -## Methods - -| Method | Description | -| ------ | ----------- | -| [`getRecognizedTextLines`](#getrecognizedtextlines) | Gets a pointer to the [`RecognizedTextLineElement`](recognized-text-line-element.md) object at the specified index. | - -### getRecognizedTextLines - -Gets all the recognized text lines of this unit in an array of [`RecognizedTextLineElement`](recognized-text-line-element.md). - -```java -RecognizedTextLineElement[] getRecognizedTextLines(); -``` - -**Return value** - -An array of [`RecognizedTextLineElement`](recognized-text-line-element.md) that contains all recognized text line of this unit. - -### getCount - -Gets the number of recognized text lines in this unit. - -```java -int getCount(); -``` - -**Return value** - -The number of recognized text lines in this unit. - -### getRecognizedTextLine - -Gets the recognized text line at the specified index in a [`RecognizedTextLineElement`](recognized-text-line-element.md) object. - -```java -RecognizedTextLineElement getRecognizedTextLine(int index); -``` - -**Parameters** - -`index`: The index of the recognized text line in this unit. - -**Return value** - -The recognized text line at the specified index in a [`RecognizedTextLineElement`](recognized-text-line-element.md) object. - -### removeAllRecognizedTextLines - -Removes all the recognized text lines from the unit. - -```java -void removeAllRecognizedTextLines(); -``` - -### setRecognizedTextLine - -Sets the recognized text line at the specified index in a [`RecognizedTextLineElement`](recognized-text-line-element.md) object. - -```java -int setRecognizedTextLine(RecognizedTextLineElement element, Matrix matrixToOriginalImage); -``` - -**Parameters** - -`element`: The [`RecognizedTextLineElement`](recognized-text-line-element.md) object to be set. - -`matrixToOriginalImage`: The matrix to the original image. - -**Return value** - -Returns the `ErrorCode` if failed. Otherwise, returns 0. diff --git a/programming/android/api-reference/text-line-result-item-v2.2.3000.md b/programming/android/api-reference/text-line-result-item-v2.2.3000.md deleted file mode 100644 index eac3e16..0000000 --- a/programming/android/api-reference/text-line-result-item-v2.2.3000.md +++ /dev/null @@ -1,96 +0,0 @@ ---- -layout: default-layout -title: TextLineResultItem - Dynamsoft Label Recognizer Android Edition -description: The class TextLineResultItem of Dynamsoft Label Recognizer Android edition represents a text line result item recognized by a document layout analysis engine. -keywords: Text line result item -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: TextLineResultItem ---- - -# TextLineResultItem - -The `TextLineResultItem` class represents a single text line result item recognized by the library. It is derived from `CapturedResultItem` and is one of the base items of `RecognizedTextLinesResult`. - -## Definition - -*Namespace:* com.dynamsoft.dlr - -*Assembly:* DynamsoftLabelRecognizer.aar - -```java -class TextLineResultItem extends CapturedResultItem -``` - -*Inheritance:* [CapturedResultItem]({{ site.dcv_android_api }}core/basic-structures/captured-result-item.html) -> TextLineResultItem - -## Methods - -| Method | Description | -| ------ | ----------- | -| [`getText`](#gettext) | Gets the text content of the text line. | -| [`getLocation`](#getlocation) | Gets the location of the text line in the form of a quadrilateral. | -| [`getConfidence`](#getconfidence) | Gets the confidence of the text line recognition result. | -| [`getCharacterResults`](#getcharacterresults) | Get all the characters in the text line. Each character is represented by a [`CharacterResult`](character-result.md) object. | -| [`getSpecificationName`](#getspecificationname) | Get the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. | - -### getText - -Gets the text content of the individual text line. - -```java -String getText(); -``` - -**Return value** - -Returns the text content of the text line. - -### getLocation - -It is used to get the location of the text line in the form of a [Quadrilateral]({{ site.dcv_android_api }}core/basic-structures/quadrilateral.html). - -```java -Quadrilateral getLocation(); -``` - -**Return value** - -Returns the location of the text line in the form of a quadrilateral. - -### getConfidence - -Gets the confidence of the individual text line recognition result. - -```java -int getConfidence(); -``` - -**Return value** - -Returns the confidence of the text line recognition result. - -### getCharacterResults - -Returns all the characters in the text line. Each character is represented by a [`CharacterResult`](character-result.md) object. - -```java -CharacterResult[] getCharacterResults(); -``` - -**Return value** - -An array of [`CharacterResult`](character-result.md) contains all the characters. - -### getSpecificationName - -Get the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -```java -String getSpecificationName(); -``` - -**Return value** - -The name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. diff --git a/programming/maui/api-reference/recognized-text-lines-result-v2.6.1001.md b/programming/maui/api-reference/recognized-text-lines-result-v2.6.1001.md deleted file mode 100644 index 2297f56..0000000 --- a/programming/maui/api-reference/recognized-text-lines-result-v2.6.1001.md +++ /dev/null @@ -1,94 +0,0 @@ ---- -layout: default-layout -title: RecognizedTextLinesResult - Dynamsoft Capture Vision MAUI Edition -description: The class RecognizedTextLinesResult of Dynamsoft Capture Vision MAUI edition represents the result of a text recognition process. -keywords: Recognized text lines result -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: RecognizedTextLinesResult ---- - -# RecognizedTextLinesResult - -The `RecognizedTextLinesResult` class represents the overall result(s) of a text recognition process. It provides access to information about the recognized text lines, the original image, and any errors that occurred during the recognition process. - -## Definition - -*Namespace:* Dynamsoft.LabelRecognizer.Maui - -*Assembly:* Dynamsoft.LabelRecognizer.Maui - -```csharp -class RecognizedTextLinesResult -``` - -## Properties - -| Property | Type | Description | -| -------- | ---- | ----------- | -| [`OriginalImageHashId`](#originalimagehashid) | *String* | Gets the hash ID of the original image. | -| [`Items`](#items) | *IList* | Gets the text line result item at the specified index. | -| [`RotationTransformMatrix`](#rotationtransformmatrix) | *Matrix* | Get the rotation transformation matrix of the original image relative to the rotated image.| -| [`ErrorCode`](#errorcode) | *int* | Gets the error code of the recognition result, if an error occurred. | -| [`ErrorMessage`](#errormessage) | *String* | Gets the error message of the recognition result, if an error occurred. | - -### OriginalImageHashId - -Get the hash id of the original image. You can use this ID to get the original image via the [`IntermediateResultManager`]({{ site.dcv_maui_api }}capture-vision-router/auxiliary-classes/intermediate-result-manager.html) class. - -```csharp -String OriginalImageHashId { get; } -``` - -**Return value** - -Returns the hash ID of the original image as a string. - -### Items - -Gets all the text line result(s) recognized from the image/frame in an array of [`DSTextLineResultItem`](text-line-result-item.md). - -```csharp -IList Items { get; } -``` - -**Return value** - -Returns an array of `TextLineResultItem` that contains all text line recognition results. - -### RotationTransformMatrix - -Get the rotation transformation matrix of the original image relative to the rotated image. - -```csharp -Matrix RotationTransformMatrix { get; } -``` - -**Return Value** - -A `Matrix` which represents the rotation transform matrix. - -### ErrorCode - -Gets the error code of the recognition result, if an error occurred. - -```csharp -int ErrorCode { get; } -``` - -**Return value** - -Returns the error code of the recognition result, or 0 if no error occurred. - -### ErrorMessage - -Gets the error message of the recognition result, if an error occurred. - -```csharp -String ErrorMessage { get; } -``` - -**Return value** - -Returns a string that describes the error message. diff --git a/programming/objectivec-swift/api-reference/character-result-v2.6.1004.md b/programming/objectivec-swift/api-reference/character-result-v2.6.1004.md deleted file mode 100644 index 968fd95..0000000 --- a/programming/objectivec-swift/api-reference/character-result-v2.6.1004.md +++ /dev/null @@ -1,163 +0,0 @@ ---- -layout: default-layout -title: DSCharacterResult - Dynamsoft Label Recognizer iOS Edition -description: The class DSCharacterResult of Dynamsoft Label Recognizer iOS edition represents the result of a character recognition process. -keywords: Character result -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: DSCharacterResult -permalink: /programming/objectivec-swift/api-reference/character-result.html ---- - -# DSCharacterResult - -The `DSCharacterResult` class represents the result of a character recognition process. It contains the characters recognized (high, medium, and low confidence), their respective confidences, and the location of the character in a quadrilateral shape. - -## Definition - -*Assembly:* DynamsoftLabelRecognizer.xcframework - -
->- Objective-C ->- Swift -> ->1. -```objc -@interface DSCharacterResult : NSObject -``` -2. -```swift -class CharacterResult: NSObject -``` - -## Properties - -| Property | Type | Description | -| -------- | ---- | ----------- | -| [`characterH`](#characterh) | *unichar* | The character with high confidence. | -| [`characterM`](#characterm) | *unichar* | The character with medium confidence. | -| [`characterL`](#characterl) | *unichar* | The character with low confidence. | -| [`location`](#location) | *DSQuadrilateral \** | The location of the character in a quadrilateral shape. | -| [`characterHConfidence`](#characterhconfidence) | *NSInteger* | The confidence of the character with high confidence. | -| [`characterMConfidence`](#charactermconfidence) | *NSInteger* | The confidence of the character with medium confidence. | -| [`characterLConfidence`](#characterlconfidence) | *NSInteger* | The confidence of the character with low confidence. | - -### characterH - -The character with high confidence. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, assign, readonly) unichar characterH; -``` -2. -```swift -var characterH: unichar { get } -``` - -### characterM - -The character with medium confidence. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, assign, readonly) unichar characterM; -``` -2. -```swift -var characterM: unichar { get } -``` - -### characterL - -The character with low confidence. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, assign, readonly) unichar characterL; -``` -2. -```swift -var characterL: unichar { get } -``` - -### location - -The location of the character in a quadrilateral shape. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, nullable, readonly) DSQuadrilateral * location; -``` -2. -```swift -var location: Quadrilateral? { get } -``` - -### characterHConfidence - -The confidence of the character with high confidence. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, assign, readonly) NSInteger characterHConfidence; -``` -2. -```swift -var characterHConfidence: Int { get } -``` - -### characterMConfidence - -The confidence of the character with medium confidence. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, assign, readonly) NSInteger characterMConfidence; -``` -2. -```swift -var characterMConfidence: Int { get } -``` - -### characterLConfidence - -The confidence of the character with low confidence. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, assign, readonly) NSInteger characterLConfidence; -``` -2. -```swift -var characterLConfidence: Int { get } -``` diff --git a/programming/objectivec-swift/api-reference/raw-text-line-v2.6.1004.md b/programming/objectivec-swift/api-reference/raw-text-line-v2.6.1004.md deleted file mode 100644 index 8f77044..0000000 --- a/programming/objectivec-swift/api-reference/raw-text-line-v2.6.1004.md +++ /dev/null @@ -1,297 +0,0 @@ ---- -layout: default-layout -title: DSRawTextLine - Dynamsoft Label Recognizer iOS Edition -description: The class DSRawTextLine of Dynamsoft Label Recognizer iOS edition represents a unit which holds the raw text lines. -keywords: raw text lines unit, intermediate result unit -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: DSRawTextLine ---- - -# DSRawTextLine - -The `DSRawTextLine` class represents a text line in an image. It can be in one of the following states: - -- `TLS_LOCALIZED`: Localized but recognition not performed. -- `TLS_RECOGNITION_FAILED`: Recognition failed. -- `TLS_RECOGNIZED_SUCCESSFULLY`: Successfully recognized. - -## Definition - -*Assembly:* DynamsoftLabelRecognizer.xcframework - -
->- Objective-C ->- Swift -> ->1. -```objc -@interface DSRawTextLine: NSObject -``` -2. -```swift -class RawTextLine: NSObject -``` - -## Methods - -| Methods | Description | -| ------- | ----------- | -| [`getText`](#gettext) | Returns the recognized text. | -| [`setText`](#settext) | Sets the recognized text. | -| [`getConfidence`](#getconfidence) | Returns the confidence level of the recognized text. | -| [`getCharacterResults`](#getcharacterresults) | Returns all the characters contained by the textline. | -| [`getRowNumber`](#getrownumber) | Returns the row number of the text line within the image. | -| [`setRowNumber`](#setrownumber) | Sets the row number of the text line within the image. | -| [`getSpecificationName`](#getspecificationname) | Get the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. | -| [`setSpecificationName`](#setspecificationname) | Sets the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. | -| [`getLocation`](#getlocation) | Returns the location of the text line. | -| [`setLocation`](#setlocation) | Sets the location of the text line. | - -### getText - -Returns the recognized text. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSString*)getText; -``` -2. -```swift -func getText() -> String -``` - -**Return value** - -Returns the text of the text line. - -### setText - -Returns the recognized text. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSInteger)setText:(NSString *)text; -``` -2. -```swift -func setText(_ text: String) -> Int -``` - -**Parameter** - -`text`: The text. - -**Return value** - -Returns the `ErrorCode` if failed. Otherwise, returns 0. - -### getConfidence - -Returns the confidence level of the recognized text. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSInteger)getConfidence; -``` -2. -```swift -func getConfidence() -> Int -``` - -**Return value** - -Returns the confidence level of the text line. - -### getCharacterResults - -Returns all the characters contained by the textline in an array of [`DSCharacterResult`](character-result.md). - -
->- Objective-C ->- Swift -> ->1. -```objc --(nullable NSArray*)getCharacterResults; -``` -2. -```swift -func getCharacterResults() -> [CharacterResult] -``` - -**Return value** - -Returns all the characters contained by the textline in an array of [`DSCharacterResult`](character-result.md). - -### getRowNumber - -Returns the row number of the text line within the image. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSInteger)getRowNumber; -``` -2. -```swift -func getRowNumber() -> Int -``` - -**Return value** - -Returns the row number of the text line within the image. - -### setRowNumber - -Sets the row number of the text line within the image. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSInteger)setRowNumber:(NSInteger)rowNumber; -``` -2. -```swift -func setRowNumber(_ rowNumber: Int) -> Int -``` - -**Parameter** - -`rowNumber`: The row number of the text line within the image. - -**Return value** - -Returns 0 if success, otherwise an error code. - -### getSpecificationName - -Returns the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSString *)getSpecificationName; -``` -2. -```swift -func getSpecificationName() -> String -``` - -**Return value** - -The name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -### setSpecificationName - -Sets the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSInteger)setSpecificationName:(NSString *)specificationName; -``` -2. -```swift -func setSpecificationName(_ specificationName: String) -> Int -``` - -**Parameter** - -`specificationName`: The name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -**Return value** - -Returns 0 if success, otherwise an error code. - -### getLocation - -Returns a `Quadrilateral` object which represents the location of the text line. - -
->- Objective-C ->- Swift -> ->1. -```objc --(DSQuadrilateral *)getLocation; -``` -2. -```swift -func getLocation() -> Quadrilateral -``` - -**Return value** - -A `Quadrilateral` object which represents the location of the text line. - -### setLocation - -Set the location of the text line. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSInteger)setLocation:(DSQuadrilateral *)location; -``` -2. -```swift -func setLocation(_ location: Quadrilateral) -> Int -``` - -**Parameter** - -`location`: The location of the text line. - -**Return value** - -Returns 0 if success, otherwise an error code. - -### getStatus - -Returns the status of the text line. - -
->- Objective-C ->- Swift -> ->1. -```objc --(DSRawTextLineStatus)getStatus; -``` -2. -```swift -func getStatus() -> RawTextLineStatus -``` - -**Return value** - -The status of the text line. diff --git a/programming/objectivec-swift/api-reference/recognized-text-line-element-v2.2.3000.md b/programming/objectivec-swift/api-reference/recognized-text-line-element-v2.2.3000.md deleted file mode 100644 index 20a7c75..0000000 --- a/programming/objectivec-swift/api-reference/recognized-text-line-element-v2.2.3000.md +++ /dev/null @@ -1,174 +0,0 @@ ---- -layout: default-layout -title: DSRecognizedTextLineElement - Dynamsoft Label Recognizer iOS Edition -description: The class DSRecognizedTextLineElement of Dynamsoft Label Recognizer iOS edition represents a line of recognized text in an image. -keywords: Recognized text line element -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: DSRecognizedTextLineElement ---- - -# DSRecognizedTextLineElement - -The `DSRecognizedTextLineElement` class represents a line of recognized text in an image. It inherits from the [DSRegionObjectElement]({{ site.dcv_ios_api }}core/intermediate-results/region-object-element.html) class. - -## Definition - -*Assembly:* DynamsoftLabelRecognizer.xcframework - -
->- Objective-C ->- Swift -> ->1. -```objc -@interface DSRecognizedTextLineElement: DSRegionObjectElement -``` -2. -```swift -class RecognizedTextLineElement: RegionObjectElement -``` - -*Inheritance:* [DSRegionObjectElement]({{ site.dcv_ios_api }}core/intermediate-results/region-object-element.html) -> DSRecognizedTextLineElement - -## Methods - -| Methods | Description | -| ------- | ----------- | -| [`getText`](#gettext) | Returns the recognized text. | -| [`setText`](#settext) | Sets the recognized text. | -| [`getConfidence`](#getconfidence) | Returns the confidence level of the recognized text. | -| [`getCharacterResults`](#getcharacterresults) | Returns all the characters contained by the textline. | -| [`getRowNumber`](#getrownumber) | Returns the row number of the text line within the image. | -| [`getSpecificationName`](#getspecificationname) | Returns the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. | - -### getText - -Returns the recognized text. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSString*)getText; -``` -2. -```swift -func getText() -> String -``` - -**Return value** - -Returns the text of the text line. - -### setText - -Sets the recognized text. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSInteger)setText:(NSString *)text; -``` -2. -```swift -func setText(_ text: String) -> Int -``` - -**Parameter** - -`text`: The text. - -**Return value** - -Returns the `ErrorCode` if failed. Otherwise, returns 0. - -### getConfidence - -Returns the confidence level of the recognized text. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSInteger)getConfidence; -``` -2. -```swift -func getConfidence() -> Int -``` - -**Return value** - -Returns the confidence level of the text line. - -### getCharacterResults - -Returns all the characters contained by the textline in an array of [`DSCharacterResult`](character-result.md). - -
->- Objective-C ->- Swift -> ->1. -```objc --(nullable NSArray*)getCharacterResults; -``` -2. -```swift -func getCharacterResults() -> [CharacterResult] -``` - -**Return value** - -Returns all the characters contained by the textline in an array of [`DSCharacterResult`](character-result.md). - -### getRowNumber - -Returns the row number of the text line within the image. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSInteger)getRowNumber; -``` -2. -```swift -func getRowNumber() -> Int -``` - -**Return value** - -Returns the row number of the text line within the image. - -### getSpecificationName - -Get the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -
->- Objective-C ->- Swift -> ->1. -```objc --(NSString *)getSpecificationName; -``` -2. -```swift -func getSpecificationName() -> String -``` - -**Return value** - -The name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. diff --git a/programming/objectivec-swift/api-reference/recognized-text-lines-result-v2.6.1004.md b/programming/objectivec-swift/api-reference/recognized-text-lines-result-v2.6.1004.md deleted file mode 100644 index 2917770..0000000 --- a/programming/objectivec-swift/api-reference/recognized-text-lines-result-v2.6.1004.md +++ /dev/null @@ -1,145 +0,0 @@ ---- -layout: default-layout -title: DSRecognizedTextLinesResult - Dynamsoft Label Recognizer iOS Edition -description: The class DSRecognizedTextLinesResult of Dynamsoft Label Recognizer iOS edition represents the result of a text recognition process. -keywords: Recognized text lines result -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: DSRecognizedTextLinesResult -permalink: /programming/objectivec-swift/api-reference/recognized-text-lines-result.html ---- - -# DSRecognizedTextLinesResult - -The `DSRecognizedTextLinesResult` class represents the overall result(s) of a text recognition process. It provides access to information about the recognized text lines, the original image, and any errors that occurred during the recognition process. - -## Definition - -*Assembly:* DynamsoftLabelRecognizer.xcframework - -
->- Objective-C ->- Swift -> ->1. -```objc -@interface DSRecognizedTextLinesResult : NSObject -``` -2. -```swift -class RecognizedTextLinesResult: NSObject -``` - -## Properties - -| Property | Type | Description | -| -------- | ---- | ----------- | -| [`originalImageHashId`](#originalimagehashid) | *NSString \** | The hash ID of the original image. | -| [`originalImageTag`](#originalimagetag) | *DSImageTag \** | The tag of the original image stores in a [`DSImageTag`]({{ site.dcv_ios_api }}core/basic-structures/image-tag.html) object. | -| [`items`](#items) | *NSArray \** | All the text line result items that recognized from the image in an array of [`DSTextLineResultItem`](text-line-result-item.md). | -| [`rotationTransformMatrix`](#rotationtransformmatrix) | *CGAffineTransform* | The rotation transformation matrix of the original image relative to the rotated image.| -| [`errorCode`](#errorcode) | *NSInteger* | The error code of the recognition result, if an error occurred. | -| [`errorMessage`](#errormessage) | *NSString \** | The error message of the recognition result, if an error occurred. | - -### originalImageHashId - -The hash ID of the original image. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, nullable, readonly) NSString* originalImageHashId; -``` -2. -```swift -var originalImageHashId: String? { get } -``` - -### originalImageTag - -The tag of the original image stores in a [`DSImageTag`]({{ site.dcv_ios_api }}core/basic-structures/image-tag.html) object. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, nullable, readonly) DSImageTag* originalImageTag; -``` -2. -```swift -var originalImageTag: ImageTag? { get } -``` - -### items - -All the text line result items that recognized from the image in an array of [`DSTextLineResultItem`](text-line-result-item.md). - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, nullable, readonly) NSArray* items; -``` -2. -```swift -var items: [TextLineResultItem]? { get } -``` - -### rotationTransformMatrix - -Get the rotation transformation matrix of the original image relative to the rotated image. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, nullable, assign, readonly) CGAffineTransform rotationTransformMatrix; -``` -2. -```swift -var rotationTransformMatrix: CGAffineTransform { get } -``` - -### errorCode - -Returns the error code of this result should something go wrong. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, assign, readonly) NSInteger errorCode; -``` -2. -```swift -var errorCode: Int { get } -``` - -### errorMessage - -Returns the error message of this result should something go wrong. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, assign, readonly) NSString * errorMessage; -``` -2. -```swift -var errorMessage: String { get } -``` diff --git a/programming/objectivec-swift/api-reference/recognized-text-lines-unit-v2.2.3000.md b/programming/objectivec-swift/api-reference/recognized-text-lines-unit-v2.2.3000.md deleted file mode 100644 index ce3ebde..0000000 --- a/programming/objectivec-swift/api-reference/recognized-text-lines-unit-v2.2.3000.md +++ /dev/null @@ -1,172 +0,0 @@ ---- -layout: default-layout -title: DSRecognizedTextLinesUnit - Dynamsoft Label Recognizer iOS Edition -description: The class DSRecognizedTextLinesUnit of Dynamsoft Label Recognizer iOS edition represents an intermediate result unit containing recognized text lines. -keywords: Recognized text lines unit -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: DSRecognizedTextLinesUnit ---- - -# DSRecognizedTextLinesUnit - -The `DSRecognizedTextLinesUnit` class represents an intermediate result unit containing recognized text lines. It inherits from the [DSIntermediateResultUnit]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html) class. - -## Definition - -*Assembly:* DynamsoftLabelRecognizer.xcframework - -
->- Objective-C ->- Swift -> ->1. -```objc -@interface DSRecognizedTextLinesUnit: DSIntermediateResultUnit -``` -2. -```swift -class RecognizedTextLinesUnit: IntermediateResultUnit -``` - -*Inheritance:* [DSIntermediateResultUnit]({{ site.dcv_ios_api }}core/intermediate-results/intermediate-result-unit.html) -> DSRecognizedTextLinesUnit - -## Methods - -| Method | Description | -| ------ | ----------- | -| [`getRecognizedTextLines`](#getrecognizedtextlines) | Get all the recognized text lines in an array of [`DSRecognizedTextLineElement`](recognized-text-line-element.md). | -| [`getCount`](#getcount) | Returns the number of text lines in this unit. | -| [`getRecognizedTextLine`](#getrecognizedtextline) | Returns the text line at the specified index in a [`DSRecognizedTextLineElement`](recognized-text-line-element.md) object. | -| [`removeAllRecognizedTextLines`](#removeallrecognizedtextlines) | Removes all the recognized text lines from this unit. | -| [`setRecognizedTextLine`](#setrecognizedtextline) | Sets the text line at the specified index. | - -### recognizedTextLines - -All the recognized text lines of this unit in an array of [`DSRecognizedTextLineElement`](recognized-text-line-element.md). - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, nullable, copy) NSArray* recognizedTextLines; -``` -2. -```swift -var recognizedTextLines: [RecognizedTextLineElement]? { get } -``` - -### getRecognizedTextLines - -Gets all the recognized text lines in an array of [`DSRecognizedTextLineElement`](recognized-text-line-element.md). - -
->- Objective-C ->- Swift -> ->1. -```objc -- (NSArray*)getRecognizedTextLines; -``` -2. -```swift -func getRecognizedTextLines() -> [RecognizedTextLineElement]? -``` - -**Return value** - -All the recognized text lines in an array of [`DSRecognizedTextLineElement`](recognized-text-line-element.md). - -### getCount - -Returns the number of text lines in this unit. - -
->- Objective-C ->- Swift -> ->1. -```objc -- (NSInteger)getCount; -``` -2. -```swift -func getCount() -> Int -``` - -**Return value** - -The number of text lines in this unit. - -### getRecognizedTextLine - -Returns the text line at the specified index in a [`DSRecognizedTextLineElement`](recognized-text-line-element.md) object. - -
->- Objective-C ->- Swift -> ->1. -```objc -- (nullable DSRecognizedTextLineElement*)getRecognizedTextLine:(NSInteger)index; -``` -2. -```swift -func getRecognizedTextLine(_ index: Int) -> RecognizedTextLineElement? -``` - -**Parameters** - -`index`: The index of the text line in this unit. - -**Return value** - -The text line at the specified index in a [`DSRecognizedTextLineElement`](recognized-text-line-element.md) object. - -### removeAllRecognizedTextLines - -Removes all the recognized text lines from this unit. - -
->- Objective-C ->- Swift -> ->1. -```objc -- (void)removeAllRecognizedTextLines; -``` -2. -```swift -func removeAllRecognizedTextLines() -``` - -### setRecognizedTextLine - -Sets the text line at the specified index in a [`DSRecognizedTextLineElement`](recognized-text-line-element.md) object. - -
->- Objective-C ->- Swift -> ->1. -```objc -- (NSInteger)setRecognizedTextLine:(DSRecognizedTextLineElement*)element - matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage; -``` -2. -```swift -func setRecognizedTextLine(_ element: RecognizedTextLineElement, matrixToOriginalImage: CGAffineTransform) -> Int -``` - -**Parameters** - -`element`: The [`DSRecognizedTextLineElement`](recognized-text-line-element.md) object to be set. - -`matrixToOriginalImage`: The matrix to transform the original image. - -**Return value** - -Returns the `ErrorCode` if failed. Otherwise, returns 0. diff --git a/programming/objectivec-swift/api-reference/text-line-result-item-v2.2.3000.md b/programming/objectivec-swift/api-reference/text-line-result-item-v2.2.3000.md deleted file mode 100644 index ced5435..0000000 --- a/programming/objectivec-swift/api-reference/text-line-result-item-v2.2.3000.md +++ /dev/null @@ -1,128 +0,0 @@ ---- -layout: default-layout -title: DSTextLineResultItem - Dynamsoft Label Recognizer iOS Edition -description: The class DSTextLineResultItem of Dynamsoft Label Recognizer iOS edition represents a text line result item recognized by a document layout analysis engine. -keywords: Text line result item -needGenerateH3Content: true -needAutoGenerateSidebar: true -noTitleIndex: true -breadcrumbText: DSTextLineResultItem ---- - -# DSTextLineResultItem - -The `DSTextLineResultItem` class represents a single text line result item recognized by the library. It is derived from `DSCapturedResultItem` and is one of the base units of `DSRecognizedTextLinesResult`. - -## Definition - -*Assembly:* DynamsoftLabelRecognizer.xcframework - -
->- Objective-C ->- Swift -> ->1. -```objc -@interface DSTextLineResultItem: DSCapturedResultItem -``` -2. -```swift -class TextLineResultItem: CapturedResultItem -``` - -*Inheritance:* [DSCapturedResultItem]({{ site.dcv_ios_api }}core/basic-structures/captured-result-item.html) -> DSTextLineResultItem - -## Properties - -| Property | Type | Description | -| -------- | ---- | ----------- | -| [`text`](#text) | *NSString \** | The text content of the text line. | -| [`location`](#location) | *DSQuadrilateral \** | The location of the text line in the form of a quadrilateral. | -| [`confidence`](#confidence) | *NSInteger* | The confidence of the text line recognition result. | -| [`characterResults`](#characterresults) | *NSArray \** | All the characters in the text line. Each character is represented by a [`CharacterResult`](character-result.md) object. | -| [`specificationName`](#specificationname) | *NSString \** | the name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. | - -### text - -Returns the text content of the individual text line. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, nullable, readonly) NSString* text; -``` -2. -```swift -var text: String? { get } -``` - -### location - -It is used to get the location of the text line in the form of a [DSQuadrilateral]({{ site.dcv_ios_api }}core/basic-structures/quadrilateral.html). - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, nullable, readonly) DSQuadrilateral* location; -``` -2. -```swift -var location: Quadrilateral? { get } -``` - -### confidence - -Returns the confidence of the individual text line recognition result. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, assign, readonly) NSInteger confidence; -``` -2. -```swift -var confidence: Int { get } -``` - -### characterResults - -Returns all the characters in the text line. Each character is represented by a [`CharacterResult`](character-result.md) object. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, nullable, readonly) NSArray* charResult; -``` -2. -```swift -var charResult: [CharacterResult]? { get } -``` - -### specificationName - -The name of the [`TextLineSpecification`]({{site.dcv_parameter_reference}}text-line-specification/) object that generated this `TextLineResultItem`. - -
->- Objective-C ->- Swift -> ->1. -```objc -@property (nonatomic, readonly, assign) NSString* specificationName; -``` -2. -```swift -var specificationName: String { get } -```