Video Detection

Video detection module for interaction with a camera.

Works as a motion detector, light zones or dark zones detection.

Settings

video in

Video input flow.

start detection

Starts the detection process.

stop detection

Stops the detection process.

luminance

Gives the average luminance of the current frame.

max value

  • In motion detection mode gives the maximum of the difference between the current frame and the previous frame.
  • In light zones mode gives the maximum luminance of the current frame.
  • In dark zones mode gives (256 - minimum luminance) of the current frame. Can be helpful for calibration and to adjust the threshold value.

detect mode

Detection mode.

  • motion: detects the movements.
  • light zones: detects light or white zones.
  • dark zones: detects darks or black zones.

threshold

Detection threshold and sensibility.

  • 0 always detected.
  • 255 never detected.

group tolerance

Determines if zones which are close together are grouped into a single zone.

  • 0 not grouped
  • 10 if the distance between two zones is less than 10 pixels they are grouped together.
  • etc.

nb zones found

Number of detected zones.

detected

Array of 0 or 1 with a nb zone found length.

For example if 3 zones are detected this output is the array [1,1,1].

zones X

X position of all the zones. Array of single (0..1) which gives the position of each zone on the X axis.

For example [0.23,0.67,0.96] is for a 3 zones detection, the first X position is at 0.23 the second at 0.67 and so on.

zones Y

Y position of all the zones. Array of single (0..1) which gives the position of each zone on the Y axis.

For example [0.23,0.67,0.96] is for a 3 zones detection, the firstr Y position is at 0.23 the second at 0.67 and so on.

surfaces

Array of single which gives the surface of each zone. The surface is (width x height).

barycenter X

Coordinates of the barycenter X of all the zones. It's the average position.

barycenter Y

Coordinates of the barycenter Y of all the zones. It's the average position.

detected N

Sends a 1 value if the Nth zone is detected.

zone X

Position of the X Nth zone.

zone Y

Position of the Y Nth zone.

surface

Surface of the Nth zone.

zones opacity

Opacity value of detected zones.

See also

Edit All Pages