You are here: Start » Program Examples » Shipment Verification

Shipment Verification

Aim

The aim of the program is to count the number of boxes in a container and mark each of them with a stripe.

Input

An image of boxes in a container.

Output

Detected boxes and their count.

Hints

The easiest and the quickest way to achieve this goal is to use 1D Edge Detection technique and detect boxes as stripes.

Solution (AVS)

  1. Add LoadImage filter. Please, remember about setting directory to the images in the Properties window of the filter.
  2. Add ScanMultipleStripes filter.
  3. Connect outImage from the first filter with inImage of the second one.
  4. Click on ScanMultipleStripes. In Properties window (in the bottom left corner) make these changes:
  5. Right-click on outStripes, find Property outputs and select outStripes.Count

Macrofilter Main

Used Filters

Icon Name Description
LoadImage Loads a single image from a file.
ScanMultipleStripes Very fast detection of multiple pairs of opposite edges - usually for counting or width measurements.

Further Readings