Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where do the object_points come from and which in which units are they measured? #32

Open
funkfuzz opened this issue Jul 24, 2020 · 4 comments

Comments

@funkfuzz
Copy link

Hi @lincolnhard,

first - thanks for the nice project.

I would like to know where do the values for the object_points come from and in which units are they?

@kirito12138
Copy link

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

@naftalibeder
Copy link

@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
}

@kirito12138
Copy link

Thank you so much for your help!

@Darius18
Copy link

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],
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants