The invention discloses a photovoltaic module cleaning method and device based on
image processing and
electronic equipment, and belongs to the technical field of
photovoltaic power generation. The method comprises the following steps: acquiring operation information, a visible light image, a near-
infrared image and thermal
imaging data of a photovoltaic module; the operation information, the visible light image, the thermal
imaging data and the near-
infrared image are input into a hot spot detection model, a hot spot detection result, output by the hot spot detection model, of the photovoltaic module is obtained, the hot spot detection result comprises a hot spot area and a hot spot level, and the hot spot detection model is obtained based on a plurality of first training samples; the first training sample comprises sample operation information, a sample visible light image, sample thermal
imaging data, a sample near-
infrared image and a hot spot detection
label of the sample photovoltaic module; acquiring environment information and dust information of dust attached to the photovoltaic module, wherein the dust information comprises a dust type and an attachment form; the environment information, the dust information and the hot spot detection result are input into a dust cleaning prediction model, cleaning parameters of each hot spot output by the dust cleaning prediction model are obtained, and the dust cleaning prediction model is obtained based on a plurality of second training samples; the second training sample comprises sample environment information, sample dust information, a hot spot detection
label and a cleaning parameter
label of the sample photovoltaic module; and cleaning the photovoltaic module based on the cleaning parameters. According to the method, different types of dust can be effectively cleaned, and the dust cleaning effect of the photovoltaic module is improved.