Comments (5)
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.
@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.
@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.
@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.
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)
- Improvements on skin detect HOT 3
- How could I load the head pose estimator pre-trained model by checkpoint? HOT 1
- cnn_head_pose estimation: module 'tensorflow' has no attribute 'placeholder' HOT 7
- cnn_head_pose_estimation problems HOT 1
- Can I achieve the 3D head translation vector HOT 1
- Face recognition
- What is the range of angles for the head pose estimation? HOT 3
- difficulties installing HOT 3
- Check for OpenCV 2, 3 and 4 HOT 1
- contours, hierarchy = cv2.findContours(mask, 1, 2) ValueError: too many values to unpack (expected 2) HOT 2
- import cv doesn't work in both version HOT 6
- Unsupported image type, must be 8bit gray or RGB image. HOT 2
- A bit issue that i fixed for you use in opencv v3 HOT 1
- NameError: name 'x_center' is not defined HOT 3
- Freezing and optimizing the model HOT 6
- Input format for the network HOT 4
- Accuracy of deepgaze HOT 8
- Problem with tensorflow version
- Different head pose angles HOT 2
- Notebooks HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepgaze.