Skip to content

Clean horizontal noise

Description

Removes noise in the form of horizontal lines from masks.
Used with light barriers
Real time: False

Usage

  • Mask cleanup: Cleans a coarse mask generated by threshold tools

Parameters

  • Activate tool (enabled): Toggle whether or not tool is active (default: 1)
  • Minimal size for a line to be considered for removal (min_line_size): (default: 11)
  • Maximum number of iterations to perform (max_iter): (default: 100)
  • Remove blocks of lines (fully_isolated): (default: 1)

Example

Source

Source image

Parameters/Code

Default values are not needed when calling function

1
2
3
4
5
6
7
8
from ipapi.ipt import call_ipt

mask = call_ipt(
    ipt_id="IptCleanHorizontalNoise",
    source="18HP01U17-CAM11-20180712221558.jpg",
    return_type="result",
    enabled=0
)

Result

Result image