rppg_extract package

Submodules

rppg_extract.CHROM module

rppg_extract.CHROM.CHROM(X)

Information:

From RGB spatial-average obtain a one time signal POS

param X ::[2darray<float>]

RGB spatial-averaged array

param channel::[int]

returns

1d signal

rtype

C::[array<float>]

rppg_extract.POS module

rppg_extract.POS.POS(X, fps, windows=1.6)

Information:

From RGB spatial-average obtain a one time signal POS

param X ::[2darray<float>]

RGB spatial-averaged array

param fps ::[int]

param windows::[float]

averaging window time

returns

1d signal

rtype

h::[array<float>]

rppg_extract.SSR module

rppg_extract.SSR.SSR(X, fps, windows=1.6)

Information:

From roi obtain a one time signal POS

Parameters:

X ::[2darray<float>]

RGB spatial-averaged array

fps ::[int] windows::[float]

averaging window time

Returns:

bvp::[array<float>]

1d signal

rppg_extract.SSR.build_correlation_matrix(V)

Information:

Build correlation matrix

rppg_extract.SSR.build_p(τ, k, l, U, Λ)

Information:

builds P

param k

The frame index

type k

int

param l

The temporal stride to use

type l

int

param U

The eigenvectors of the c matrix (for all frames up to counter).

type U

numpy.ndarray

param Λ

The eigenvalues of the c matrix (for all frames up to counter).

type Λ

numpy.ndarray

returns

p – The p signal to add to the pulse.

rtype

numpy.ndarray

rppg_extract.SSR.eigs(C)

Information:

get eigenvalues and eigenvectors, sort them.

Parameters:

C: numpy.ndarray

The RGB values of skin-colored pixels.

Returns:

Λ: numpy.ndarray

The eigenvalues of the correlation matrix

U: numpy.ndarray

The (sorted) eigenvectors of the correlation matrix

rppg_extract.SSch module

rppg_extract.SSch.SCch(X, channel=1)

Information:

From RGB spatial-average obtain a one time signal POS

param X ::[2darray<float>]

RGB spatial-averaged array

param channel::[int]

returns

1d signal

rtype

monochannel::[array<float>]

Module contents

@author: Chun Hei Michael Chan @copyright: Copyright Logitech @credits: [Chun Hei Michael Chan] @maintainer: Chun Hei Michael Chan @email: cchan5@logitech.com