Table of contents

This documentation is deprecated. It applies only to legacy version 2.x of Capture Vision and must not be used for new development.

Please refer to the latest documentation and Migration Guide, which supersede this content.

LogicLinesUnit

The LogicLinesUnit class represents an intermediate result unit containing logic lines. It inherits from the IntermediateResultUnit class.

Definition

Assembly: DynamsoftCaptureVisionBundle.xcframework

  • Objective-C
  • Swift
  1. @interface DSLogicLinesUnit: DSIntermediateResultUnit
    
  2. class LogicLinesUnit: IntermediateResultUnit
    

Methods

Methods Description
getLogicLines Get an array of LineSegment as the logic lines.
getCount Get the number of logic lines.
getLogicLine Get a logic line.
removeAllLogicLines Remove all logic lines.
removeLogicLine Remove a logic line.
addLogicLine Add a logic line.
setLogicLine Set a logic line.

getLogicLines

Get an array of LineSegment as the logic lines.

  • Objective-C
  • Swift
  1. -(nullable NSArray<DSLineSegment*>*)getLogicLines;
    
  2. func getLogicLines() -> [LineSegment]?
    

Return Value

Returns an array of LineSegment as the logic lines.

getCount

Gets the number of logic lines in the unit.

  • Objective-C
  • Swift
  1. -(NSInteger)getCount;
    
  2. func getCount() -> Int
    

Return Value

Returns the number of logic lines in the unit.

getLogicLine

Gets a logic line at the specified index.

  • Objective-C
  • Swift
  1. -(nullable DSLineSegment*)getLogicLine:(NSInteger)index;
    
  2. func getLogicLine(_ index: Int) -> LineSegment?
    

Parameters

index The index of the logic line.

Return Value

Returns a reference to the LineSegment object at the specified index.

removeAllLogicLines

Removes all logic lines.

  • Objective-C
  • Swift
  1. -(void)removeAllLogicLines;
    
  2. func removeAllLogicLines()
    

removeLogicLine

Removes the logic line at the specified index.

  • Objective-C
  • Swift
  1. -(NSInteger)removeLogicLine:(NSInteger)index;
    
  2. func removeLogicLine(_ index: Int) -> Int
    

Parameters

index The index of the logic line to remove.

Return Value

Returns 0 if successful, otherwise returns a negative value.

addLogicLine

Adds a logic line.

  • Objective-C
  • Swift
  1. -(NSInteger)addLogicLine:(DSLineSegment*)line
       matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;
    
  2. func addLogicLine(_ line: LineSegment, matrixToOriginalImage: CGAffineTransform) -> Int
    

Parameters

logicLine The logic line to add.

matrixToOriginalImage The matrix to the original image (3x3 matrix).

Return Value Returns 0 if successful, otherwise returns a negative value.

setLogicLine

Sets the logic line at the specified index.

  • Objective-C
  • Swift
  1. -(NSInteger)setLogicLine:(NSInteger)index
                    line:(DSLineSegment*)line
       matrixToOriginalImage:(CGAffineTransform)matrixToOriginalImage;
    
  2. func setLogicLine(_ index: Int, line: LineSegment, matrixToOriginalImage: CGAffineTransform) -> Int
    

Parameters

index The index of the logic line to set.

logicLine The logic line to set.

matrixToOriginalImage The matrix to the original image (3x3 matrix).

Return Value

Returns 0 if successful, otherwise returns a negative value.

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: