pyVHR.datasets package

Submodules

pyVHR.datasets.cohface module

class pyVHR.datasets.cohface.COHFACE(videodataDIR=None, BVPdataDIR=None)

Cohface Dataset

readSigfile(filename)

Load signal from file.

Returns

a pyVHR.BPM.BPM.BVPsignal object that can be used to extract BPM signal from ground truth BVP signal.

pyVHR.datasets.dataset module

class pyVHR.datasets.dataset.Dataset(videodataDIR=None, BVPdataDIR=None)

This is the abstract class used for creating a new Dataset Class.

getSigFilename(videoIdx=0)

Get Signal file name given the progressive index.

getVideoFilename(videoIdx=0)

Get video file name given the progressive index.

loadFilenames()

Load dataset file names: define vars videoFilenames and BVPFilenames.

abstract readSigfile(filename)

Load signal from file.

Returns

a pyVHR.BPM.BPM.BVPsignal object that can be used to extract BPM signal from ground truth BVP signal.

pyVHR.datasets.dataset.datasetFactory(datasetName, videodataDIR, BVPdataDIR, path=None)

This method is used for creating a new istance of a dataset Class (that innherit pyVHR.datasets.dataset.Dataset ).

Parameters
  • datasetName (str) – name of the dataset Class.

  • videodataDIR (str) – path of the video data directory.

  • BVPdataDIR (str) – path of the ground truth BVP data directory.

pyVHR.datasets.lgi_ppgi module

class pyVHR.datasets.lgi_ppgi.LGI_PPGI(videodataDIR=None, BVPdataDIR=None)

LGI-PPGI Dataset

readSigfile(filename)

Load signal from file.

Returns

a pyVHR.BPM.BPM.BVPsignal object that can be used to extract BPM signal from ground truth BVP signal.

pyVHR.datasets.mahnob module

class pyVHR.datasets.mahnob.MAHNOB(videodataDIR=None, BVPdataDIR=None)

Mahnob Dataset

readSigfile(filename)

Load ECG signal.

Returns

a pyVHR.utils.ecg.ECGsignal object that can be used to extract ground truth BPM signal.

pyVHR.datasets.pure module

class pyVHR.datasets.pure.PURE(videodataDIR=None, BVPdataDIR=None)

PURE Dataset

loadFilenames()

Load dataset file names and directories of frames: define vars videoFilenames and BVPFilenames

readSigfile(filename)

Load signal from file.

Returns

a pyVHR.BPM.BPM.BVPsignal object that can be used to extract BPM signal from ground truth BVP signal.

pyVHR.datasets.sample module

class pyVHR.datasets.sample.SAMPLE(videodataDIR=None, BVPdataDIR=None)

Sample Dataset

readSigfile(filename)

Load signal from file.

Returns

a pyVHR.BPM.BPM.BVPsignal object that can be used to extract BPM signal from ground truth BVP signal.

pyVHR.datasets.ubfc1 module

class pyVHR.datasets.ubfc1.UBFC1(videodataDIR=None, BVPdataDIR=None)

UBFC1 Dataset

readSigfile(filename)

Load signal from file.

Returns

a pyVHR.BPM.BPM.BVPsignal object that can be used to extract BPM signal from ground truth BVP signal.

pyVHR.datasets.ubfc2 module

class pyVHR.datasets.ubfc2.UBFC2(videodataDIR=None, BVPdataDIR=None)

UBFC2 Dataset

readSigfile(filename)

Load signal from file.

Returns

a pyVHR.BPM.BPM.BVPsignal object that can be used to extract BPM signal from ground truth BVP signal.

..Module contents ..————— .. .. automodule:: pyVHR.datasets .. :members: .. :undoc-members: .. :show-inheritance: