The invention discloses a method for identifying vehicles entering and exiting parking spaces, and the method comprises the steps: obtaining a monitoring image, and building a two-dimensional coordinate
system; determining responsibility parking spaces, wherein each responsibility
parking space obtains a corresponding coordinate area; intercepting a field image from the field video every a presetperiod to obtain a vehicle two-dimensional coordinate of each vehicle in each field image; judging whether the two-dimensional coordinates of the vehicle in each field image have intersection points with the
parking space coordinate set or not, obtaining a coordinate intersection, and calculating a coordinate intersection area, namely an overlapping area of the vehicle and the
parking space; and calculating the
overlap ratio of the vehicle and the parking space coordinate set according to the ratio of the coordinate intersection area to the vehicle area, and judging the state of the vehicle according to the change trend of the
overlap ratio in the continuous multi-frame images. The method for identifying vehicles entering and exiting parking spaces is completed through a camera and an analysis module, management personnel do not need to be configured on site, manpower management cost can be greatly reduced, and higher identification efficiency is achieved.