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
93f910e9
Commit
93f910e9
authored
Aug 21, 2019
by
lizeth huertas
Committed by
Lizeth Huertas
Aug 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
aruco contour detection :: improved
parent
bb1dee17
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
15 deletions
+1
-15
aruco.cpp
modules/aruco/src/aruco.cpp
+0
-0
test_arucodetection.cpp
modules/aruco/test/test_arucodetection.cpp
+1
-15
No files found.
modules/aruco/src/aruco.cpp
View file @
93f910e9
This diff is collapsed.
Click to expand it.
modules/aruco/test/test_arucodetection.cpp
View file @
93f910e9
...
@@ -322,24 +322,10 @@ void CV_ArucoDetectionPerspective::run(int tryWith) {
...
@@ -322,24 +322,10 @@ void CV_ArucoDetectionPerspective::run(int tryWith) {
}
}
for
(
int
c
=
0
;
c
<
4
;
c
++
)
{
for
(
int
c
=
0
;
c
<
4
;
c
++
)
{
double
dist
=
cv
::
norm
(
groundTruthCorners
[
c
]
-
corners
[
0
][
c
]);
// TODO cvtest
double
dist
=
cv
::
norm
(
groundTruthCorners
[
c
]
-
corners
[
0
][
c
]);
// TODO cvtest
if
(
CV_ArucoDetectionPerspective
::
DETECT_INVERTED_MARKER
==
tryWith
){
if
(
dist
>
5
)
{
if
(
szEnclosed
&&
dist
>
3
){
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Incorrect marker corners position"
);
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Incorrect marker corners position"
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_BAD_ACCURACY
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_BAD_ACCURACY
);
return
;
return
;
}
if
(
!
szEnclosed
&&
dist
>
15
){
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Incorrect marker corners position"
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_BAD_ACCURACY
);
return
;
}
}
else
{
if
(
dist
>
5
)
{
ts
->
printf
(
cvtest
::
TS
::
LOG
,
"Incorrect marker corners position"
);
ts
->
set_failed_test_info
(
cvtest
::
TS
::
FAIL_BAD_ACCURACY
);
return
;
}
}
}
}
}
}
}
...
...
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