Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfixes for upcoming v1.7 release #1157

Merged
merged 13 commits into from
Apr 20, 2018
Merged

Bugfixes for upcoming v1.7 release #1157

merged 13 commits into from
Apr 20, 2018

Conversation

papr
Copy link
Contributor

@papr papr commented Apr 17, 2018

@papr papr added this to the v1.7 milestone Apr 18, 2018
"""
Undistorts points according to the camera model.
cv2.fisheye.undistortPoints does *NOT* perform the same unprojection step the original cv2.undistortPoints does.
cv2.fisheye.unprojectPoints does *NOT* perform the same unprojection step the original cv2.unprojectPoints does.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think copy replace was applied a bit to generously in this case.

# f = np.array((self.K[0, 0], self.K[1, 1])).reshape(1, 2)
# c = np.array((self.K[0, 2], self.K[1, 2])).reshape(1, 2)
# xy_undist = xy_undist * f + c
# xy_undist = cv2.fisheye.undistortPoints(xy, self.K, self.D, P=self.K)
# xy_undist = cv2.fisheye.unprojectPoints(xy, self.K, self.D, P=self.K)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make sure this change is correct. Seems fishy.

if xy.ndim == 2:
xy= np.expand_dims(xy, 0)

xy_undist = cv2.fisheye.undistortPoints(
xy_undist = cv2.fisheye.unprojectPoints(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

again, fishy (get it :-) )

Copy link
Member

@mkassner mkassner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think copy replace was to broadly applied. Please check.

@@ -83,7 +83,10 @@ def fixation_from_data(dispersion, method, base_data, timestamps=None):

def vector_dispersion(vectors):
distances = pdist(vectors, metric='cosine')
return np.arccos(1. - distances.max())
distances.sort() # sort by distance
Copy link
Member

@mkassner mkassner Apr 18, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reference to lit or a small explanation?

@@ -1,126 +0,0 @@
# Pupil Time Sync Protocol
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we misunderstood each other, I thought we leave this here but link from Pupil helpers to here. (have the spec stay with implementation.)

@papr
Copy link
Contributor Author

papr commented Apr 20, 2018

  • Linux dependencies: Fix compatibility with current openCV master - 639b041
  • Fixation Detector: Improve false negative rate - bdd2333

@mkassner mkassner merged commit 71aed9c into pupil-labs:master Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add blink detection plugin to Pupil Service
2 participants