OptrisOptrisDocumentation

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

RegionStyle

class optris_sdk.measurement.RegionStyle

How a region is drawn in the overlay.

Carried by the region whatever the pipeline: honoured wherever overlays are drawn, saved into the region document a recording and a camera configuration carry, and it does not change what the region measures.

A fresh instance carries the SDK's own defaults, read from the library rather than restated here so the two cannot drift: a 2 px red outline, a white label, a 5 px crosshair, label and aperture both off::

spot = Region.spot((0.5, 0.375))
style = spot.style
style.color = (0.0, 0.5, 1.0, 1.0)
style.show_label = True
spot.style = style

RegionStyle — methods

__repr__()