This invention provides a method, apparatus, electronic device, and storage medium for detecting vehicle parking status, relating to the field of
vehicle detection. The method includes: acquiring a
parking space image and a pre-marked
parking space area within the
parking space image in real time, and determining a target detection mode based on the orientation of a specified parking
space frame line within the parking space area; the detection
modes include a side-view detection mode and a same-side detection mode; when it is determined that a vehicle detected from the parking space image is stationary, extracting the detection frame corresponding to the vehicle, and sequentially determining the positions of multiple specified
chassis key points on the vehicle in the parking space image; when the target detection mode is a side-view detection mode, determining the target parking space area and parking status of the vehicle using the
chassis key points and each parking space area; when the target detection mode is a same-side detection mode, determining the target parking space area and parking status of the vehicle using the
chassis key points, the detection frame, and the parking space area; and adaptively detecting the vehicle's parking status based on the parking space orientation.