Track dual-color bar
dual-color-bar.trackTrack a narrow cursor relative to a wide target bar using column clusters in an explicit image region.
Example use
Detect the two-color bar in an image and use pointer position, target width and confidence for later control decisions.
Node preview
Right-drag to pan and scroll to zoom. Expand inputs and edit parameters to see how ports change. This preview does not run the node; reopening the page restores the example.
Loading node preview…
Data inputs 11
- Source image
imageImage Image to analyze.
RequiredDefault:None- Cursor color
inner-rangeColor range RGB or HSV range for the narrow cursor.
RequiredDefault:NoneValue format examples
{"maximum":[255,80,80],"minimum":[220,0,0],"space":"rgb"}{"maximum":[75,100,100],"minimum":[45,30,60],"space":"hsv"}- Target color
outer-rangeColor range RGB or HSV range for the wide target bar.
RequiredDefault:NoneValue format examples
{"maximum":[255,80,80],"minimum":[220,0,0],"space":"rgb"}{"maximum":[75,100,100],"minimum":[45,30,60],"space":"hsv"}- Tracking region
regionRegion Ratio or pixel rectangle containing the two-color bar.
Default availableDefault:{"height":1,"unit":"ratio","width":1,"x":0,"y":0}Value format examples
{"height":0.5,"unit":"ratio","width":0.5,"x":0.25,"y":0.25}- Minimum cursor width
inner-minimum-widthInteger Minimum valid cursor cluster width in pixels.
Default availableDefault:2- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Maximum cursor width
inner-maximum-widthInteger Maximum valid cursor cluster width in pixels; zero selects automatic sizing.
Default availableDefault:0- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Minimum target width
outer-minimum-widthInteger Minimum valid target cluster width in pixels; zero selects automatic sizing.
Default availableDefault:0- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Band height ratio
band-height-ratioNumber Target scan-band height relative to the region.
Default availableDefault:0.3- Cursor height ratio
band-inner-height-ratioNumber Target scan-band height relative to the cursor height.
Default availableDefault:0.85- Cursor confidence weight
inner-confidence-weightNumber Cursor contribution to combined confidence.
Default availableDefault:0.42- Target confidence weight
outer-confidence-weightNumber Target contribution to combined confidence.
Default availableDefault:0.58
Data outputs 7
- Found
foundBoolean Whether both cursor and target clusters are valid.
- Cursor X
inner-xNumber Cursor center X in source-image pixels.
- Target X
outer-xNumber Target center X in source-image pixels.
- Target width
outer-widthNumber Target cluster width in pixels.
- Confidence
confidenceNumber Combined detection confidence.
- Cursor pixels
inner-pixelsInteger Pixels matching the cursor range.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042- Target pixels
outer-pixelsInteger Pixels matching the target range.
- Minimum: -9007199254740991
- Maximum: 9007199254740991
Value format examples
042
Version and node identity
Version 1.0.0
sha256:5c4a5144e1508fc53c7bf0d3457e2700a94ee748c1ac6df1ff67f2bb851c1fce