Skip to main content

Automated Tagging with Triggers and Plugins

Do you want a way to automatically tag the things you copy into organized groups so you can use them later?!? Well this tip is for you then!

As an example we'll use the Yolo Image Annotator Plugin available for download from the Plugin Browser to detect cats or dogs in images we copy and automatically tag them to cooresponding 'Cats' and 'Dogs' Tag Collections.

What is "Image Annotation"?

The Yolo Image Annotator Plugin detects common objects in images and provides a name, box and score (between 0 and 1 of how sure it is about the name) for each object it detects.

Annotation Viewer

To see detailed information about image annotations double-click the analyzed image to see its annotations and then double-click an annotation to bring up the annotation viewer

Creating the Tags​

  1. Open the Collections sidebar and select the top-level Tags collection.
  2. You'll now see a βž• button in the top-right of the sidebar. Click the βž• button to add a new tag.
  3. A new tag named 'Untitled' will be added to the bottom of the list, right-click it and select Rename and change its name to 'Cats'.
  4. Repeat steps #2-3 but make a 'Dogs' tag.

Nesting & Grouping

Tags can be nested. If you added a 'Pets' tag and drag-and-dropped the 'Cats' and 'Dogs' tags we just made into it, then all the clips within them will become indirectly linked to 'Pets' and shown when 'Pets' is selected.

Adding the Yolo Image Annotator Plugin​

  1. Open the Analyzer Sidebar and click the 🧩 button to reveal the Plugin Browser.
  2. Select the Browse tab and search or scroll to the 'Yolo Image Annotator' plugin in the left-hand panel and select it.
  3. Now in the right-hand panel click the Install button.
  4. After a moment the plugin will be installed and ready for use.

Stay Updated

Yolo Image Annotator has a few temperamental dependencies so its important to make sure your OS is up-to-date. Check the Yolo Image Annotator Repo for more info or to report any issues.

Trigger Setup​

  1. Switch to the Triggers Sidebar (the ⚑ button) and click the βž• button on the top-right of the sidebar to show the Create Trigger menu.
  2. Select the Clip Added trigger to create the new trigger.
  3. If its not automatically selected, select the 'Clip Added Trigger' from the Trigger Selector to the left of the βž• button.
  4. Scroll down to show the Action Properties view and click the 'Clip Added Trigger' label and rename it 'Image Copied Trigger'.
  5. Then below in the properties, select 'Image' for the Trigger parameter since for this example we want to tag pictures of cats and dogs.

Integrated Help

Most triggers, actions and their parameters have hints (little blue ℹ️ icons) you can hover over with more information about them.

Add the YoloImageAnnotator Action​

  1. We need a way to run the 'Yolo Image Annotator' plugin we just installed. To do this we add an Analyze action to the 'Image Copied Trigger' by right-clicking the green circle on right in the Action Designer view and selecting Add->Analyze from the Add Action pop-menu.
  2. The new 'Analyze1' action will become selected and shown with an arrow pointing to it from the 'Image Copied Trigger'.
  3. Let's rename it to 'Analyze Image Objects' back in Action Properties.
  4. Now to use the Yolo Image Annotator, click the Component Selector for the Analyzer parameter and select Yolo Image Annotator->Default Annotator.
  5. Finally we'll set the Confidence parameter to 0.5 using the slider. This will help filter out false-postives from annotator.

Plugin Presets

Analyzer parameters are stored using presets so you can re-use certain configurations later. All plugins will have at least 1 default preset (which is what we just picked from the Component Selector). You can add new presets at anytime by clicking the Add Preset button at the bottom of the Analyzer sidebar.

Using Conditional Actions​

To recap, we setup a Clip Added Trigger so when any Image is added it will then be analyzed by the Yolo Image Annotator which (among other things) outputs a list of the objects it detected. We only care about output containing the words 'Cat' or 'Dog'. This is what Conditional actions are for!

When the condition is true, execution continues. When the condition is false, no actions stemming from a Condtional action will be performed.

  1. Right-click the 'Analyze Image Objects' square in the Action Designer and select the Add->Conditional option and a new Conditional diamond will be added as a child to 'Analyze Image Objects'.
  2. Now select the Conditional action diamond and lets rename it to 'Has Cats?'
  3. Set the Input Property to Last Output (marker #1 shown below) (more info on Last Output can be found here).
  4. Then, set Condition Data to 'cat' in the textbox (marker #2 below).

  5. Repeat steps 1-4 by adding a 'Has Dogs?' Conditional action with its Condition Data parameter set to 'dog'.

Action Clipboard

All this stuff is much faster to do than explain. You can Copy and Paste the 'Has Cats?' action and change what we need for Step 4 too.

Tagging Clips with Classifiers​

The last piece of this puzzle is using the Classify action which automates adding a clip to a specific Tag Collection.

  1. Right-click the 'Has Cats?' diamond and select the Add->Classify option and a new Classify square will be added as a child to 'Has Cats?'
  2. Select it and rename it to 'Tag to Cats'.
  3. Now click the dropdown for the Tag parameter and select the 'Cats' tag we made earlier.

  4. Repeat (or copy/paste) steps 1-3 but from the 'Has Dogs?' Condtional action.

The whole thing should look something like below in the Action Designer:

Let's try it out!​

Copy the images below and check the 'Cats' and 'Dogs' tags to see the results.

Example Images


The last row of the example images will have some interesting results:

  1. The first image has both a cat and a dog which means both Conditional actions were true.
  2. The last image doesn't have any cats or dogs so neither Conditional actions were true they were both false.

The Yolo Image Annotator Plugin is a simple wrapper to YoloV8. With a very tiny model ( ~16mbs!) trained on 80 unique objects to keep it fast and lightweight.

If you want to add MORE objects (so it can find rabbits and octopi let's say) feel free to fork the Yolo Image Annotator Plugin repositiory and make your own custom analyzer!!!πŸ€“


To get a much detailed analysis you can use the Azure Computer Vision plugin for the 'Analyze Image Objects' analyzer described.