qhan1028 / headpose-detection Goto Github PK
View Code? Open in Web Editor NEWBounding Box + Landmark + Headpose
Bounding Box + Landmark + Headpose
Have some problems when testing following images
Traceback (most recent call last):
File "headpose.py", line 237, in <module>
main(args)
File "headpose.py", line 206, in main
res, angles = hpd.process_image(image)
File "headpose.py", line 191, in process_image
im = annotator.draw_all()
File "/home/tumh/Headpose-Detection/utils.py", line 48, in draw_all
self.draw_axes()
File "/home/tumh/Headpose-Detection/utils.py", line 82, in draw_axes
cv2.line(self.im, p1, p2, Color.blue, self.ls)
cv2.error: OpenCV(3.4.3) /io/opencv/modules/imgproc/src/drawing.cpp:1811: error: (-215:Assertion failed) 0 < thickness && thickness <= MAX_THICKNESS in function 'line'
up
landmarks_3d_list = [
np.array([
[ 0.000, 0.000, 0.000], # Nose tip
[ 0.000, -8.250, -1.625], # Chin
[-5.625, 4.250, -3.375], # Left eye left corner
[ 5.625, 4.250, -3.375], # Right eye right corner
[-3.750, -3.750, -3.125], # Left Mouth corner
[ 3.750, -3.750, -3.125] # Right mouth corner
], dtype=np.double),
np.array([
[ 0.000000, 0.000000, 6.763430], # 52 nose bottom edge
[ 6.825897, 6.760612, 4.402142], # 33 left brow left corner
[ 1.330353, 7.122144, 6.903745], # 29 left brow right corner
[-1.330353, 7.122144, 6.903745], # 34 right brow left corner
[-6.825897, 6.760612, 4.402142], # 38 right brow right corner
[ 5.311432, 5.485328, 3.987654], # 13 left eye left corner
[ 1.789930, 5.393625, 4.413414], # 17 left eye right corner
[-1.789930, 5.393625, 4.413414], # 25 right eye left corner
[-5.311432, 5.485328, 3.987654], # 21 right eye right corner
[ 2.005628, 1.409845, 6.165652], # 55 nose left corner
[-2.005628, 1.409845, 6.165652], # 49 nose right corner
[ 2.774015, -2.080775, 5.048531], # 43 mouth left corner
[-2.774015, -2.080775, 5.048531], # 39 mouth right corner
[ 0.000000, -3.116408, 6.097667], # 45 mouth central bottom corner
[ 0.000000, -7.415691, 4.070434] # 6 chin corner
], dtype=np.double),
np.array([
[ 0.000000, 0.000000, 6.763430], # 52 nose bottom edge
[ 5.311432, 5.485328, 3.987654], # 13 left eye left corner
[ 1.789930, 5.393625, 4.413414], # 17 left eye right corner
[-1.789930, 5.393625, 4.413414], # 25 right eye left corner
[-5.311432, 5.485328, 3.987654] # 21 right eye right corner
], dtype=np.double)
]
以上三组点位的3d坐标原点不一样吧? 请问3d点位是从哪里得到的呢? 能否给个链接?
Is there a way where this can be used for estimating multiple head poses??if so ,please help
为什么我的 t = Timer() 会报错,要求要有两个参数
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.