HoughLines
The HoughLines block detects straight lines.
Library
ComputerVision/Images/Detection
Description
The HoughLines block works in conjunction with the CannysEdge block to detect straight lines in the specified image based on minimum line intersections, minimum line lengths, and maximum line gaps.
To display the detected lines, wire the Hough Lines block to a Draw Lines block. Similarly, to count detected lines, wire the HoughLines block to a CountObjects block.
Parameters
Name | Label | Description | Data Type | Valid Values |
---|---|---|---|---|
useInput | Use inputs | Use inputs to define threshold values. | Number | 0 |
distResolution | Threshold | Specifies the minimum line intersections to be detected. | Scalar | |
angleResolution | Min Line Length | Specifies the minimum line length to be detected. | Scalar | |
voteThreshold | Min Line Gap | Specifies the maximum line gap to be detected. | Scalar | |
externalActivation | External activation | This parameter defines if the block receives or inherits an external activation. When External Activation is used, an additional activation port is added to the block. Default is OFF. | Number | 0 |
Ports
Name | Type | Description | IO Type | Number |
---|---|---|---|---|
src(Binary) | explicit | input | 1 | |
lines | explicit | output | 1 | |
Port 3 | explicit | input | useInput | |
Port 4 | activation | input | externalActivation |