<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/ops/anchor.py) |

Anchor box and labeler definition.

## Classes

[`class Anchor`](https://www.tensorflow.org/api_docs/python/tfm/vision/anchor/Anchor): Anchor class for anchor-based object detectors.

[`class AnchorGeneratorv2`](https://www.tensorflow.org/api_docs/python/tfm/vision/anchor/AnchorGeneratorv2): Utility to generate anchors for a multiple feature maps.

[`class AnchorLabeler`](https://www.tensorflow.org/api_docs/python/tfm/vision/anchor/AnchorLabeler): Labeler for dense object detector.

[`class RpnAnchorLabeler`](https://www.tensorflow.org/api_docs/python/tfm/vision/anchor/RpnAnchorLabeler): Labeler for Region Proposal Network.

## Functions

[`build_anchor_generator(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/anchor/build_anchor_generator): Build anchor generator from levels.

[`unpack_targets(...)`](https://www.tensorflow.org/api_docs/python/tfm/vision/anchor/unpack_targets): Unpacks an array of labels into multi-scales labels.