Its free

  (Edited: )

It's already out there the software is made by a MIT student and he kept it open source.you can simply use your webcam to detect your heartrate.