def save_compare(self):
'''
?????
'''
self.compare=np.concatenate([self.img_ori,self.img_swapped],1)
cv2.imshow('Compare',self.compare)
output_path,_=QFileDialog.getSaveFileName(self,'??????','./','Image Files(*.png *.jpg *.bmp)')
if not output_path:
self.statu_text.append('????,?????')
return
self.swapper.save(output_path,self.compare)
self.statu_text.append('?????????'+output_path)
评论列表
文章目录