Method and system for opportunistic automatic stop of an engine of a vehicle

Methods and systems for automatically stopping and starting an engine is presented. In one example, a method prevents the automatic stopping of the engine in response to the output of an onboard camera. The method prevents the stopping of the engine during conditions where little fuel via the automatic stopping of the engine can be saved.