Class meta

Import meta as:

from strym import meta

extract metadata from drives that are recorded using libpanda, with optional corresponding dashcam video

class strym.meta(folder='', csvfile='', dbcfile='', recursive=False, **kwargs)

meta Works within the strym package to extract metadata from drives that are recorded using libpanda, with optional corresponding dashcam video

Parameters
folder : str

Folder to retrieves files from

csvfile : str

Datafiles

dbcfile : str

The DBC file which will provide codec for decoding CAN messages

recursive : bool

If True, look for csvfiles recursively in the folder folder

kwargs : variable list of argument in the dictionary format

static dbcDictionary(dbcfiles)
toJSON()

Returns dictionary-formatted driving meta-data

static vin(csvfile)

returns the vehicle identification number, VIN, (if detected) from the filename uses a very very simple method of looking for a 17 char string near the end of the filename

Parameters
csvfile : str

Parse VIN number from the name of the csvfile

write(outputfile='')

Writes the JSON file in outputfile

Parameters
outputfile : str

The name of the outputfile where to write JSON formatted metadata

Returns

str – The name of the JSON output file.