Detects and classifies the objects of the 80 COCO classes (person, car, dog, bottle, chair...) in the video with the NanoDet-Plus (fast) or YOLOX-S (accurate) model, with a class filter and stable ids. Use it to count the people in a space, to react to a given object on stage or to drive a zone by the kind of object, where a blob does not know what it sees.
A kitchen at 1920 x 1080, model accurate: two persons (green), three bottles, the oven, the dining table and the sink, one color per class.
The model runs on a thread of the module, on a copy of the frame: the video is never delayed, and the outputs are those of the last finished inference. The boxes of the overlay are colored by class and carry no label: read class for the kind of each object. A frame costs about 1.2 ms at 1920 x 1080 and 3.4 ms at 3840 x 2160.
Bypasses the module processing when activated (ON).
Video input flow(s).
Video output flow(s).
Total time used for the calculation of the module.
Detection model (default fast). Changing it reloads the model: the main thread is held about 70 ms, the video goes on.
Minimum score of an object, from 0 to 1 (default 0.4). Lower values find more objects and more mistakes: at 0.3 the fast model also finds the table, bowls, a cup, bottles, a chair and the oven of the kitchen above, all between 0.31 and 0.39. At 0.95 nothing is found.
Largest overlap of two boxes of the same class, from 0 to 1 (default 0.5): beyond it (intersection over union) they are taken for one object, and the box of lower score is removed. At 1 no box is removed and the duplicates stay, up to max objects.
Largest number of objects output, from 1 to 64 (default 20): those of best score.
Classes to detect, by name or by number, separated by commas or semicolons (default empty: every class). Unknown names are ignored, and when no name is valid every class is detected. The 80 classes are: 0 person, 1 bicycle, 2 car, 3 motorcycle, 4 airplane, 5 bus, 6 train, 7 truck, 8 boat, 9 traffic light, 10 fire hydrant, 11 stop sign, 12 parking meter, 13 bench, 14 bird, 15 cat, 16 dog, 17 horse, 18 sheep, 19 cow, 20 elephant, 21 bear, 22 zebra, 23 giraffe, 24 backpack, 25 umbrella, 26 handbag, 27 tie, 28 suitcase, 29 frisbee, 30 skis, 31 snowboard, 32 sports ball, 33 kite, 34 baseball bat, 35 baseball glove, 36 skateboard, 37 surfboard, 38 tennis racket, 39 bottle, 40 wine glass, 41 cup, 42 fork, 43 knife, 44 spoon, 45 bowl, 46 banana, 47 apple, 48 sandwich, 49 orange, 50 broccoli, 51 carrot, 52 hot dog, 53 pizza, 54 donut, 55 cake, 56 chair, 57 couch, 58 potted plant, 59 bed, 60 dining table, 61 toilet, 62 tv, 63 laptop, 64 mouse, 65 remote, 66 keyboard, 67 cell phone, 68 microwave, 69 oven, 70 toaster, 71 sink, 72 refrigerator, 73 book, 74 clock, 75 vase, 76 scissors, 77 teddy bear, 78 hair drier, 79 toothbrush.
classes = person
class = [0, 0]
classes = 39, cup
class = bottles (39) and cups (41) only
classes = table
class = every class: table is not a class name, dining table is
Smoothing of the boxes from one inference to the next, from 0 to 0.95 (default 0.3). At 0 the outputs follow each inference exactly; higher values are steadier and react more slowly. The scores are not smoothed.
When ON (default), draws on video out 1 the box of each object, in one of 8 colors given by its class: green for a person, white for a bottle. The lines are thicker on large frames, so that they stay visible on a screen. When OFF, video out 1 is the input unchanged.
When ON, video out 1 shows the analysed frame with its own boxes, kept until the next result: the boxes line up exactly, but the picture changes only at the rate of the inferences. When OFF (default), it shows the live video with the results of the last inference.
Number of threads ONNX Runtime uses for the model, from 1 to 8 (default 2). Changing it reloads the model. This inlet is hidden by default. With the accurate model at 1920 x 1080, an inference takes 118 ms with 1 thread, 62 ms with 2, 37 ms with 4 and 26 ms with 8.
Number of objects found, from 0 to max objects: the length of the arrays below.
input = the kitchen above, model accurate
count = 8
class = [0, 0, 39, 39, 39, 69, 60, 71]
score = [0.91, 0.90, 0.78, 0.74, 0.66, 0.58, 0.41, 0.40]
Array of the class number of each object, from 0 to 79 (the list under classes), the best score first.
Array of the detection score of each object, from 0 to 1, the best first.
Array of the x of the center of each box, from 0 (left edge) to 1 (right edge).
Array of the y of the center of each box, from 0 (top edge) to 1 (bottom edge).
Array of the width of each box, from 0 to 1 in frame widths.
Array of the height of each box, from 0 to 1 in frame heights.
Array of the id of each object, from 1 to 999999. An object keeps its id while its box overlaps its box of the previous inference with the same class (intersection over union of at least 0.3); a new object gets the next id, so an object that is lost and found again gets a new one.
Time of the last analysis in ms: about 10 ms (fast) and 62 ms (accurate) at 1920 x 1080.
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