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
33e35c08
Commit
33e35c08
authored
Nov 10, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text: reset counters in ERFilterNM::run()
parent
901e61d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
erfilter.hpp
modules/text/include/opencv2/text/erfilter.hpp
+1
-1
erfilter.cpp
modules/text/src/erfilter.cpp
+4
-2
No files found.
modules/text/include/opencv2/text/erfilter.hpp
View file @
33e35c08
...
...
@@ -159,7 +159,7 @@ public:
virtual
void
setMinProbability
(
float
minProbability
)
=
0
;
virtual
void
setMinProbabilityDiff
(
float
minProbabilityDiff
)
=
0
;
virtual
void
setNonMaxSuppression
(
bool
nonMaxSuppression
)
=
0
;
virtual
int
getNumRejected
()
=
0
;
virtual
int
getNumRejected
()
const
=
0
;
};
...
...
modules/text/src/erfilter.cpp
View file @
33e35c08
...
...
@@ -145,7 +145,7 @@ public:
void
setMinProbability
(
float
minProbability
)
CV_OVERRIDE
;
void
setMinProbabilityDiff
(
float
minProbabilityDiff
)
CV_OVERRIDE
;
void
setNonMaxSuppression
(
bool
nonMaxSuppression
)
CV_OVERRIDE
;
int
getNumRejected
()
CV_OVERRIDE
;
int
getNumRejected
()
const
CV_OVERRIDE
;
private
:
// pointer to the input/output regions vector
...
...
@@ -223,6 +223,8 @@ ERFilterNM::ERFilterNM()
// input/output for the second one.
void
ERFilterNM
::
run
(
InputArray
image
,
vector
<
ERStat
>&
_regions
)
{
num_rejected_regions
=
0
;
num_accepted_regions
=
0
;
// assert correct image type
CV_Assert
(
image
.
getMat
().
type
()
==
CV_8UC1
);
...
...
@@ -999,7 +1001,7 @@ void ERFilterNM::setNonMaxSuppression(bool _nonMaxSuppression)
return
;
}
int
ERFilterNM
::
getNumRejected
()
int
ERFilterNM
::
getNumRejected
()
const
{
return
num_rejected_regions
;
}
...
...
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