Skip to content

Clean horizontal noise (Hough method)

Description

Removes noise in the form of horizontal lines from masks using Hough transformation.
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)
  • Votes threshold (votes_threshold): Threshold to allow a line (default: 100)

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="IptCleanHorizontalNoiseHough",
    source="18HP01U17-CAM11-20180712221558.jpg",
    return_type="result",
    votes_threshold=24
)

Result

Result image