CheckPresence_Intensity
Verifies object presence by analysing pixel intensities in the specified region.
Applications:Quick and easy presence verification, e.g. for missing caps, screws, labels.
Syntax
C++
C#
Python
def CheckPresence_Intensity( inImage: Image, inRoi: ShapeRegion, /, *, inRoiAlignment: CoordinateSystem2D | None = None, inMinIntensity: float | None = None, inMaxIntensity: float | None = None, inMinContrast: float = 0, inMaxContrast: float | None = None, outAlignedRoi: ShapeRegion | None = None ) -> ( outIsPresent: bool, outIntensity: float, outContrast: float )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | Input image | ||
![]() |
inRoi | ShapeRegion | Location at which object presence is being checked | ||
![]() |
inRoiAlignment | CoordinateSystem2D | None | None | Adjusts the region of interest to the position of the inspected object | |
![]() |
inMinIntensity | float | None | None | Lowest acceptable value for the average pixel value | |
![]() |
inMaxIntensity | float | None | None | Highest acceptable value for the average pixel value | |
![]() |
inMinContrast | float | 0.0 - ![]() |
0 | Lowest acceptable value for the standard deviation of the pixel values |
![]() |
inMaxContrast | float | None | 0.0 - ![]() |
None | Highest acceptable value for the standard deviation of the pixel values |
![]() |
outIsPresent | bool | Flag indicating whether the object is present or not | ||
![]() |
outIntensity | float | Average pixel value | ||
![]() |
outContrast | float | Standard deviation of the pixel values | ||
![]() |
outAlignedRoi | ShapeRegion | None | None | Input ROI after transformation (in the image coordinates) |



