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
21f3987d
Commit
21f3987d
authored
Aug 24, 2018
by
berak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python: add support for NMSBoxes
parent
9f2edc11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
dnn.hpp
modules/dnn/include/opencv2/dnn/dnn.hpp
+1
-1
cv2.cpp
modules/python/src2/cv2.cpp
+13
-0
No files found.
modules/dnn/include/opencv2/dnn/dnn.hpp
View file @
21f3987d
...
...
@@ -900,7 +900,7 @@ CV__DNN_EXPERIMENTAL_NS_BEGIN
CV_OUT
std
::
vector
<
int
>&
indices
,
const
float
eta
=
1.
f
,
const
int
top_k
=
0
);
CV_EXPORTS
void
NMSBoxes
(
const
std
::
vector
<
RotatedRect
>&
bboxes
,
const
std
::
vector
<
float
>&
scores
,
CV_EXPORTS
_AS
(
NMSBoxesRotated
)
void
NMSBoxes
(
const
std
::
vector
<
RotatedRect
>&
bboxes
,
const
std
::
vector
<
float
>&
scores
,
const
float
score_threshold
,
const
float
nms_threshold
,
CV_OUT
std
::
vector
<
int
>&
indices
,
const
float
eta
=
1.
f
,
const
int
top_k
=
0
);
...
...
modules/python/src2/cv2.cpp
View file @
21f3987d
...
...
@@ -119,6 +119,7 @@ typedef std::vector<Vec6f> vector_Vec6f;
typedef
std
::
vector
<
Vec4i
>
vector_Vec4i
;
typedef
std
::
vector
<
Rect
>
vector_Rect
;
typedef
std
::
vector
<
Rect2d
>
vector_Rect2d
;
typedef
std
::
vector
<
RotatedRect
>
vector_RotatedRect
;
typedef
std
::
vector
<
KeyPoint
>
vector_KeyPoint
;
typedef
std
::
vector
<
Mat
>
vector_Mat
;
typedef
std
::
vector
<
std
::
vector
<
Mat
>
>
vector_vector_Mat
;
...
...
@@ -1520,6 +1521,18 @@ template<> struct pyopencvVecConverter<String>
}
};
template
<>
struct
pyopencvVecConverter
<
RotatedRect
>
{
static
bool
to
(
PyObject
*
obj
,
std
::
vector
<
RotatedRect
>&
value
,
const
ArgInfo
info
)
{
return
pyopencv_to_generic_vec
(
obj
,
value
,
info
);
}
static
PyObject
*
from
(
const
std
::
vector
<
RotatedRect
>&
value
)
{
return
pyopencv_from_generic_vec
(
value
);
}
};
template
<>
bool
pyopencv_to
(
PyObject
*
obj
,
TermCriteria
&
dst
,
const
char
*
name
)
{
...
...
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