The invention relates to an abnormity
recovery method and
system for a vehicle-mounted camera. The method comprises the steps that after the vehicle-mounted
system is started, the running state of a driver in the vehicle-mounted
system is determined; the method comprises the following steps: after a sensor driver in a vehicle-mounted system is started, acquiring hardware diagnosis data of a vehicle-mounted camera through a first diagnosis interface in the sensor driver; after an
image processing drive in the vehicle-mounted system is started, acquiring
software diagnosis data of image data acquired by a vehicle-mounted camera through a second diagnosis interface in the
image processing drive; when the vehicle-mounted system runs to a stage of interacting with an upper-layer framework, creating an exception diagnosis and
recovery thread, and acquiring hardware diagnosis data and
software diagnosis data through the exception diagnosis and
recovery thread; and according to the hardware diagnosis data or the
software diagnosis data, calling a first recovery interface in the sensor driver or calling a second recovery interface in the
image processing driver, and executing recovery operation on the vehicle-mounted camera. The technical problem that the abnormal vehicle-mounted camera cannot be quickly recovered is solved.