Utils: pyvar.ml.utils

Label Reader Class

pyvar.ml.utils.label

platform:

Unix/Yocto

synopsis:

Class to handle labels file from Machine Learning models.

class pyvar.ml.utils.label.Label(labels_file_path=None)[source]
Variables:
  • labels_file – path to the labels file.

  • list – list with the labels from the label file.

read_labels(category=None)[source]

Reads Machine Learning labels file and save the result as a list.

Parameters:

category (str) – model category (classification or detection).

Returns:

True if the labels file was read successfully.

Overlay Class

pyvar.ml.utils.overlay

Frames Per Second Calculator Class

pyvar.ml.utils.framerate

platform:

Unix/Yocto

synopsis:

Class to calculate framerate from videos and real time cameras devices.

class pyvar.ml.utils.framerate.Framerate[source]
fpsit()[source]

Calculates the frames per second and save it in the fps attribute.

File Transfer Protocol Class

pyvar.ml.utils.retriever

Resizer Class

pyvar.ml.utils.resizer

Timer Calculator Class

pyvar.ml.utils.timer

platform:

Unix/Yocto

synopsis:

Python Class to calculate time.

class pyvar.ml.utils.timer.Timer[source]
timeit()[source]

Calculates the time and save it in the time attribute.