{"id":20071997,"url":"https://github.com/ackness/preprocess_mpiigaze","last_synced_at":"2026-06-10T10:31:54.041Z","repository":{"id":227196879,"uuid":"299164914","full_name":"ackness/preprocess_mpiigaze","owner":"ackness","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-28T03:19:03.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-13T00:19:10.105Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ackness.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-28T02:26:43.000Z","updated_at":"2021-02-03T04:08:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"3bfb19c4-6b9c-4063-a26f-4cbe489a7ea6","html_url":"https://github.com/ackness/preprocess_mpiigaze","commit_stats":null,"previous_names":["ackness/preprocess_mpiigaze"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ackness%2Fpreprocess_mpiigaze","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ackness%2Fpreprocess_mpiigaze/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ackness%2Fpreprocess_mpiigaze/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ackness%2Fpreprocess_mpiigaze/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ackness","download_url":"https://codeload.github.com/ackness/preprocess_mpiigaze/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241502814,"owners_count":19972957,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T14:33:19.028Z","updated_at":"2026-06-10T10:31:54.032Z","avatar_url":"https://github.com/ackness.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MPIIGaze Preprocessing\n\n## Info\n\nFirst you should download dataset from [MPIIGaze](https://www.mpi-inf.mpg.de/departments/computer-vision-and-machine-learning/research/gaze-based-human-computer-interaction/appearance-based-gaze-estimation-in-the-wild).\n\n[Official MPIIGaze Normalize Code](http://datasets.d2.mpi-inf.mpg.de//MPIIGaze/data_normalization_code.zip) were written by matlab code and return `Gray` eye regions images.\n\nThese repo is rewritten by python according to the matlab source code and return `RGB` images.\n\n## Usage\n\n```bash\npython preprocess_mpii.py -p \"path/to/mpii/Original\"\n\nfor example:\npython preprocess_mpii.py -p ./MPIIGaze/Data/Original/\n```\n\nYou will get a dict which seems like this:\n\n```\n{'p02/day07/0001.jpg': \n    {'right_eye': \n        {'img': array([[[ 89,  80,  95],\n                   [ 95,  86, 100],\n                   [100,  87,  97],\n                   ...,\n                   [ 73,  45,  46],\n                   [ 84,  51,  54],\n                   [ 91,  58,  62]],\n           \n                  [[104,  93, 107],\n                   [109,  96, 110],\n                   [111,  96, 108],\n                   ...,\n                   [ 81,  51,  53],\n                   [ 92,  58,  62],\n                   [100,  65,  69]],\n           \n                  [[117, 103, 113],\n                   [120, 105, 116],\n                   [120, 105, 115],\n                   ...,\n                   [ 92,  57,  61],\n                   [ 98,  61,  66],\n                   [105,  67,  72]],\n           \n                  ...,\n           \n                  [[184, 179, 190],\n                   [182, 178, 187],\n                   [179, 174, 185],\n                   ...,\n                   [106,  82,  85],\n                   [113,  90,  93],\n                   [120,  97, 100]],\n           \n                  [[183, 176, 189],\n                   [184, 177, 189],\n                   [185, 177, 190],\n                   ...,\n                   [116,  92,  96],\n                   [124, 100, 103],\n                   [130, 107, 110]],\n           \n                  [[187, 178, 193],\n                   [188, 179, 192],\n                   [189, 180, 192],\n                   ...,\n                   [129, 107, 109],\n                   [137, 116, 117],\n                   [142, 121, 123]]], dtype=uint8),\n       'headpose': array([0.25371083, 0.13010662]),\n       'gaze': array([-0.03550274,  0.08322771])},\n\n    ...\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fackness%2Fpreprocess_mpiigaze","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fackness%2Fpreprocess_mpiigaze","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fackness%2Fpreprocess_mpiigaze/lists"}