The present invention relates to a method for simultaneously measuring a respiration rate and a heart rate using dual cameras of a smartphone. The method includes: collecting a PPG signal and visual data on chest and abdomen movements of a human converting the visual data to an RGBA signal applying a bandpass filter such that a frequency only within a range in the RGBA signal pass removing first and last predetermined portions of the RGBA signal to which the band-pass filter is applied selecting a color channel having a highest standard deviation from the RGBA signal where the predetermined portions are removed applying a spline filter to the selected color channel computing power spectrum density and computing a heart rate and a respiration rate.