Giter Site home page Giter Site logo

Comments (4)

naftalibeder avatar naftalibeder commented on September 3, 2024 2

@kirito12138 I had forked/modified this a while ago - here's an annotated version:

object_pts_source = [
    [-7.308957, 0.913869, 0.000000],
    [-6.775290, -0.730814, -0.012799],
    [-5.665918, -3.286078, 1.022951],
    [-5.011779, -4.876396, 1.047961],
    [-4.056931, -5.947019, 1.636229],
    [-1.833492, -7.056977, 4.061275],
    [0.000000, -7.415691, 4.070434],
    [1.833492, -7.056977, 4.061275],
    [4.056931, -5.947019, 1.636229],
    [5.011779, -4.876396, 1.047961],
    [5.665918, -3.286078, 1.022951],
    [6.775290, -0.730814, -0.012799],
    [7.308957, 0.913869, 0.000000],
    [5.311432, 5.485328, 3.987654],
    [4.461908, 6.189018, 5.594410],
    [3.550622, 6.185143, 5.712299],
    [2.542231, 5.862829, 4.687939],
    [1.789930, 5.393625, 4.413414],
    [2.693583, 5.018237, 5.072837],
    [3.530191, 4.981603, 4.937805],
    [4.490323, 5.186498, 4.694397],
    [-5.311432, 5.485328, 3.987654],
    [-4.461908, 6.189018, 5.594410],
    [-3.550622, 6.185143, 5.712299],
    [-2.542231, 5.862829, 4.687939],
    [-1.789930, 5.393625, 4.413414],
    [-2.693583, 5.018237, 5.072837],
    [-3.530191, 4.981603, 4.937805],
    [-4.490323, 5.186498, 4.694397],
    [1.330353, 7.122144, 6.903745],
    [2.533424, 7.878085, 7.451034],
    [4.861131, 7.878672, 6.601275],
    [6.137002, 7.271266, 5.200823],
    [6.825897, 6.760612, 4.402142],
    [-1.330353, 7.122144, 6.903745],
    [-2.533424, 7.878085, 7.451034],
    [-4.861131, 7.878672, 6.601275],
    [-6.137002, 7.271266, 5.200823],
    [-6.825897, 6.760612, 4.402142],
    [-2.774015, -2.080775, 5.048531],
    [-0.509714, -1.571179, 6.566167],
    [0.000000, -1.646444, 6.704956],
    [0.509714, -1.571179, 6.566167],
    [2.774015, -2.080775, 5.048531],
    [0.589441, -2.958597, 6.109526],
    [0.000000, -3.116408, 6.097667],
    [-0.589441, -2.958597, 6.109526],
    [-0.981972, 4.554081, 6.301271],
    [-0.973987, 1.916389, 7.654050],
    [-2.005628, 1.409845, 6.165652],
    [-1.930245, 0.424351, 5.914376],
    [-0.746313, 0.348381, 6.263227],
    [0.000000, 0.000000, 6.763430],
    [0.746313, 0.348381, 6.263227],
    [1.930245, 0.424351, 5.914376],
    [2.005628, 1.409845, 6.165652],
    [0.973987, 1.916389, 7.654050],
    [0.981972, 4.554081, 6.301271],
    [0.000000, 1.916389, 7.700000],
]

points_map = {
    # object_pt_id: image_pt_id
    0: 17,  # start jawline - right
    1: 16,
    2: 14,
    3: 13,
    4: 12,
    5: 10,
    6: 9,  # chin center
    7: 8,
    8: 6,
    9: 5,
    10: 4,
    11: 2,
    12: 1,  # end jawline - left
    43: 49,  # start mouth - left corner
    42: 51,
    41: 52,
    40: 53,
    39: 55,  # mouth - right corner
    46: 57,
    45: 58,
    44: 59,  # end mouth
    54: 32,  # start nose - left
    53: 33,
    52: 34,
    51: 35,
    50: 36,  # end nose - right
    58: 31,  # nose tip (new point)
    13: 37,  # start left eye - left corner
    14: 38,
    16: 39,
    17: 40,  # left eye - right corner
    18: 41,
    20: 42,  # end left eye
    25: 43,  # start right eye - left corner
    24: 44,
    22: 45,
    21: 46,  # right eye - right corner
    28: 47,
    26: 48,  # end right eye
    33: 18,  # start left eyebrow - left corner
    32: 19,
    31: 20,
    30: 21,
    29: 22,  # end left eyebrow - right corner
    34: 23,  # start right eyebrow - left corner
    35: 24,
    36: 25,
    37: 26,
    38: 27,  # end right eyebrow - right corner
}

