{"id":1529,"url":"https://github.com/Feghal/ImageDetect","last_synced_at":"2025-08-06T13:32:47.483Z","repository":{"id":56915366,"uuid":"125631548","full_name":"Feghal/ImageDetect","owner":"Feghal","description":"✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.","archived":false,"fork":false,"pushed_at":"2019-04-17T09:47:07.000Z","size":1591,"stargazers_count":303,"open_issues_count":0,"forks_count":30,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-07-17T02:22:51.167Z","etag":null,"topics":["barcode","detector","face","face-detection","face-recognition","ios","ios11","recognition","swift","vision","vision-api"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/Feghal.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":"2018-03-17T13:24:22.000Z","updated_at":"2024-07-11T06:20:49.000Z","dependencies_parsed_at":"2022-08-20T21:20:18.211Z","dependency_job_id":null,"html_url":"https://github.com/Feghal/ImageDetect","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Feghal%2FImageDetect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Feghal%2FImageDetect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Feghal%2FImageDetect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Feghal%2FImageDetect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Feghal","download_url":"https://codeload.github.com/Feghal/ImageDetect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":215780271,"owners_count":15929791,"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":["barcode","detector","face","face-detection","face-recognition","ios","ios11","recognition","swift","vision","vision-api"],"created_at":"2024-01-05T20:15:49.010Z","updated_at":"2024-08-17T16:30:53.707Z","avatar_url":"https://github.com/Feghal.png","language":"Swift","readme":"# ImageDetect\n[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)\n[![Version](https://img.shields.io/cocoapods/v/ImageDetect.svg?style=flat)](http://cocoapods.org/pods/ImageDetect)\n[![License](https://img.shields.io/cocoapods/l/ImageDetect.svg?style=flat)](http://cocoapods.org/pods/ImageDetect)\n[![Platform](https://img.shields.io/cocoapods/p/ImageDetect.svg?style=flat)](http://cocoapods.org/pods/ImageDetect)\n\nImageDetect is a library developed on Swift. With ImageDetect you can easily detect and crop faces, texts or barcodes in your image with iOS 11 Vision api. It will automatically create new images containing each object found within a given image.\n\n## Example\n\u003cbr\u003e\n\u003ca href=\"url\"\u003e\u003cimg src=\"https://github.com/Feghal/ImageDetect/blob/master/Screenshots/1.PNG\" align=\"top\" height=\"550\" width=\"275\" \u003e\u003c/a\u003e\n\u003ca href=\"url\"\u003e\u003cimg src=\"https://github.com/Feghal/ImageDetect/blob/master/Screenshots/2.PNG\" align=\"top\" height=\"550\" width=\"275\" \u003e\u003c/a\u003e\n\u003cbr\u003e\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n## Requirements\n1) Xcode 9.0 (beta) or higher.\n2)  iOS 11.0 (beta) or higher.\n\n## Installation\n\n### CocoaPods\n\nImageDetect is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'ImageDetect'\n```\nThen, run the following command:\n```ruby\npod install\n```\n### Manually\n\n1. Drag and Drop it into your project\n\n2. Import `ImageDetect`\n\n3. You are ready to go!\n\n## Usage\nCrop your (UIImage or CGImage)\n```Swift\n\n// `type` in this method can be face, barcode or text\nimage.detector.crop(type: .face) { [weak self] result in\n    switch result {\n        case .success(let croppedImages):\n            // When the `Vision` successfully find type of object you set and successfuly crops it.\n            print(\"Found\")\n        case .notFound:\n            // When the image doesn't contain any type of object you did set, `result` will be `.notFound`.\n            print(\"Not Found\")\n        case .failure(let error):\n            // When the any error occured, `result` will be `failure`.\n            print(error.localizedDescription)\n        }\n}\n```\n\n## Author\n\nArthur Sahakyan, feghaldev@gmail.com\n\n## License\n\nImageDetect is available under the MIT license. See the LICENSE file for more info.\n","funding_links":[],"categories":["Media","Libs","Images [🔝](#readme)"],"sub_categories":["Image","Images","Other free courses"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFeghal%2FImageDetect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FFeghal%2FImageDetect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FFeghal%2FImageDetect/lists"}