Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Thiago Santini
EyeRecToo
Commits
ea1d372e
Commit
ea1d372e
authored
Dec 17, 2017
by
Thiago Santini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small modifications to marker detection parameters
parent
f0dd9818
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
EyeRecToo/src/FieldImageProcessor.cpp
EyeRecToo/src/FieldImageProcessor.cpp
+4
-3
No files found.
EyeRecToo/src/FieldImageProcessor.cpp
View file @
ea1d372e
...
...
@@ -21,8 +21,9 @@ FieldImageProcessor::FieldImageProcessor(QString id, QObject *parent)
dict
=
getPredefinedDictionary
(
DICT_4X4_250
);
detectorParameters
=
new
DetectorParameters
();
detectorParameters
->
markerBorderBits
=
2
;
detectorParameters
->
minMarkerPerimeterRate
=
0.05
;
// TODO: determine a good value for these based on the fov and maximum detection distance
//printMarkers(); // TODO: parametrize me
detectorParameters
->
minMarkerPerimeterRate
=
0.1
;
// TODO: determine a good value for these based on the fov and maximum detection distance
detectorParameters
->
doCornerRefinement
=
false
;
//printMarkers(); // TODO: parametrize me
pmIdx
=
gPerformanceMonitor
.
enrol
(
id
,
"Image Processor"
);
}
...
...
@@ -43,7 +44,7 @@ FieldImageProcessor::~FieldImageProcessor()
void
FieldImageProcessor
::
process
(
Timestamp
timestamp
,
const
Mat
&
frame
)
{
// TODO: parametrize frame drop due to lack of processing power
if
(
gPerformanceMonitor
.
shouldDrop
(
pmIdx
,
gTimer
.
elapsed
()
-
timestamp
,
100
)
)
if
(
gPerformanceMonitor
.
shouldDrop
(
pmIdx
,
gTimer
.
elapsed
()
-
timestamp
,
100
)
)
return
;
QMutexLocker
locker
(
&
cfgMutex
);
...
...
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