Giter VIP home page Giter VIP logo

headpose-detection's People

Contributors

qhan1028 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

headpose-detection's Issues

small image

Have some problems when testing following images

0003_01

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'

点位3d参考系不一样吧?请问3d点位是从哪里得到的呢? 能否给个链接?

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点位是从哪里得到的呢? 能否给个链接?

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.