added try around the pi camera recognition section