{"id":13537788,"url":"https://github.com/lafosca/AndroidFaceCropper","last_synced_at":"2025-04-02T04:31:31.458Z","repository":{"id":15488288,"uuid":"18222014","full_name":"lafosca/AndroidFaceCropper","owner":"lafosca","description":"Android bitmap Face Cropper","archived":false,"fork":false,"pushed_at":"2014-07-31T14:30:57.000Z","size":1440,"stargazers_count":448,"open_issues_count":2,"forks_count":93,"subscribers_count":37,"default_branch":"master","last_synced_at":"2024-11-03T02:33:10.767Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lafosca.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":"2014-03-28T18:22:34.000Z","updated_at":"2023-11-03T05:43:40.000Z","dependencies_parsed_at":"2022-08-25T16:50:23.938Z","dependency_job_id":null,"html_url":"https://github.com/lafosca/AndroidFaceCropper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafosca%2FAndroidFaceCropper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafosca%2FAndroidFaceCropper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafosca%2FAndroidFaceCropper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lafosca%2FAndroidFaceCropper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lafosca","download_url":"https://codeload.github.com/lafosca/AndroidFaceCropper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246757340,"owners_count":20828883,"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-08-01T09:01:03.687Z","updated_at":"2025-04-02T04:31:26.446Z","avatar_url":"https://github.com/lafosca.png","language":"Java","readme":"AndroidFaceCropper\n==================\n\nAndroid bitmap Face Cropper\n\n[Link to sample apk and jar](https://github.com/lafosca/AndroidFaceCropper/releases/tag/1.1)\n\n\n##Usage \nTo crop faces automatically, you have to instantiate an object of `FaceCropper` class in that way:\n\n\tFaceCropper mFaceCropper = new FaceCropper();\n    mFaceCropper.getCroppedImage(source);\n    \n`getCroppedImage` method supports `int` argument as a drawable resource, or directly a `Bitmap`.\n\n##Configuration\nThere are 4 important methods to configure its behavior:\n\n`setMaxFaces(int faces)`, to adjust the maximum number of faces to be recognized.\n\n`setFaceMinSize(int faceMinSize)`, in pixels.\n\n`setFaceMarginPx(int faceMarginPx)`, in pixels, and for each side.\n\n`setEyeDistanceFactorMargin(float eyeDistanceFactorMargin)`, as a multiplier of the distance between the detected face eyes.\n\n`setDebug(boolean debug)`, to enable painting red circles over detected faces.\n\n`getFullDebugImage(Bitmap bitmap)`, to obtain a non-cropped image as the original, but with the detected faces painted, and the cropped area painted in green.\n","funding_links":[],"categories":["Java","etc","Libs","Image Processing"],"sub_categories":["\u003cA NAME=\"Utility\"\u003e\u003c/A\u003eUtility"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flafosca%2FAndroidFaceCropper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flafosca%2FAndroidFaceCropper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flafosca%2FAndroidFaceCropper/lists"}