Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
钟尚武
dlib
Commits
aa6919d3
Commit
aa6919d3
authored
Feb 12, 2014
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made --stats print out info on unlabeled boxes.
parent
a20f401e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
main.cpp
tools/imglab/src/main.cpp
+12
-12
No files found.
tools/imglab/src/main.cpp
View file @
aa6919d3
...
@@ -192,19 +192,19 @@ void print_all_label_stats (
...
@@ -192,19 +192,19 @@ void print_all_label_stats (
for
(
std
::
set
<
std
::
string
>::
iterator
i
=
labels
.
begin
();
i
!=
labels
.
end
();
++
i
)
for
(
std
::
set
<
std
::
string
>::
iterator
i
=
labels
.
begin
();
i
!=
labels
.
end
();
++
i
)
{
{
if
(
i
->
size
()
!=
0
)
if
(
i
->
size
()
==
0
)
{
cout
<<
"Unlabeled Boxes:"
<<
endl
;
else
cout
<<
"Label: "
<<
*
i
<<
endl
;
cout
<<
"Label: "
<<
*
i
<<
endl
;
cout
<<
" number of images: "
<<
image_hits
[
*
i
]
<<
endl
;
cout
<<
" number of images: "
<<
image_hits
[
*
i
]
<<
endl
;
cout
<<
" number of occurrences: "
<<
area_stats
[
*
i
].
current_n
()
<<
endl
;
cout
<<
" number of occurrences: "
<<
area_stats
[
*
i
].
current_n
()
<<
endl
;
cout
<<
" min box area: "
<<
area_stats
[
*
i
].
min
()
<<
endl
;
cout
<<
" min box area: "
<<
area_stats
[
*
i
].
min
()
<<
endl
;
cout
<<
" max box area: "
<<
area_stats
[
*
i
].
max
()
<<
endl
;
cout
<<
" max box area: "
<<
area_stats
[
*
i
].
max
()
<<
endl
;
cout
<<
" mean box area: "
<<
area_stats
[
*
i
].
mean
()
<<
endl
;
cout
<<
" mean box area: "
<<
area_stats
[
*
i
].
mean
()
<<
endl
;
cout
<<
" stddev box area: "
<<
area_stats
[
*
i
].
stddev
()
<<
endl
;
cout
<<
" stddev box area: "
<<
area_stats
[
*
i
].
stddev
()
<<
endl
;
cout
<<
" mean width/height ratio: "
<<
aspect_ratio
[
*
i
].
mean
()
<<
endl
;
cout
<<
" mean width/height ratio: "
<<
aspect_ratio
[
*
i
].
mean
()
<<
endl
;
cout
<<
" stddev width/height ratio: "
<<
aspect_ratio
[
*
i
].
stddev
()
<<
endl
;
cout
<<
" stddev width/height ratio: "
<<
aspect_ratio
[
*
i
].
stddev
()
<<
endl
;
cout
<<
endl
;
cout
<<
endl
;
}
}
}
}
}
...
...
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