I need the same functionality as the application Instant Heart Rate.
The basic process requires the user to:
As a side note, you may be interested in this research paper. This method does not even require a finger (or anything) directly on the lens.