MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / set_BackGround

Function set_BackGround

SRGAN/mainWindows.py:83–92  ·  view source on GitHub ↗
(image_path1,image_path2, root)

Source from the content-addressed store, hash-verified

81tkImage1=''
82tkImage2=''
83def set_BackGround(image_path1,image_path2, root):
84 global tkImage1
85 global tkImage2
86 canvas0,canvas1 = Canvas_(root)
87 img1 = cv2.imread(image_path1)
88 img2 = cv2.imread(image_path2)
89 tkImage1 = showImage(img1)
90 tkImage2 = showImage(img2)
91 canvas0.create_image(0, 0, anchor='nw', image=tkImage1)
92 canvas1.create_image(0, 0, anchor='nw', image=tkImage2)
93
94#选择要生成的图像文件
95imagePath={"filename": ""}#保存点击事件之后的图片路径

Callers 1

mainWindows.pyFile · 0.70

Calls 2

Canvas_Function · 0.70
showImageFunction · 0.70

Tested by

no test coverage detected