The application discloses a real-time SOC detection and diagnosis method and
system for power batteries, relates to the technical field of pre-diagnosis, and comprises the following steps: generating a normalized image of a
power battery pack, performing
mask marking on the normalized image to obtain a region
mask; determining the directions of line segments corresponding to the normalized
image based on the region
mask to obtain direction vectors of the line segments; performing anti-gravity bridge connection screening on all the line segments based on the direction vectors of the line segments to obtain a bridge connection line bundle set; generating a correction amount based on the bridge connection line bundle set, correcting a real-time SOC value corresponding to the
power battery based on the correction amount to obtain a corrected SOC value. The application improves the reliability of a real-time SOC result in a structural abnormal
scenario.