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
7940d4d9
Commit
7940d4d9
authored
Jun 26, 2015
by
lluis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix win64 compilation error: arrays must be defined with compile-time fixed size :)
parent
a6b46f8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ocr_beamsearch_decoder.cpp
modules/text/src/ocr_beamsearch_decoder.cpp
+2
-3
No files found.
modules/text/src/ocr_beamsearch_decoder.cpp
View file @
7940d4d9
...
...
@@ -552,8 +552,7 @@ void OCRBeamSearchClassifierCNN::eval( InputArray _src, vector< vector<double> >
(
feature_max
.
at
<
double
>
(
0
,
k
)
-
feature_min
.
at
<
double
>
(
0
,
k
));
}
double
probabilities
[
nr_class
];
double
*
p
=
&
probabilities
[
0
];
double
*
p
=
new
double
[
nr_class
];
double
predict_label
=
eval_feature
(
feature
,
p
);
//cout << " Prediction: " << vocabulary[predict_label] << " with probability " << p[0] << endl;
if
(
predict_label
<
0
)
// TODO use cvError
...
...
@@ -562,7 +561,7 @@ void OCRBeamSearchClassifierCNN::eval( InputArray _src, vector< vector<double> >
seg_points
++
;
oversegmentation
.
push_back
(
seg_points
);
vector
<
double
>
recognition_p
(
p
robabilities
,
probabilities
+
sizeof
(
probabilities
)
/
sizeof
(
double
));
vector
<
double
>
recognition_p
(
p
,
p
+
nr_class
*
sizeof
(
double
));
recognition_probabilities
.
push_back
(
recognition_p
);
}
...
...
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