Video Detection Blob

Detects connected bright regions (blobs) in the video and outputs their positions and sizes as arrays.

A pixel belongs to a blob when its luminance reaches the threshold. Two such pixels belong to the same blob when a path of such pixels, each touching the next by a side, joins them: pixels that only touch by a corner are not connected. The blobs are listed in the order of their first pixel when the image is read row by row from the top, each row from left to right: a blob whose top row is higher comes first. Blobs smaller than min size are skipped, and at most 16 blobs are output.

Settings

video in

Video input flow(s).

process time

Total time used for the calculation of the module.

threshold

Luminance threshold, from 0 to 1 (default 0.3): a pixel belongs to a blob when its luminance (0.30 R + 0.59 G + 0.11 B, from 0 to 1) is at least this value. At 0 every pixel does and the whole image is one blob.

min size

Minimum blob size, as a fraction of the number of pixels of the image, from 0 to 1 (the value itself, not a percentage): blobs with fewer pixels are discarded. Default 0.01, that is 1% of the image. At 0 every blob counts, even a single pixel.

X

Array output containing the X position of each detected blob: the middle of its bounding box (half-way between its leftmost and rightmost pixels) divided by the image width, from 0 (left edge) to nearly 1 (right edge). It is not the center of mass: for a ring-shaped blob, the point (X, Y) falls in the hole. Each frame gives 16 values: the first count values are the blobs, the others are 0.

Y

Array output containing the Y position of each detected blob: the middle of its bounding box (half-way between its top and bottom pixels) divided by the image height, from 0 (top edge) to nearly 1 (bottom edge). Each frame gives 16 values: the first count values are the blobs, the others are 0.

size

Array output containing the size of each detected blob, as a fraction of the image: its number of pixels divided by the number of pixels of the image, from 0 to 1. Each frame gives 16 values: the first count values are the blobs, the others are 0.

count

Number of blobs detected in the current frame, from 0 to 16: when more blobs reach min size, only the first 16 in the order above are output. It gives how many values of X, Y and size are valid.

Common Settings

info

show manual

Button. Opens the manual page of the selected object (or of its parent module for a control) in the web browser. If no page exists for this object, an error is traced in the trace panel.

For more details about information/help creation, see create-help-file.

description

Free multi-line text attached to the module, saved with the patch. When it is not empty, it is shown as the hint of the module (mouse over the module header in the patch) in place of the default module hint, even when the module hints are disabled.

ID's

visible only in god mode, see setup-panel-tab-expert.

unique ID

Read-only, not saved. Current private numeric ID of the object, used internally to identify it (for example as the target of a bind ID).

preset ID

Read-only, not saved. Private ID used to store and recall the values of this control in presets.

recreate ID

Button. Generates a new unique ID, original ID and preset ID for the object. Use it if you experience difficulties in Polyphonic mode or if two objects share the same ID. Preset values and binds referring to the old IDs are lost.

Object Remote Address

absolute

Read-only, not saved. Absolute address of the object in the Usine objects tree, built from the workspace root. This is the address to use to reach the object from scripts, the objects panel or remote messages. Only shown for objects that are registered in the objects list. See objects-address.

local

Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.

user addr

Free user-defined address for the object (empty by default). When set, the object is also registered in the objects tree under this name, so it can be reached independently of its position in the workspace (the value is also reported in the mouse-over and mouse-down chunks). Changing it rebuilds the objects list. Only available on objects that support a user address. See objects-address.

See also

version 7.0.250921

Edit All Pages