Table of Contents

Count Tags by ID

Description

This block returns how many detected tags have the selected ID.

Example

When the camera sees two copies of Tag ID 1:

count AprilTags with ID 1

returns:

2

This block is useful when:

  • Multiple copies of one tag are placed in an arena
  • The number of visible markers controls an action
  • A robot must confirm that several identical landmarks are visible

Example

There are no examples documented for this article.