Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
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
Commits
6ef1d456
Commit
6ef1d456
authored
Sep 06, 2013
by
lluis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed rebase conflicts
parent
512111af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
27 deletions
+0
-27
erfilter.hpp
modules/objdetect/include/opencv2/objdetect/erfilter.hpp
+0
-5
erfilter.cpp
modules/objdetect/src/erfilter.cpp
+0
-22
No files found.
modules/objdetect/include/opencv2/objdetect/erfilter.hpp
View file @
6ef1d456
...
...
@@ -190,13 +190,8 @@ CV_EXPORTS Ptr<ERFilter> createERFilterNM1(const Ptr<ERFilter::Callback>& cb = P
if omitted tries to load a default classifier from file trained_classifierNM2.xml
\param minProbability The minimum probability P(er|character) allowed for retreived ER's
*/
<<<<<<<
HEAD
CV_EXPORTS
Ptr
<
ERFilter
>
createERFilterNM2
(
const
Ptr
<
ERFilter
::
Callback
>&
cb
=
Ptr
<
ERFilter
::
Callback
>
(),
float
minProbability
=
0.85
);
=======
CV_EXPORTS
Ptr
<
ERFilter
>
createERFilterNM2
(
const
Ptr
<
ERFilter
::
Callback
>&
cb
=
NULL
,
float
minProbability
=
0.5
);
>>>>>>>
fixed
a
typo
error
in
the
default
min_Probability
param
of
CreateERFilterNM2
}
#endif // _OPENCV_ERFILTER_HPP_
modules/objdetect/src/erfilter.cpp
View file @
6ef1d456
...
...
@@ -783,16 +783,7 @@ ERStat* ERFilterNM::er_tree_filter ( InputArray image, ERStat * stat, ERStat *pa
findContours
(
region
,
contours
,
hierarchy
,
RETR_TREE
,
CHAIN_APPROX_NONE
,
Point
(
0
,
0
)
);
//TODO check epsilon parameter of approxPolyDP (set empirically) : we want more precission
// if the region is very small because otherwise we'll loose all the convexities
<<<<<<<
HEAD
<<<<<<<
HEAD
approxPolyDP
(
Mat
(
contours
[
0
]),
contour_poly
,
min
(
rect
.
width
,
rect
.
height
)
/
17
,
true
);
=======
approxPolyDP
(
Mat
(
contours
[
0
]),
contour_poly
,
(
float
)
min
(
rect
.
width
,
rect
.
height
)
/
17
,
true
);
>>>>>>>
fixed
a
bug
in
the
calculation
of
the
number
of
inflexion
points
feature
=======
approxPolyDP
(
Mat
(
contours
[
0
]),
contour_poly
,
(
float
)
min
(
rect
.
width
,
rect
.
height
)
/
17
,
true
);
>>>>>>>
removed
trailing
whitespaces
bool
was_convex
=
false
;
int
num_inflexion_points
=
0
;
...
...
@@ -1106,16 +1097,8 @@ Ptr<ERFilter> createERFilterNM1(const Ptr<ERFilter::Callback>& cb, int threshold
CV_Assert
(
(
thresholdDelta
>=
0
)
&&
(
thresholdDelta
<=
128
)
);
CV_Assert
(
(
minProbabilityDiff
>=
0.
)
&&
(
minProbabilityDiff
<=
1.
)
);
<<<<<<<
HEAD
Ptr
<
ERFilterNM
>
filter
=
makePtr
<
ERFilterNM
>
();
=======
Ptr
<
ERFilterNM
>
filter
=
new
ERFilterNM
();
<<<<<<<
HEAD
>>>>>>>
fixed
a
bug
in
the
non
-
max
-
suppression
filter
procedure
=======
>>>>>>>
removed
trailing
whitespaces
if
(
cb
==
NULL
)
filter
->
setCallback
(
makePtr
<
ERClassifierNM1
>
());
else
...
...
@@ -1150,11 +1133,6 @@ Ptr<ERFilter> createERFilterNM2(const Ptr<ERFilter::Callback>& cb, float minProb
Ptr
<
ERFilterNM
>
filter
=
makePtr
<
ERFilterNM
>
();
<<<<<<<
HEAD
=======
>>>>>>>
removed
trailing
whitespaces
if
(
cb
==
NULL
)
filter
->
setCallback
(
makePtr
<
ERClassifierNM2
>
());
else
...
...
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