File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 19
19
import PySimpleGUI as sg
20
20
import os .path
21
21
22
- version = '2 April 2020'
22
+ version = '7 June 2020'
23
23
24
24
prototxt = r'model/colorization_deploy_v2.prototxt'
25
25
model = r'model/colorization_release_v2.caffemodel'
@@ -186,7 +186,7 @@ def convert_to_grayscale(frame):
186
186
window ['-OUT-' ].update ('' )
187
187
break
188
188
elif event == '-SAVE-' and colorized is not None : # Clicked the Save File button
189
- filename = sg .popup_get_file ('Save colorized image.\n Colorized image be saved in format matching the extension you enter.' )
189
+ filename = sg .popup_get_file ('Save colorized image.\n Colorized image be saved in format matching the extension you enter.' , save_as = True )
190
190
try :
191
191
if filename :
192
192
cv2 .imwrite (filename , colorized )
You can’t perform that action at this time.
0 commit comments