Dispose

The ‘Dispose’ activity will destroy and delete any objects created during the workflow. The example below uses an object detection activity, that detects any objects in a video, then saves the detected frames to the local drive.

note

The ‘Dispose’ activity is used in advanced workflows where long-lived objects are created for comparisons or other operations and must be destroyed to avoid any potential memory leaks.

Designer Properties#

Cut Properties
  1. Object To Dispose The expression containing the object to be disposed.
  2. Objects To Dispose The expression containing the collection of objects to be disposed.

Properties#

Cut Properties

General Properties#

See General Properties.

Misc#

See Misc.

Object#

See Designer Properties above.

Out Error#

See Out Error.

Example#

Object Detection

Sample vide for object detection.

In this sample we load a video and apply object detection on it to find the frames with objects. The frames found are saved on the disc.

note

To avoid overloading the CPU, the object detection activity is configured in properties to check the frames every 2 seconds, but it can be changed to any value.