detect the scene through preview callback.