Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
92c823f8
Commit
92c823f8
authored
Aug 07, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Aug 07, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1237 from SpecLad:xls-separate-wh
parents
95bdd4b6
e23f3131
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
xls-report.py
modules/ts/misc/xls-report.py
+14
-16
No files found.
modules/ts/misc/xls-report.py
View file @
92c823f8
...
@@ -259,7 +259,8 @@ def main():
...
@@ -259,7 +259,8 @@ def main():
for
(
w
,
caption
)
in
[
for
(
w
,
caption
)
in
[
(
2500
,
'Module'
),
(
2500
,
'Module'
),
(
10000
,
'Test'
),
(
10000
,
'Test'
),
(
2500
,
'Image
\n
size'
),
(
2000
,
'Image
\n
width'
),
(
2000
,
'Image
\n
height'
),
(
2000
,
'Data
\n
type'
),
(
2000
,
'Data
\n
type'
),
(
7500
,
'Other parameters'
)]:
(
7500
,
'Other parameters'
)]:
sheet
.
col
(
col
)
.
width
=
w
sheet
.
col
(
col
)
.
width
=
w
...
@@ -311,17 +312,19 @@ def main():
...
@@ -311,17 +312,19 @@ def main():
image_size
=
next
(
ifilter
(
re_image_size
.
match
,
param_list
),
None
)
image_size
=
next
(
ifilter
(
re_image_size
.
match
,
param_list
),
None
)
if
image_size
is
not
None
:
if
image_size
is
not
None
:
sheet
.
write
(
row
,
2
,
image_size
)
(
image_width
,
image_height
)
=
map
(
int
,
image_size
.
split
(
'x'
,
1
))
sheet
.
write
(
row
,
2
,
image_width
)
sheet
.
write
(
row
,
3
,
image_height
)
del
param_list
[
param_list
.
index
(
image_size
)]
del
param_list
[
param_list
.
index
(
image_size
)]
data_type
=
next
(
ifilter
(
re_data_type
.
match
,
param_list
),
None
)
data_type
=
next
(
ifilter
(
re_data_type
.
match
,
param_list
),
None
)
if
data_type
is
not
None
:
if
data_type
is
not
None
:
sheet
.
write
(
row
,
3
,
data_type
)
sheet
.
write
(
row
,
4
,
data_type
)
del
param_list
[
param_list
.
index
(
data_type
)]
del
param_list
[
param_list
.
index
(
data_type
)]
sheet
.
row
(
row
)
.
write
(
4
,
' | '
.
join
(
param_list
))
sheet
.
row
(
row
)
.
write
(
5
,
' | '
.
join
(
param_list
))
col
=
5
col
=
6
for
c
in
config_names
:
for
c
in
config_names
:
if
c
in
configs
:
if
c
in
configs
:
...
@@ -331,18 +334,13 @@ def main():
...
@@ -331,18 +334,13 @@ def main():
col
+=
1
col
+=
1
if
args
.
show_times_per_pixel
:
if
args
.
show_times_per_pixel
:
sheet
.
write
(
row
,
col
,
sheet
.
write
(
row
,
col
,
xlwt
.
Formula
(
xlwt
.
Formula
(
'{0} * 1000000 / ({1} * {2})'
.
format
(
'''
{0} * 1000000 / (
VALUE(MID({1}; 1; SEARCH("x"; {1}) - 1))
* VALUE(MID({1}; SEARCH("x"; {1}) + 1; LEN({1})))
)
'''
.
replace
(
'
\n
'
,
''
)
.
replace
(
' '
,
''
)
.
format
(
xlwt
.
Utils
.
rowcol_to_cell
(
row
,
col
-
1
),
xlwt
.
Utils
.
rowcol_to_cell
(
row
,
col
-
1
),
xlwt
.
Utils
.
rowcol_to_cell
(
row
,
2
)
xlwt
.
Utils
.
rowcol_to_cell
(
row
,
2
),
)
xlwt
.
Utils
.
rowcol_to_cell
(
row
,
3
)
),
)),
time_style
)
time_style
)
col
+=
1
col
+=
1
col
+=
1
# blank column
col
+=
1
# blank column
...
...
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