Text this: Mathematical model for contactless measurement