# Event types and objects

URL: https://countvue.com/docs/reference/event-types
Applies to: CountVue Live, CountVue Survey, CountVue Portal

> Every event CountVue records, its name in the apps, reports and webhooks, what triggers it, and the object classes and attributes.

## Events

| Name in the app | Type (webhooks, exports) | Raised by | When |
|---|---|---|---|
| Line crossed | `TripwireCrossed` | Line | An object crosses the line in a counted direction. Carries the direction (dir 1 / dir 2; `forward` / `backward`) |
| Tailgating | `Tailgating` | Line with tailgating alarm | Two objects cross the line within a short time of each other |
| Zone joined | `RegionJoin` | Zone | An object enters the zone |
| Zone left | `RegionLeave` | Zone | An object leaves the zone (after being outside it for a moment, so jitter at the edge is not a leave) |
| Object dwell | `Loitering` | Zone with dwell alarm | An object stays in the zone longer than the dwell time |
| Crowd appear | `CrowdOn` | Zone with crowd alarm | At least the set number of objects are in the zone for the set time |
| Motion started | `MotionInRegionOn` | Zone | Movement starts in the zone |
| Motion stopped | `MotionInRegionOff` | Zone | The zone has been empty for a moment |
| Speed | `Speed` | Speed lines | An object crossed both speed lines. Carries the speed and direction (A→B or B→A) |
| Camera obstructed | `CameraObstructed` | Camera | The picture lost most of its detail: lens covered or sprayed, camera turned away |

How to set them up: [Lines, zones and speed](https://countvue.com/docs/live/lines-zones-speed).

## Directions

On a line, **direction 1** is crossing from the right side of the line to its left, looking from its first end (A) to its second end (B); **direction 2** is the opposite. The arrows on the picture show both. Webhooks call them `forward` and `backward`.

## Objects

| Object | In webhooks | Classes and attributes | Presets |
|---|---|---|---|
| Person | `Pedestrian` | | AI presets except Faces |
| Vehicle | `Vehicle` | car, van, truck, bus | AI people & vehicles, AI parking lots |
| Bike | `Bike` | bicycles and motorcycles | AI people & vehicles |
| Face | `Face` | gender, age | Faces |
| Unknown | `Object` | none | Motion presets |

The vehicle class is decided over the whole track, not from one frame.
