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
a69c5919
Commit
a69c5919
authored
Aug 15, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Android build.
parent
aba20087
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
17 deletions
+6
-17
ObjdetectTest.java
...oid_test/src/org/opencv/test/objdetect/ObjdetectTest.java
+6
-17
No files found.
modules/java/android_test/src/org/opencv/test/objdetect/ObjdetectTest.java
View file @
a69c5919
...
...
@@ -8,7 +8,8 @@ import org.opencv.test.OpenCVTestCase;
public
class
ObjdetectTest
extends
OpenCVTestCase
{
public
void
testGroupRectanglesListOfRectInt
()
{
public
void
testGroupRectanglesListOfRectListOfIntegerInt
()
{
fail
(
"Not yet implemented"
);
Rect
r
=
new
Rect
(
10
,
10
,
20
,
20
);
ArrayList
<
Rect
>
rects
=
new
ArrayList
<
Rect
>();
...
...
@@ -16,11 +17,12 @@ public class ObjdetectTest extends OpenCVTestCase {
rects
.
add
(
r
);
int
groupThreshold
=
1
;
Objdetect
.
groupRectangles
(
rects
,
groupThreshold
);
Objdetect
.
groupRectangles
(
rects
,
null
,
groupThreshold
);
//TODO: second parameter should not be null
assertEquals
(
1
,
rects
.
size
());
}
public
void
testGroupRectanglesListOfRectIntDouble
()
{
public
void
testGroupRectanglesListOfRectListOfIntegerIntDouble
()
{
fail
(
"Not yet implemented"
);
Rect
r1
=
new
Rect
(
10
,
10
,
20
,
20
);
Rect
r2
=
new
Rect
(
10
,
10
,
25
,
25
);
ArrayList
<
Rect
>
rects
=
new
ArrayList
<
Rect
>();
...
...
@@ -32,20 +34,7 @@ public class ObjdetectTest extends OpenCVTestCase {
int
groupThreshold
=
1
;
double
eps
=
0.2
;
Objdetect
.
groupRectangles
(
rects
,
groupThreshold
,
eps
);
Objdetect
.
groupRectangles
(
rects
,
null
,
groupThreshold
,
eps
);
//TODO: second parameter should not be null
assertEquals
(
2
,
rects
.
size
());
}
public
void
testGroupRectanglesListOfRectIntDoubleListOfIntegerListOfDouble
()
{
fail
(
"Not yet implemented"
);
}
public
void
testGroupRectanglesListOfRectListOfIntegerInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testGroupRectanglesListOfRectListOfIntegerIntDouble
()
{
fail
(
"Not yet implemented"
);
}
}
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