File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ def mapping():
50
50
51
51
log = open (f'./log_demo_result.txt' , 'a' )
52
52
log .write (f'{ cnt } : x-axis= { abs (max_cx - min_cx )} , z-axis= { abs (max_cz - min_cz )} \n ' )
53
- log .close ()
54
53
cnt += 1
55
54
56
55
adjust_x = most_left_point - min_cx
@@ -89,6 +88,11 @@ def mapping():
89
88
trim_img = img .crop ((trim_left , trim_upper - img_margin ,
90
89
trim_right + img_margin , trim_lower + img_margin ))
91
90
trim_img .save ("./created_data/target_image/sample_trim.png" )
92
- trim_img .save (f"./stored_image/sample_trim_{ trim_upper } .png" )
91
+ trim_img .save (f"./stored_image/sample_trim_{ trim_upper :0.4f} .png" )
92
+ dashed_line = '-' * 80
93
+ print (f'{ dashed_line } ' )
94
+ print (f'file_name: sample_trim_{ trim_upper :0.4f} .png' )
95
+ log .write (f'file_name: sample_trim_{ trim_upper :0.4f} .png\n ' )
96
+ log .close ()
93
97
os .remove ("./created_data/hand_data/input_coordinate.txt" )
94
98
os .remove ("./created_data/hand_data/finish.txt" )
You can’t perform that action at this time.
0 commit comments