> For the complete documentation index, see [llms.txt](https://docs.roboflow.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.roboflow.com/changelog/explore-by-month/june-2026/track-class-lock-block-in-workflows.md).

# Track Class Lock block in Workflows

A new Track Class Lock block is now available in Workflows. It locks the class label of each tracked object by majority voting, removing the class flicker you get when a model alternates between similar classes for the same physical object across video frames.

Wire it in after a tracking block such as Byte Tracker. Once a class collects enough high-confidence votes and leads the runner-up, it locks, and the block writes that class into every later detection of the track. It can also carry a lock through short occlusions by reattaching to a new tracker ID where the object reappears, which produces cleaner counts and steadier demos.

[See the Track Class Lock block documentation](https://inference.roboflow.com/workflows/blocks/track_class_lock/)&#x20;

[Read the announcement post](https://blog.roboflow.com/reduce-class-flickering/)
