Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
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_contrib
Commits
a6b46f8b
Commit
a6b46f8b
authored
Jun 26, 2015
by
lluis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilation warnings
parent
662e2ce5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ocr_beamsearch_decoder.cpp
modules/text/src/ocr_beamsearch_decoder.cpp
+4
-4
No files found.
modules/text/src/ocr_beamsearch_decoder.cpp
View file @
a6b46f8b
...
...
@@ -195,7 +195,7 @@ public:
update_beam
(
beam
,
childs
,
recognition_probabilities
);
//cout << "beam size " << beam.size() << " best score " << beam[0].first<< endl;
int
generated_chids
=
childs
.
size
();
int
generated_chids
=
(
int
)
childs
.
size
();
while
(
generated_chids
!=
0
)
{
generated_chids
=
0
;
...
...
@@ -206,7 +206,7 @@ public:
childs
=
generate_childs
(
old_beam
[
i
].
second
,
oversegmentation
,
visited_nodes
);
if
(
!
childs
.
empty
())
update_beam
(
beam
,
childs
,
recognition_probabilities
);
generated_chids
+=
childs
.
size
();
generated_chids
+=
(
int
)
childs
.
size
();
}
//cout << "beam size " << beam.size() << " best score " << beam[0].first << endl;
}
...
...
@@ -248,7 +248,7 @@ private:
unsigned
long
long
int
key
=
0
;
for
(
size_t
j
=
0
;
j
<
child
.
size
();
j
++
)
{
key
+=
pow
(
2
,
oversegmentation
.
size
()
-
(
oversegmentation
.
end
()
-
find
(
oversegmentation
.
begin
(),
oversegmentation
.
end
(),
child
[
j
])));
key
+=
(
unsigned
long
long
int
)
pow
(
2
,
oversegmentation
.
size
()
-
(
oversegmentation
.
end
()
-
find
(
oversegmentation
.
begin
(),
oversegmentation
.
end
(),
child
[
j
])));
}
//if (!visited_nodes[key])
if
(
visited_nodes
.
find
(
key
)
==
visited_nodes
.
end
())
...
...
@@ -530,7 +530,7 @@ void OCRBeamSearchClassifierCNN::eval( InputArray _src, vector< vector<double> >
for
(
int
i
=
0
;
i
<
9
;
i
++
)
{
Mat
pool
=
Mat
(
data_pool
[
i
]);
pool
=
pool
.
reshape
(
0
,
data_pool
[
i
].
size
()
/
kernels
.
cols
);
pool
=
pool
.
reshape
(
0
,
(
int
)
data_pool
[
i
].
size
()
/
kernels
.
cols
);
for
(
int
p
=
0
;
p
<
pool
.
rows
;
p
++
)
{
for
(
int
f
=
0
;
f
<
kernels
.
rows
;
f
++
)
...
...
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