The invention relates to the technical field of
artificial intelligence, in particular to a rail-mounted
robot anti-jamming detection method and device based on
artificial intelligence. The method comprises the following steps of acquiring an ROI area image of a photovoltaic
cell panel; obtaining a segmentation result graph of a ROI area by using a semantic segmentation
network model; obtaining abinary image of an edge frame of the photovoltaic
cell panel from the segmentation result image, and judging a first longitudinal edge frame, a first transverse edge frame and a second transverse edgeframe in the
binary image; calculating the maximum
gap width between the first transverse edge frame and the second transverse edge frame, and averaging the maximum
gap width and the measured
gap width to obtain the gap width; calculating a visual fall height, and averaging the visual fall height and the measured fall height to obtain a fall height; and when the gap width or the fall height is larger than a set threshold value, returning the rail-installed cleaning
robot. According to the method and device, the problems that the
robot is stuck due to too large gaps or too high fall, and the
distance measurement of an
infrared distance measurement sensor is inaccurate are solved, and the accuracy and reliability of a judgment result are improved.