Commit 26f52e67 authored by 沈铭(23研)'s avatar 沈铭(23研)

修改单图/组图字典

parent 64613518
......@@ -38,13 +38,18 @@ def generate_excel(video_report_path):
def run(task_root_dir):
video_report_path = os.path.join(task_root_dir,'app_video_report.json')
# 生成excel
generate_excel(video_report_path)
output_img_path = 'temp.mp4'
data = json.load(open(video_report_path,'r'))
for page in data:
page=data[page]
video_path = page["合成视频路径"]
index = video_path.find('videos')
if index != -1:
# 提取 'videos' 及其之后的内容
video_path = video_path[index:]
shutil.copy(os.path.join(task_root_dir,video_path),output_img_path)
rule_header=page["判断条目"]
result = page["通过情况"]
......
8 多媒体
16 功能性组件访问
18 装饰性内容访问
20 非装饰性组件
26 闪光
27 焦点顺序
50 错误原因提示
\ No newline at end of file
......@@ -97,7 +97,7 @@ def process(file_list, data, entry, video_save_path, save_path):
result_finial[id] = {'页面名': f'{id}', '合成视频路径': video_path,
'页面截图路径': image_path,
'所有截图路径': screenshot_path}
# shutil.copy(image_path, img_path)
shutil.copy(image_path, img_path)
result_finial[id]['判断条目'] = entry
result_finial[id]['错误条目'] = result[page_id]
result_finial[id]['通过情况'] = process_data(result2[page_id], entry)
......
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