# Errata - Manual Corrections

AITrackerGUI from version allows you to manually correct the results. All user changes are saved in the `errata.pickle` file. The program creates only one such file per location/measuring point. All user changes are applied to the counted results before reporting (creating sheets and charts). This means that they do not affect [reclassification](/reclassification.md) and do not affect the calculated results. This allows you to safely separate the originally calculated data from changes/errata made by the user.

You can create, add or modify `Errata` in two ways:

* By right-clicking on **any field** in the `Results` tab,
* By right-clicking on the **object** of the `Tracker` displayed in the video preview,

In the current version of the program, we can manually change such `Tracker` parameters as

* **Movement**,
* **Category**,
* **Status** `Validated` - yes/no whether `Tracker` is included in the final results,
* **OCR text** - text that has been recognized by the OCR system,
* **Axles** - recognized number of vehicle axles,

> Attention! Each manually changed row is highlighted in yellow to distinguish it from the results.

## Multi-Vehicle Selection

AITrackerGUI supports batch editing of multiple trackers at once. You can select multiple vehicles using three different methods:

### Line Selection

1. Click the **"Select"** button in the Errata section
2. Choose **"Line Selection"** from the dropdown menu
3. Click two points on the video image to define a line
4. All trackers whose trajectories intersect the line will be selected (highlighted in yellow)
5. Click a Paint button (Movements/Validation/Categories) to select what to change
6. Click any button in the paint grid to apply the change to all selected trackers

> This method is useful for selecting all vehicles that passed through a specific point on the road.

### Rectangle Selection

1. Click the **"Select"** button in the Errata section
2. Choose **"Rectangle Selection"** from the dropdown menu
3. Click and drag to draw a rectangle on the video image
4. All trackers whose center points fall within the rectangle will be selected (highlighted in yellow)
5. Click a Paint button and then a category/validation/movements to apply the change

> This method is useful for selecting vehicles in a specific area of the frame.

### Table Multi-Selection

1. In the tracker results table, use:
   * **Ctrl+Click** to select/deselect individual rows
   * **Shift+Click** to select a range of rows
   * **Ctrl+A** to select all rows
2. Right-click on any selected row to open the context menu
3. The menu will show the number of selected trackers and offer batch operations
4. Choose an operation (Set Validation, Set Category) from the submenu

> Selected trackers are automatically cleared after applying errata changes.

## Change counted/not counted status `Validated`

To change the counted/uncounted status of a single tracker, go to the 'Results' tab and then right-click in the row with the appropriate vehicle and the 'Validated' column.

### Change counted/not counted status by clicking on an object in the preview.

In the video preview window, **Right-click** inside the `Tracker` object. A context menu will then appear in which you can directly change the counted/uncounted state of the object.

## Change movement

To change the counted/uncounted status of a single tracker, go to the "Results" tab and then click **LMB** in the row with the appropriate vehicle and in the "Movement" column and select from list of created movements.

## Change the category of the object

To change the counted/uncounted status of a single tracker, go to the 'Results' tab and then right-click in the row with the appropriate vehicle and in the 'Label' column. In the menu that will appear, each object category will consist of two texts `classification category <- AI category`.

> Important! Changing the category/classification of an object changes its original classification (as seen by AI), not the target one (as the selected object classification).

## OCR text change

In the `Results` tab, click **RMB** on the field corresponding to `Tracker` and the `Ocr` column. We see a preview/saved OCR photo and an edit box where the text appears. We can edit and save the text.

> Attention! Press Enter twice to save the OCR text!

## Changing the number of vehicle axles

In the `Results` tab, click **RMB** on the field corresponding to `Tracker` and the `Axles` column. Then we choose a number between 2 and 11 axes.

## Adding a copy of the object/tracker

In the `Results` tab, click **RMB** on the field corresponding to `Tracker`. Select the 'Add a copy' option. A new row will be created with a unique `TUID` number.

> Attention! The `TUID` number assigned to tracker copies varies. The first number is always -1 and the second is 8 digits and random.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aitracker.aisp.pl/errata.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
