Commit 07e3092b authored by wux51's avatar wux51

Merge branch 'feat_1' of http://gitlab.uiiai.com/xuanweiace/accessibility_movie_2 into feat_2

parents fca8dfbc f9fdec5b
......@@ -189,7 +189,12 @@ def evaluate_position(video_path: str, start_time: float) -> Tuple[float, float]
print('颜色结果:',r,g,b)
# 返回值:字幕行数 字幕高度 字幕位置(比例形式) 字幕颜色(r,g,b)
# [2, 109.0, [[0.8637892376681614, 0.9243273542600897], [0.9304932735426009, 0.9915919282511211]],(r,g,b)]
return item_result[0][0],item_result[0][1]
#打印字幕预测值
# with open('debug.txt','w') as f:
# f.write(str(item_result[-1][0]))
# f.write(str(item_result[-1][1]))
return item_result[-1][0],item_result[-1][1]
return [line_num,height,item_result,(r,g,b)]
......@@ -921,3 +926,5 @@ if __name__ == '__main__':
print("111111")
else:
print("222222")
# print(evaluate_position('C:/Users/Smile/Desktop/accessibility-movie/海上钢琴师-2.mp4',0))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment