Code Monkey home page Code Monkey logo

Comments (3)

xucong-zhang avatar xucong-zhang commented on September 17, 2024 1

Hi, I added a code example "normalization_example.py" which does the data normalization frow raw to the normalized data. Basically, you need to get the face centre as the gaze origin, and the gaze 3d location (column 5-7) as the end of gaze direction. You can see the gaze direction definition here.

from eth-xgaze.

xjcvip007 avatar xjcvip007 commented on September 17, 2024

Another question, in "demo.py", when I use cam00.JPG as input, the output of head pose rotation is
[[-0.56751225]
[ 0.12823843]
[-0.01663368]], the pitch result may be wrong? Then I plot head pose orientation as blue arrow shown. Is anything wrong in demo.py?
results_gaze

from eth-xgaze.

xucong-zhang avatar xucong-zhang commented on September 17, 2024

Hi, sorry for the late reply.

The head rotation "hr" is not a pointing vector. It is the rotation vector on roll, yaw and pitch axis.

If you want to show it on the image, you can convert the rotation vector to a rotation matrix with OpenCV (cv2.Rodrigues) and apply this rotation to a vector [0, 0, 1], and then you can draw its projection on the image.

from eth-xgaze.

Related Issues (20)

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.