Blocks#

Every block of this toolkit, from its catalog.

opencv#

Block

Type

What it does

Difference

absdiff

How much two images differ: motion against a background, a before and after.

Threshold (adaptive)

adaptive_threshold

Black and white by local brightness: for uneven light.

Background

background

Learns a background and shows what changed: a motion mask, the background and the changed fraction.

Bitwise

bitwise

Combines two images pixel by pixel (and with a grey second image: a mask).

Blend

blend

Mixes two images: alpha of the first, the rest of the second.

Blur (Gaussian)

blur

Softens an image.

Edges (Canny)

canny

Finds edges.

Centroid

centroid

The largest white blob’s centroid, area and radius, plus a marked image.

CLAHE

clahe

Local histogram equalisation (CLAHE), for uneven lighting.

Close (fill gaps)

close

Fills small black holes.

Contours

contours

The white blobs’ count, the largest one’s centre, area and box, and a marked image.

Convert colour

convert

Changes the colour space (grey, BGR, RGB, HSV, HLS, Lab).

Crop

crop

Keeps a rectangle of an image (0 width or height: the rest of it).

Dilate

dilate

Grows white areas.

Distance

distance

How far each white pixel is from black.

Draw

draw

Draws a box, circle, cross or text on an image (u, v centre; width, height or radius).

Equalize

equalize

Spreads the histogram: more contrast in a flat or dark image.

Erode

erode

Shrinks white areas.

Flip

flip

Mirrors an image horizontally, vertically or both.

Gray

gray

Turns an image to grey.

Hough circles

hough_circles

Finds circles: how many, the largest one’s centre and radius, and a marked image.

Hough lines

hough_lines

Finds straight lines: how many, the longest one’s angle and length, and a marked image.

HSV range

hsv_range

Keeps the pixels within a range of colour.

Invert

invert

Swaps black and white.

Laplacian

laplacian

The second derivative: edges in every direction.

Blur (median)

median

Removes speckle noise, keeping edges.

Normalize

normalize

Stretches an image’s values into a range.

Open (remove specks)

open

Removes small white specks.

Resize

resize

Changes an image’s size (pixels, or a scale when both are 0).

Rotate

rotate

Rotates an image about its centre (expand = 1 keeps the corners in view).

Save image

save

Writes its input to a picture file (once, or every step) and passes it on.

Sobel

sobel

A directional derivative: bright where the image changes along x or y.

Image stats

stats

Mean, spread, range and non-black count of an image.

Template match

template_match

Finds a template picture in an image: where, how well, and a marked image.

Threshold

threshold

Splits an image into black and white at a level.

Image view

view

Shows an image on the Board.

group#

Block

Type

What it does

In

inport

An input of the subsystem or story it is in: a port on the group’s block outside, named by name, and its value here.

Out

outport

An output of the subsystem or story it is in: what is wired to it leaves by a port on the group’s block outside, named by name.