mrzaizai2k / License-Plate-Recognition-YOLOv7-and-CNN

This project is for the ultimate manner of identifying the License Plate. Combining YOLOv7 object detection, Hough transform alignment, and CNN character recognition
MIT License
29 stars 9 forks source link

Function Rotate LP is not flexible #10

Closed TruongNoDame closed 3 months ago

TruongNoDame commented 3 months ago

I have referred to your license plate rotation code, however the code in function rotate_LP:

rotationMatrix = cv2.getRotationMatrix2D(ptPlateCenter, -angle, 1.0)

This code m -angle makes them only work if the license plate is tilted to the left. If license plates are tilted to the right, they don't work. However, when I remove the "-" sign from angle, it works normally.

You should update your code in this case.

mrzaizai2k commented 3 months ago

Yah thank u, will fix it later