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

Function set_BackGround

pix2pix/mainWindows.py:83–96  ·  view source on GitHub ↗
(image_path1,image_path2, image_path3,root)

Source from the content-addressed store, hash-verified

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

Callers 1

mainWindows.pyFile · 0.70

Calls 2

Canvas_Function · 0.70
showImageFunction · 0.70

Tested by

no test coverage detected