Finds a small reference picture, the template, in the video by normalized cross-correlation, and outputs the positions and scores of the best matches. Use it to locate a printed or projected marker and align a mapping automatically, to follow an object cut from a frozen frame, or to recognize a logo or a symbol in a feed.
A train door found in the scene with a score of 1, and the template: a crop of 81 x 124 pixels of the same picture.
The luma is compared, and the brightness and contrast are ignored: a copy of the template with another brightness or contrast scores 1 too. Scale and rotation are not ignored: an object that comes nearer or turns scores lower. Cut the template with Video Mapping Crop Resize, whose output has the size of its rectangle: Video Mapping Crop keeps the size of its input and finds nothing. A frame costs about 1 ms at 1920 x 1080 and 3.5 ms at 3840 x 2160 (quality normal). On a 3840 x 2160 scene, use templates of 24 x 24 pixels or more: smaller ones cost 10 to 40 ms.
Bypasses the module processing when activated (ON).
Video input flow(s).
The picture to find, at its own size: at least 4 x 4 pixels and smaller than video in 1. Its luma is compared and its alpha ignored. It is read again at each frame, so it may change. Without a template, or with a plain one, nothing is found.
Video output flow(s).
Total time used for the calculation of the module.
Largest number of matches, from 1 to 16 (default 1). It also sets the length of the x, y and score arrays.
Lowest score of a match, from 0 to 1 (default 0.7). A score of 1 is a copy identical up to brightness and contrast.
Smallest distance between two matches, from 0 to 2 (default 0.5), in template widths in x and template heights in y: a match is kept only when it is farther than that from every better match, in x or in y.
Effort of the coarse search (default normal).
When ON (default), draws on video out 1 a frame around each match and a cross at the center of the best one. They grow with the scene so that they stay visible on a reduced view: a frame of 2 pixels up to 1079 lines, 3 pixels at 1920 x 1080 and 6 pixels at 3840 x 2160. When OFF, video out 1 is the scene unchanged.
Color of the frames and of the cross (default $FFFF8000, orange).
Number of matches found, from 0 to max matches.
Array of max matches entries: the x of the center of each match, from 0 (left edge) to 1 (right edge), the best match first, then 0 past count.
Array of max matches entries: the y of the center of each match, from 0 (top edge) to 1 (bottom edge), the best match first, then 0 past count.
Array of max matches entries: the score of each match, from 0 to 1, the best match first, then 0 past count.
x of the center of the best match, from 0 to 1 (0 when there is none).
y of the center of the best match, from 0 to 1 (0 when there is none).
Highest score found in the scene, from -1 to 1, even below threshold (0 without a template): a guide to set threshold.
ON while at least one match reaches threshold.
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.
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.
visible only in god mode, see setup-panel-tab-expert.
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).
Read-only, not saved. Private ID used to store and recall the values of this control in presets.
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.
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.
Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.
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.
version 7.0.250921
Edit All Pages