hylee commited on
Commit
25cf1b2
·
1 Parent(s): 7ea3da2
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -154,10 +154,10 @@ def run(
154
 
155
  # 预处理数据
156
  # get_68lm(imgfile, lmfile5, lmfile68, detector, predictor)
157
- f = open(savepath68, 'w')
158
  print(landmarks_str, file=f)
159
  f.close()
160
- landmarks = np.loadtxt(savepath68)
161
 
162
  ff = open(lmfile5, 'w')
163
  lm = (landmarks[36] + landmarks[39]) / 2
 
154
 
155
  # 预处理数据
156
  # get_68lm(imgfile, lmfile5, lmfile68, detector, predictor)
157
+ f = open(lmfile68, 'w')
158
  print(landmarks_str, file=f)
159
  f.close()
160
+ landmarks = np.loadtxt(lmfile68)
161
 
162
  ff = open(lmfile5, 'w')
163
  lm = (landmarks[36] + landmarks[39]) / 2