Coder Social home page Coder Social logo

pitch, yaw and roll about deepgaze HOT 5 CLOSED

galihjozu avatar galihjozu commented on May 16, 2024
pitch, yaw and roll

from deepgaze.

Comments (5)

mpatacchiola avatar mpatacchiola commented on May 16, 2024

Hi @galihjozu

Yes it is definitely possible, give a look to the closed issues since it has already been discussed in the past.

from deepgaze.

kgupta15 avatar kgupta15 commented on May 16, 2024

@galihjozu did you get the angles of pose that you were trying to get? I want the same results but havent been able to.

from deepgaze.

galihjozu avatar galihjozu commented on May 16, 2024

@daemonslayer
take a look at #3

(success, rotation_vector, translation_vector) = cv2.solvePnP(model_points, image_points, camera_matrix, dist_coeffs, flags=cv2.CV_ITERATIVE)
rvec_matrix = cv2.Rodrigues(rotation_vector)[0]
proj_matrix = np.hstack((rvec_matrix, translation_vector))
eulerAngles = -cv2.decomposeProjectionMatrix(proj_matrix)[6]
yaw = eulerAngles[1]
pitch = eulerAngles[0]
roll = eulerAngles[2]

but the result aren't degree yet. it still string..
so can you help me more @mpatacchiola . how to change the string into degree.

from deepgaze.

kgupta15 avatar kgupta15 commented on May 16, 2024

@galihjozu this library also provides pose estimate with yaw, pitch and roll values. Why not use them directly? Or maybe I misunderstood and you are trying to compare opencv results to library's results?

@mpatacchiola the yaw, pitch and roll values of this library are quite different from opencv's. Do I need to do some calibration of coordinate system? Also, I need to get values such that I can place glasses on to a face. Degrees of rotation per axis would be useful so that I can use the angled render of 3d glass model. Can you please suggest how I can do that? Thanks.

from deepgaze.

galihjozu avatar galihjozu commented on May 16, 2024

do you mean like this example @daemonslayer ? ex_cnn_head_pose_estimation_images

i think that example just will run in image only, i dont think that it may run in realtime webcam.
am i wrong? is it possible to measure the degree in webcam?

i am trying to add this to the code.
http://answers.opencv.org/question/161369/retrieve-yaw-pitch-roll-from-rvec/

from deepgaze.

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.