Swift code for calibrating iPhone camera for further use with vision algorithms