{"id":16861511,"url":"https://github.com/shiffman/rekognition-for-processing","last_synced_at":"2025-03-22T06:31:51.650Z","repository":{"id":9036048,"uuid":"10797584","full_name":"shiffman/Rekognition-for-Processing","owner":"shiffman","description":"A quick library to make using Rekognition API easy to use in Processing","archived":false,"fork":false,"pushed_at":"2014-03-17T15:08:43.000Z","size":4252,"stargazers_count":33,"open_issues_count":11,"forks_count":9,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-18T09:04:17.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/shiffman.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}},"created_at":"2013-06-19T15:41:40.000Z","updated_at":"2024-05-28T11:53:38.000Z","dependencies_parsed_at":"2022-08-27T12:21:19.549Z","dependency_job_id":null,"html_url":"https://github.com/shiffman/Rekognition-for-Processing","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiffman%2FRekognition-for-Processing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiffman%2FRekognition-for-Processing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiffman%2FRekognition-for-Processing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiffman%2FRekognition-for-Processing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shiffman","download_url":"https://codeload.github.com/shiffman/Rekognition-for-Processing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918499,"owners_count":20531683,"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-10-13T14:32:18.768Z","updated_at":"2025-03-22T06:31:46.640Z","avatar_url":"https://github.com/shiffman.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rekognition for Processing\n==========================\n\nA quick Processing library to make using [Rekognition API](http://rekognition.com/) easy to use in Processing.  \n\n[Rekognition](http://rekognition.com/) is an open API platform provided by Orbeus, which helps developers easily incorporate the state-of-the-art computer vision capabilities of facial recognition, object recognition and scene understanding into your app or software. \n\nGetting Started\n===============\n\nTo use the library, you'll need to:\n\n* [Register for an API Key](https://rekognition.com/user/create) with Orbeus, Inc.\n* Install the [HTTP Requests for Processing](https://github.com/runemadsen/HTTP-Requests-for-Processing) library.\n\nHow-to\n======\n\n\n## Create library instance\n\n```\nRekognition rekog = new Rekognition(this, APIKEY, APISECRET);\n// Optionall set namespace and app name\nrekog.setNamespace(\"processing\");\nrekog.setUserID(\"demo\");\n```\n\n## Basic Face Detection\n\n```\n// Get a list of faces\nRFace[] faces = rekog.detectFacesPath(filename);\n// Get face meta data\nfor (int i = 0; i \u003c faces.length; i++) {\n  PVector center = faces[i].center;\n  PVector eye_right = faces[i].eye_right;\n  PVector eye_right = faces[i].eye_right;\n  PVector eye_left = faces[i].eye_left;\n  PVector mouth_right = faces[i].mouth_right;\n  PVector mouth_left = faces[i].mouth_left;\n  PVector nose = faces[i].nose;\n\n  String gender = faces[i].gender;\n  float age = faces[i].age;\n\n  // and more!\n}\n```\n\n## Train Face Recognition\n\n```\n// Here we tell Rekognition that the face in this image associated with this name\nrekog.addFace(\"pitt.jpg\", \"Pitt\");\n\n// We need a second API call to train Rekognition of whatever faces have been added\n// Here it's one face, then train, but you could add a lot of faces before training\nrekog.train();\n```\n\n## Face Recognize\n\n```\nfor (int i = 0; i \u003c faces.length; i++) {\n  // Possible face matches come back in a FloatDict\n  // A string (name of face) is paired with a float from 0 to 1 (how likely is it that face)\n  FloatDict matches = faces[i].getMatches();\n  for (String key : matches.keys()) {\n    float likely = matches.get(key);\n    println(key + \": \" + likely);\n  }\n}\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiffman%2Frekognition-for-processing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiffman%2Frekognition-for-processing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiffman%2Frekognition-for-processing/lists"}