To improve the utilization rate of parking space resources and reduce the cost of installing and maintaining sensor recognition, this paper proposed an improved computer vision-based parking space status recognition method. The overall recognition accuracy was improved by graying the video, filtering smoothing noise reduction, image enhancement pre-processing, introducing texture feature extraction method based on LBP operator, improving the background difference method, and then, we used a perceptual hash algorithm to calculate the Hamming distance between the background image and the hash string of the current frame of the video, excluding the influence of light and pedestrian on recognition accuracy. Finally, a parking space status recognition system is developed relied on the Python environment, and parking spaces are recognized in three environmental states: with direct light, without direct light, and in rain and snow. The overall average accuracy of the experimental results was 97.2%, which verifies the accuracy of the model.