Localization for the camera function