ValidVIATracksCSV#

class movement.validators.files.ValidVIATracksCSV(path, frame_regexp='(0\\\\d*)\\\\.\\\\w+$')[source]#

Bases: object

Class for validating VIA tracks .csv files.

The validator ensures that the file:

  • contains the expected header,

  • contains valid frame numbers,

  • contains tracked bounding boxes, and

  • defines bounding boxes whose IDs are unique per image file.

path#

Path to the VIA tracks .csv file.

Type:

pathlib.Path

frame_regexp#

Regular expression pattern to extract the frame number from the filename. By default, the frame number is expected to be encoded in the filename as an integer number led by at least one zero, followed by the file extension.

Type:

str

Raises:

ValueError – If the file does not match the VIA tracks .csv file requirements.