Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
waae-algorithm-tools
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
沈铭(23研)
waae-algorithm-tools
Commits
26f52e67
Commit
26f52e67
authored
Feb 26, 2025
by
沈铭(23研)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改单图/组图字典
parent
64613518
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
annotation_video.py
annotation_video.py
+6
-1
app_video_map.txt
app_video_map.txt
+3
-0
script_video.py
script_video.py
+1
-1
No files found.
annotation_video.py
View file @
26f52e67
...
...
@@ -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
[
"通过情况"
]
...
...
app_video_map.txt
View file @
26f52e67
8 多媒体
16 功能性组件访问
18 装饰性内容访问
20 非装饰性组件
26 闪光
27 焦点顺序
50 错误原因提示
\ No newline at end of file
script_video.py
View file @
26f52e67
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment