The invention provides a
slag car cleanliness calculation method, a program product,
electronic equipment and a storage medium. The method comprises the following steps: acquiring a plurality of to-be-detected images with a sequential relationship corresponding to a
slag car; using a target tracking
algorithm to determine the motion trail of the
slag car; according to the motion trail and the
timestamp of the to-be-detected image, the washing duration of the
muck truck is determined; under the condition that the washing duration meets the requirement, semantic segmentation is carried out on the to-be-detected image, and a
sediment area and a slag car contour area are obtained; and determining the cleanliness of the
muck truck based on the
sediment area and the contour area of the
muck truck. According to the motion trails obtained in the to-be-detected images with the
time sequence relation, more information is obtained, and the flushing duration of the slag car is calculated more accurately. Whether the washing duration meets the requirement or not is judged firstly, and then semantic segmentation is performed on the to-be-detected image, so that the calculation amount is reduced, the detection efficiency is improved, and the subjective influence caused by manual cleanliness determination is reduced.