Commit 32aed23a authored by Thiago Santini's avatar Thiago Santini

Disables frame grabber offset estimation

Also changes default calibration method and maximum pupil size
parent d895f90b
...@@ -49,7 +49,7 @@ public: ...@@ -49,7 +49,7 @@ public:
, tracking(true) , tracking(true)
, roi(0.0f, 0.0f, 1.f, 1.f) , roi(0.0f, 0.0f, 1.f, 1.f)
, minPupilDiameterRatio(0.0f) , minPupilDiameterRatio(0.0f)
, maxPupilDiameterRatio(0.0f) , maxPupilDiameterRatio(0.27f)
{ {
} }
......
...@@ -87,6 +87,8 @@ bool FrameGrabber::present(const QVideoFrame& frame) ...@@ -87,6 +87,8 @@ bool FrameGrabber::present(const QVideoFrame& frame)
*/ */
Timestamp t = ns2ms(gTimer.nsecsElapsed()); Timestamp t = ns2ms(gTimer.nsecsElapsed());
/* TODO: Disabled for the time being; the number of samples here should be
* better adjusted otherwise we risk getting the offset wrong
const QString tMetaStr = "timestamp"; const QString tMetaStr = "timestamp";
if (frame.metaData(tMetaStr).isValid()) { if (frame.metaData(tMetaStr).isValid()) {
Timestamp ft = qvariant_cast<Timestamp>(frame.metaData(tMetaStr)); Timestamp ft = qvariant_cast<Timestamp>(frame.metaData(tMetaStr));
...@@ -98,6 +100,7 @@ bool FrameGrabber::present(const QVideoFrame& frame) ...@@ -98,6 +100,7 @@ bool FrameGrabber::present(const QVideoFrame& frame)
} }
t = ft + timestampOffset; t = ft + timestampOffset;
} }
*/
if (!frame.isValid()) if (!frame.isValid())
return false; return false;
......
...@@ -87,7 +87,7 @@ public: ...@@ -87,7 +87,7 @@ public:
, pupilOutlineOutliers(true) , pupilOutlineOutliers(true)
, pupilDiameterOutliers(true) , pupilDiameterOutliers(true)
, inputType(GazeEstimationMethod::BINOCULAR) , inputType(GazeEstimationMethod::BINOCULAR)
, gazeEstimationMethod("POLY_X_Y_XY_XX_YY_XYY_YXX_XXYY") , gazeEstimationMethod("BIPOLY_X_Y_XY_XX_YY_XYY_YXX_XXYY")
, visualize(true) , visualize(true)
, visualizationTimeS(5) , visualizationTimeS(5)
, showVirtualMarker(false) , showVirtualMarker(false)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment