Due to the rapid increase in private car ownership in China, most cities face the problem of insufficient parking spaces, leading to frequent occurrences of parking space conflicts. There is a wide variety of parking locks available on the market. However, most of them lack advanced intelligence and cannot cater to the growing diverse needs of people. The present study attempts to devise a smart parking lock to tackle this issue. Specifically, the smart parking lock uses a Raspberry Pi as the core controller, senses the vehicle with an ultrasonic ranging module, and collects the license plate image with a camera. In addition, algorithms for license plate recognition based on traditional image-processing methods typically require a high pixel resolution, but their recognition accuracy is often low. Therefore, we propose a new algorithm called UNET-GWO-SVM to achieve higher accuracy in embedded systems. Moreover, we developed a WeChat mini program to control the smart parking lock. Field tests were conducted on campus to evaluate the performance of the parking locks. The test results show that the corresponding effective unlocking rate is 99.0% when the recognition error is less than two license plate characters. The average time consumption is controlled at about 2 s. It can meet real-time requirements.