API Reference¶
This part of the documentation covers all the interfaces of PulseTracker.
- class
pulse.
Pulse
(frame_rate=30)¶This is the main class of the pulsetracker module.
bpm
()¶Calculates the heart rate value.
frames_to_gray
()¶Converts RGB input frames to grayscale.
get_peaks
(dist=5)¶Takes a one-dimensional array and finds all local maxima by simple comparison of neighbouring values.
pulsebox_to_frames
(uid)¶Converts the a video stored in a users pulsebox storage to frames.
- static
remove_frames
()¶Removes all frames from images folder.
signal_diff
()¶Subtracts one frame from the subsequent frame.
variances
()¶Calculates the how far the peaks are spread out from their average value.
video_to_frames
(video_path)¶Converts input videoPath to frames.