Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Feghal/ImageDetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.
https://github.com/Feghal/ImageDetect
barcode detector face face-detection face-recognition ios ios11 recognition swift vision vision-api
Last synced: 2 months ago
JSON representation
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.
- Host: GitHub
- URL: https://github.com/Feghal/ImageDetect
- Owner: Feghal
- License: mit
- Created: 2018-03-17T13:24:22.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-17T09:47:07.000Z (almost 6 years ago)
- Last Synced: 2024-07-17T02:22:51.167Z (7 months ago)
- Topics: barcode, detector, face, face-detection, face-recognition, ios, ios11, recognition, swift, vision, vision-api
- Language: Swift
- Homepage:
- Size: 1.52 MB
- Stars: 303
- Watchers: 10
- Forks: 30
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - ImageDetect - Detect and crop faces, barcodes and texts inside of your image, with iOS 11 Vision api. (Media / Image)
- awesome-swift - ImageDetect - Detect and crop faces, barcodes and texts in image with iOS 11 Vision API. (Libs / Images)
- awesome-swift - ImageDetect - Detect and crop faces, barcodes and texts in image with iOS 11 Vision API. (Libs / Images)
- awesome-ios-star - ImageDetect - Detect and crop faces, barcodes and texts inside of your image, with iOS 11 Vision api. (Media / Image)
- fucking-awesome-swift - ImageDetect - Detect and crop faces, barcodes and texts in image with iOS 11 Vision API. (Libs / Images)
- awesome-swift - ImageDetect - Detect and crop faces, barcodes and texts in image with iOS 11 Vision api. ` 📝 2 years ago ` (Images [🔝](#readme))
README
# ImageDetect
[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
[![Version](https://img.shields.io/cocoapods/v/ImageDetect.svg?style=flat)](http://cocoapods.org/pods/ImageDetect)
[![License](https://img.shields.io/cocoapods/l/ImageDetect.svg?style=flat)](http://cocoapods.org/pods/ImageDetect)
[![Platform](https://img.shields.io/cocoapods/p/ImageDetect.svg?style=flat)](http://cocoapods.org/pods/ImageDetect)ImageDetect 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.
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
1) Xcode 9.0 (beta) or higher.
2) iOS 11.0 (beta) or higher.## Installation
### CocoaPods
ImageDetect is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'ImageDetect'
```
Then, run the following command:
```ruby
pod install
```
### Manually1. Drag and Drop it into your project
2. Import `ImageDetect`
3. You are ready to go!
## Usage
Crop your (UIImage or CGImage)
```Swift// `type` in this method can be face, barcode or text
image.detector.crop(type: .face) { [weak self] result in
switch result {
case .success(let croppedImages):
// When the `Vision` successfully find type of object you set and successfuly crops it.
print("Found")
case .notFound:
// When the image doesn't contain any type of object you did set, `result` will be `.notFound`.
print("Not Found")
case .failure(let error):
// When the any error occured, `result` will be `failure`.
print(error.localizedDescription)
}
}
```## Author
Arthur Sahakyan, [email protected]
## License
ImageDetect is available under the MIT license. See the LICENSE file for more info.