{"id":21546220,"url":"https://github.com/softon/laravel-face-detect","last_synced_at":"2025-07-08T01:35:27.791Z","repository":{"id":57054966,"uuid":"55945212","full_name":"softon/laravel-face-detect","owner":"softon","description":"A Laravel Package for Face Detection","archived":false,"fork":false,"pushed_at":"2023-03-15T05:36:54.000Z","size":266,"stargazers_count":57,"open_issues_count":4,"forks_count":23,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-02-02T02:45:30.312Z","etag":null,"topics":["crop-image","face-detection","laravel-5-package","laravel-package"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-11T05:48:26.000Z","updated_at":"2024-12-06T02:40:54.000Z","dependencies_parsed_at":"2024-06-19T09:59:45.705Z","dependency_job_id":"3011c120-598f-45f5-8da5-d20ce5188260","html_url":"https://github.com/softon/laravel-face-detect","commit_stats":{"total_commits":6,"total_committers":4,"mean_commits":1.5,"dds":0.6666666666666667,"last_synced_commit":"926dc38fbd5b459a8dfd171b0fd265629a286bf8"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Flaravel-face-detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Flaravel-face-detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Flaravel-face-detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Flaravel-face-detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softon","download_url":"https://codeload.github.com/softon/laravel-face-detect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238044093,"owners_count":19407128,"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":["crop-image","face-detection","laravel-5-package","laravel-package"],"created_at":"2024-11-24T06:09:19.831Z","updated_at":"2025-02-10T02:04:24.198Z","avatar_url":"https://github.com/softon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel-Face-Detect\nA Laravel Package for Face Detection and Cropping in Images.\n\n\u003cstrong\u003eInstallation\u003c/strong\u003e\n\n\u003col\u003e\n  \u003cli\u003eEdit the composer.json add to the require array \u0026 run composer update\u003cbr\u003e\n      \u003cpre\u003e\u003ccode\u003e \"softon/laravel-face-detect\": \"dev-master\" \u003c/code\u003e\u003c/pre\u003e\n      \u003cpre\u003e\u003ccode\u003e composer update \u003c/code\u003e\u003c/pre\u003e\n  \u003c/li\u003e\n  \u003cli\u003eAdd the service provider to the config/app.php file in Laravel\u003cbr\u003e\n      \u003cpre\u003e\u003ccode\u003e 'Softon\\LaravelFaceDetect\\FaceDetectServiceProvider', \u003c/code\u003e\u003c/pre\u003e\n      \n  \u003c/li\u003e\n  \u003cli\u003eAdd an alias for the Facade to the config/app.php file in Laravel\u003cbr\u003e\n      \u003cpre\u003e\u003ccode\u003e 'FaceDetect' =\u003e 'Softon\\LaravelFaceDetect\\Facades\\FaceDetect', \u003c/code\u003e\u003c/pre\u003e\n      \n  \u003c/li\u003e\n  \u003cli\u003ePublish the config file by running \u003cbr\u003e\n      \u003cpre\u003e\u003ccode\u003e php artisan vendor:publish \u003c/code\u003e\u003c/pre\u003e\n      \n  \u003c/li\u003e\n\u003c/ol\u003e\n\n\n\u003cstrong\u003eUsage\u003c/strong\u003e\n\nTo extract the Face and save the cropped image use...\n```php\nuse \\Softon\\LaravelFaceDetect\\Facades\\FaceDetect;\n\n\nFaceDetect::extract($imagefilepath)-\u003esave($savefilepath);\n```\n\n\nTo extract the Face and return the cropping coordinates without cropping the image...\n```php\nuse \\Softon\\LaravelFaceDetect\\Facades\\FaceDetect;\n\n\n$crop_params = FaceDetect::extract($imagefilepath)-\u003eface;   // return array with x,y,width\n```\n\nTo detect if face is found in a image...\n```php\nuse \\Softon\\LaravelFaceDetect\\Facades\\FaceDetect;\n\n\n$crop_params = FaceDetect::extract($imagefilepath)-\u003eface_found;     // returns true/false\n```\n\nYou may edit the config file facedetect.php in the config directory to add aditional padding to the cropped Images.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofton%2Flaravel-face-detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofton%2Flaravel-face-detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofton%2Flaravel-face-detect/lists"}