{"action":"created","issue":{"url":"https://api.github.com/repos/davisking/dlib/issues/562","repository_url":"https://api.github.com/repos/davisking/dlib","labels_url":"https://api.github.com/repos/davisking/dlib/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/davisking/dlib/issues/562/comments","events_url":"https://api.github.com/repos/davisking/dlib/issues/562/events","html_url":"https://github.com/davisking/dlib/issues/562","id":224995170,"number":562,"title":"How to improve face landmark detection","user":{"login":"salos1982","id":2404581,"avatar_url":"https://avatars3.githubusercontent.com/u/2404581?v=3","gravatar_id":"","url":"https://api.github.com/users/salos1982","html_url":"https://github.com/salos1982","followers_url":"https://api.github.com/users/salos1982/followers","following_url":"https://api.github.com/users/salos1982/following{/other_user}","gists_url":"https://api.github.com/users/salos1982/gists{/gist_id}","starred_url":"https://api.github.com/users/salos1982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salos1982/subscriptions","organizations_url":"https://api.github.com/users/salos1982/orgs","repos_url":"https://api.github.com/users/salos1982/repos","events_url":"https://api.github.com/users/salos1982/events{/privacy}","received_events_url":"https://api.github.com/users/salos1982/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-04-28T06:53:59Z","updated_at":"2017-04-28T07:31:46Z","closed_at":null,"body":"I compiled example face_landmark_detection_ex and found that it takes quite a lot of time to detect face landmarks. about 370ms for image 1491*1914 on Core i7 3770K with AVX instructions. It is too much.\r\nPossibly I need to add some configuration (openCV or whatever).\r\nMainly I have only one face on photo probably it is possible optimization for that.\r\n Also I do not need all landmarks in a time. Probably I can detect only lips or eyes."},"comment":{"url":"https://api.github.com/repos/davisking/dlib/issues/comments/297928957","html_url":"https://github.com/davisking/dlib/issues/562#issuecomment-297928957","issue_url":"https://api.github.com/repos/davisking/dlib/issues/562","id":297928957,"user":{"login":"e-fominov","id":13793158,"avatar_url":"https://avatars2.githubusercontent.com/u/13793158?v=3","gravatar_id":"","url":"https://api.github.com/users/e-fominov","html_url":"https://github.com/e-fominov","followers_url":"https://api.github.com/users/e-fominov/followers","following_url":"https://api.github.com/users/e-fominov/following{/other_user}","gists_url":"https://api.github.com/users/e-fominov/gists{/gist_id}","starred_url":"https://api.github.com/users/e-fominov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-fominov/subscriptions","organizations_url":"https://api.github.com/users/e-fominov/orgs","repos_url":"https://api.github.com/users/e-fominov/repos","events_url":"https://api.github.com/users/e-fominov/events{/privacy}","received_events_url":"https://api.github.com/users/e-fominov/received_events","type":"User","site_admin":false},"created_at":"2017-04-28T07:31:46Z","updated_at":"2017-04-28T07:31:46Z","body":">  Is it possible to detect face for reduced image (320*240) and then scale region with face to initial image and find landmarks on initial image.\r\n\r\nJust use some kind of affine transform to map into original resolution:\r\n\r\noriginal width = 1000\r\nresized width = 100\r\nK = 100 / 1000 = 0.1\r\ndetected rect left = 10\r\nmap to original: left / K = 100\r\n\r\nafter rectangle is mapped this is up to you - you can run shape_predictor on original image or on resized one. and the landmark points can be mapped same way as the rect coordinates\r\n\r\nand one more tip: greyscale images will work faster and will detect same amount of faces"}}
{"actor":{"display_login":"e-fominov"}}