Code Monkey home page Code Monkey logo

eye-gaze-estimator's People

Contributors

benjaminpoilve avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

eye-gaze-estimator's Issues

'Distance' not defined

Hallo!
Thank you for sharing the results of your hard work.
I'm trying to replicate your experiments with your python notebook, but I get the following error:
**---------------------------------------------------------------------------
NameError Traceback (most recent call last)
in
122
123 for index,POI in enumerate(faces_data):
--> 124 viewPoint=getCoordFromFace(POI[0],eye_centers[index])
125 cv2.line(test,(int(eye_centers[index][0][0]),int(eye_centers[index][0][1])),(int(eye_centers[index][0][0]-viewPoint[0]),int(eye_centers[index][0][1]-viewPoint[1])),(0,255,0),4, -1)
126

in getCoordFromFace(FacePOI, eyeData)
75 retval,rvec, tvec = cv2.solvePnP(ThreeDFacePOI, FacePOI, cameraMatrix, distCoeffs);
76 rt, jacobian= cv2.Rodrigues(rvec)
---> 77 rot2=rotMatFromEye(eyeData)
78
79 origin= [tvec[0][0],tvec[1][0],tvec[2][0]]

in rotMatFromEye(eyeData)
38 def rotMatFromEye(eyeData):
39 #print eyeData
---> 40 eyeDiameter = eyeConst*Distance(eyeData[1][0],eyeData[1][1])
41 eyeCenter = ((eyeData[1][0][0]+eyeData[1][1][0])/2.0,(eyeData[1][0][1]+eyeData[1][1][1])/2.0)
42 eyePos=eyeData[0]

NameError: name 'Distance' is not defined**

Would you be so kind to advice?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.