from head-pose-estimation.

kirito12138 avatar kirito12138 commented on September 3, 2024

Me too. The link in ReadMe http://aifi.isr.uc.pt/Downloads/OpenGL/glAnthropometric3DModel.cpp is not available. Could you please provide the original 3D face model points? I would really appreciate that. Thanks a lot! @lincolnhard

from head-pose-estimation.

kirito12138 avatar kirito12138 commented on September 3, 2024

Thank you so much for your help!

from head-pose-estimation.

Darius18 avatar Darius18 commented on September 3, 2024

i wonder where did the "object_pts_source" come from? what are those number mean?
@naftalibeder naftalibeder

@kirito12138 I had forked/modified this a while ago - here's an annotated version:

object_pts_source = [
    [-7.308957, 0.913869, 0.000000],
    [-6.775290, -0.730814, -0.012799],
    [-5.665918, -3.286078, 1.022951],
    [-5.011779, -4.876396, 1.047961],
    [-4.056931, -5.947019, 1.636229],
    [-1.833492, -7.056977, 4.061275],
    [0.000000, -7.415691, 4.070434],
    [1.833492, -7.056977, 4.061275],
    [4.056931, -5.947019, 1.636229],
    [5.011779, -4.876396, 1.047961],
    [5.665918, -3.286078, 1.022951],
    [6.775290, -0.730814, -0.012799],
    [7.308957, 0.913869, 0.000000],
    [5.311432, 5.485328, 3.987654],
    [4.461908, 6.189018, 5.594410],
    [3.550622, 6.185143, 5.712299],
    [2.542231, 5.862829, 4.687939],
    [1.789930, 5.393625, 4.413414],
    [2.693583, 5.018237, 5.072837],
    [3.530191, 4.981603, 4.937805],
    [4.490323, 5.186498, 4.694397],
    [-5.311432, 5.485328, 3.987654],
    [-4.461908, 6.189018, 5.594410],
    [-3.550622, 6.185143, 5.712299],
    [-2.542231, 5.862829, 4.687939],
    [-1.789930, 5.393625, 4.413414],
    [-2.693583, 5.018237, 5.072837],
    [-3.530191, 4.981603, 4.937805],
    [-4.490323, 5.186498, 4.694397],
    [1.330353, 7.122144, 6.903745],
    [2.533424, 7.878085, 7.451034],
    [4.861131, 7.878672, 6.601275],
    [6.137002, 7.271266, 5.200823],
    [6.825897, 6.760612, 4.402142],
    [-1.330353, 7.122144, 6.903745],
    [-2.533424, 7.878085, 7.451034],
    [-4.861131, 7.878672, 6.601275],
    [-6.137002, 7.271266, 5.200823],
    [-6.825897, 6.760612, 4.402142],
    [-2.774015, -2.080775, 5.048531],
    [-0.509714, -1.571179, 6.566167],
    [0.000000, -1.646444, 6.704956],
    [0.509714, -1.571179, 6.566167],
    [2.774015, -2.080775, 5.048531],
    [0.589441, -2.958597, 6.109526],
    [0.000000, -3.116408, 6.097667],
    [-0.589441, -2.958597, 6.109526],
    [-0.981972, 4.554081, 6.301271],
    [-0.973987, 1.916389, 7.654050],
    [-2.005628, 1.409845, 6.165652],
    [-1.930245, 0.424351, 5.914376],
    [-0.746313, 0.348381, 6.263227],
    [0.000000, 0.000000, 6.763430],
    [0.746313, 0.348381, 6.263227],
    [1.930245, 0.424351, 5.914376],
    [2.005628, 1.409845, 6.165652],
    [0.973987, 1.916389, 7.654050],
    [0.981972, 4.554081, 6.301271],
    [0.000000, 1.916389, 7.700000],
]

from head-pose-estimation.

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.