matplotlib.pyplot 透视变换 Image.PERSPECTIVE
matplotlib.pyplot 透视变换
import math
import matplotlib.pyplot as plt
from PIL import Image
if __name__ == '__main__':
img = Image.open('./example.png').resize((128, 128))
params = [
[0.5, 0.0, -64, 0.0, 1.0, -64, 0.0, 0.0],
[1.5, 0
转载
2021-10-05 18:52:48 ·
441 阅读 ·
0 评论