The Warby Parker App already does a much better version of this. Open the front facing camera and any frame you want is super imposed in real time on your face. It works very well, on a newer iphone at least. You do have to enter your prescription details by hand though.