{"id":20470252,"url":"https://github.com/henkman/faceapp","last_synced_at":"2025-04-13T10:51:49.362Z","repository":{"id":57483383,"uuid":"87915034","full_name":"henkman/faceapp","owner":"henkman","description":"faceapp package","archived":false,"fork":false,"pushed_at":"2017-11-17T09:43:59.000Z","size":443,"stargazers_count":13,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T11:11:12.549Z","etag":null,"topics":["client","face","faceapp","female","male","smile"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/henkman.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-11T09:22:42.000Z","updated_at":"2023-12-15T11:10:02.000Z","dependencies_parsed_at":"2022-08-27T23:21:50.440Z","dependency_job_id":null,"html_url":"https://github.com/henkman/faceapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henkman%2Ffaceapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henkman%2Ffaceapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henkman%2Ffaceapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henkman%2Ffaceapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henkman","download_url":"https://codeload.github.com/henkman/faceapp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224792499,"owners_count":17370788,"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":["client","face","faceapp","female","male","smile"],"created_at":"2024-11-15T14:12:15.173Z","updated_at":"2024-11-15T14:12:15.875Z","avatar_url":"https://github.com/henkman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"faceapp\n=======\n\nsmall package for faceapp\n\n```go\nimport (\n\t\"os\"\n\t\"github.com/henkman/faceapp\"\n)\n\nfunc main() {\n\tvar s faceapp.Session\n\tif err := s.Init(); err != nil {\n\t\tpanic(err)\n\t}\n\tvar code string\n\t{\n\t\tfd, err := os.Open(\"test/bill.jpg\")\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\ttemp, err := s.UploadImage(fd)\n\t\tfd.Close()\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\t\tcode = temp\n\t}\n\t{\n\t\tfor _, fil := range []Filter{\n\t\t\tFilterSmile,\n\t\t\tFilterSmile2,\n\t\t\tFilterHot,\n\t\t\tFilterOld,\n\t\t\tFilterYoung,\n\t\t\tFilterFemale,\n\t\t\tFilterMale,\n\t\t\tFilterBlack,\n\t\t\tFilterCaucasian,\n\t\t\tFilterAsian,\n\t\t\tFilterIndian,\n\t\t} {\n\t\t\tfd, err := os.OpenFile(\"test/bill_\"+string(fil)+\".jpg\",\n\t\t\t\tos.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0750)\n\t\t\tif err != nil {\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tif err := s.GetImage(fd, code, fil, false); err != nil {\n\t\t\t\tfd.Close()\n\t\t\t\tpanic(err)\n\t\t\t}\n\t\t\tfd.Close()\n\t\t}\n\t}\n}\n```\n\noriginal: ![alt original](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill.jpg \"original\")\n\nsmile: ![alt smile](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_smile.jpg \"smile\")\n\nsmile_2: ![alt smile_2](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_smile_2.jpg \"smile_2\")\n\nhot: ![alt hot](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_hot.jpg \"hot\")\n\nold: ![alt old](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_old.jpg \"old\")\n\nfemale: ![alt female](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_female.jpg \"female\")\n\nmale: ![alt male](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_male.jpg \"male\")\n\nblack: ![alt black](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_black.jpg \"black\")\n\ncaucasian: ![alt caucasian](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_caucasian.jpg \"caucasian\")\n\nasian: ![alt asian](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_asian.jpg \"asian\")\n\nindian: ![alt indian](https://raw.githubusercontent.com/henkman/faceapp/master/test/bill_indian.jpg \"indian\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenkman%2Ffaceapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenkman%2Ffaceapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenkman%2Ffaceapp/lists"}