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
c382395d
Commit
c382395d
authored
Jan 19, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #518 from patricksnape:msvc09_python_fixes
parents
f8205a7d
0900a86b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ocr_beamsearch_decoder.cpp
modules/text/src/ocr_beamsearch_decoder.cpp
+1
-1
ocr_hmm_decoder.cpp
modules/text/src/ocr_hmm_decoder.cpp
+1
-1
trackerKCF.cpp
modules/tracking/src/trackerKCF.cpp
+1
-1
No files found.
modules/text/src/ocr_beamsearch_decoder.cpp
View file @
c382395d
...
...
@@ -566,7 +566,7 @@ OCRBeamSearchClassifierCNN::OCRBeamSearchClassifierCNN (const string& filename)
nr_feature
=
weights
.
rows
;
nr_class
=
weights
.
cols
;
patch_size
=
(
int
)
sqrt
(
kernels
.
cols
);
patch_size
=
(
int
)
sqrt
(
(
float
)
kernels
.
cols
);
window_size
=
4
*
patch_size
;
step_size
=
4
;
quad_size
=
12
;
...
...
modules/text/src/ocr_hmm_decoder.cpp
View file @
c382395d
...
...
@@ -982,7 +982,7 @@ OCRHMMClassifierCNN::OCRHMMClassifierCNN (const string& filename)
nr_feature
=
weights
.
rows
;
nr_class
=
weights
.
cols
;
patch_size
=
(
int
)
sqrt
(
kernels
.
cols
);
patch_size
=
(
int
)
sqrt
(
(
float
)
kernels
.
cols
);
// algorithm internal parameters
window_size
=
32
;
num_quads
=
25
;
...
...
modules/tracking/src/trackerKCF.cpp
View file @
c382395d
...
...
@@ -666,7 +666,7 @@ namespace cv{
for
(
int
i
=
0
;
i
<
patch_data
.
rows
;
i
++
){
for
(
int
j
=
0
;
j
<
patch_data
.
cols
;
j
++
){
pixel
=
patch_data
.
at
<
Vec3b
>
(
i
,
j
);
index
=
(
unsigned
)(
floor
(
pixel
[
2
]
/
8
)
+
32
*
floor
(
pixel
[
1
]
/
8
)
+
32
*
32
*
floor
(
pixel
[
0
]
/
8
));
index
=
(
unsigned
)(
floor
(
(
float
)
pixel
[
2
]
/
8
)
+
32
*
floor
((
float
)
pixel
[
1
]
/
8
)
+
32
*
32
*
floor
((
float
)
pixel
[
0
]
/
8
));
//copy the values
for
(
int
_k
=
0
;
_k
<
10
;
_k
++
){
...
...
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