OptrisOptrisDocumentation

Documentation/OTC SDK/optris_sdk — Python API referencev12.0

RegionThreshold

class optris_sdk.measurement.RegionThreshold

Count this region's pixels past a limit.

An operator watching a process usually cares less about the single hottest pixel in a region than about how much of it has crossed a line: what fraction of a brake disc is over 200 C, how much of a pane is still below its setpoint. The share moves smoothly where a maximum jumps around.

Off by default. Unlike percentiles this costs no selection and no storage, so it is opt-in only because a threshold nobody chose has no meaningful value::

region = Region.rect((0.5, 0.375), (0.4, 0.3))
region.threshold = RegionThreshold(200.0)
region_id = camera.regions.add(region)
share = camera.regions.threshold_share(region_id)

RegionThreshold — methods

__repr__()