Line Detector

<< Click to Display Table of Contents >>

Navigation:  Function block library > Image processing >

Line Detector

Previous pageReturn to chapter overviewNext page

linedetector

Searches for a line in the input image.

 

Inputs

Type

Default

Description

Input

image


Input image

Threshold

int

0

The threshold is defines the sensitivity of the line detection algorithm to discontinuities within the image. To cancel noises choose a higher threshold.

Range: [0, 255]

Search start

int

20

The algorithm starts searching for a line starting at "Search start" from the bottom.

Search height

int

20

The image is searched from the bottom up for the detection of edges. The limit value defines the number of lines the image is searched starting at the bottom plus "Search start" in order to detected a segment in the form of a line.





Outputs




x

int


x-position of the line located at the bottom edge of the image

Line found

bool


True if a line is found. False otherwise.