warpPerspective low quality

I am writing a program that recognizes license plates and puts its own on top of them, but there is a problem with cv2.warpPerspective, it gives very poor quality when changing perspective, interpolation flags do not save, please help

Include some example images (both before warp and after) along with the code / parameters you are using to call the warpPerspective call.

why did you tag this “pytorch”?