在小米设备中,在相机的信箱外面绘制了图像 在其他设备上,一切正确 我同时附上了sumsung和xiaomi的图片,看起来很丑的屏幕截图是xiaomi,并且在三星中很好看
float targetaspect = 750f / 1334f;
import numpy as np
import matplotlib.pyplot as plt
# create image
image = np.zeros((25,25))
image[:10,5:10] = 1.
# create subplots
fig, axes = plt.subplots(2,2)
for i in axes.flatten(): i.axis('off')
with tf.Session() as sess:
for i in range(4):
distorted_img = sess.run(distort(image, i))
axes[i % 2][i // 2].imshow(distorted_img, cmap='gray')
plt.show()