All Projects → 94cp → ImageCropper

94cp / ImageCropper

Licence: MIT license
✂️ Detect and crop faces, barcodes, texts or rectangle in image with iOS 11 Vision (iOS 10 Core Image) api.(图片裁剪:支持人脸、二维码/条形码、文本、方框)

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to ImageCropper

Imagedetect
✂️ Detect and crop faces, barcodes and texts in image with iOS 11 Vision api.
Stars: ✭ 286 (+1582.35%)
Mutual labels:  barcode, vision, face
Facelandmarksdetection
Finds facial features such as face contour, eyes, mouth and nose in an image.
Stars: ✭ 130 (+664.71%)
Mutual labels:  vision, face
Facecropper
✂️ Crop faces, inside of your image, with iOS 11 Vision api.
Stars: ✭ 479 (+2717.65%)
Mutual labels:  vision, face
craft-text-detector
Packaged, Pytorch-based, easy to use, cross-platform version of the CRAFT text detector
Stars: ✭ 151 (+788.24%)
Mutual labels:  text, vision
PSCognitiveService
Powershell module to access Microsoft Azure Machine learning RESTful API's or Microsoft cognitive services
Stars: ✭ 46 (+170.59%)
Mutual labels:  vision, face
East icpr
Forked from argman/EAST for the ICPR MTWI 2018 CHALLENGE
Stars: ✭ 154 (+805.88%)
Mutual labels:  detect, text
Nextlevel
NextLevel was initally a weekend project that has now grown into a open community of camera platform enthusists. The software provides foundational components for managing media recording, camera interface customization, gestural interaction customization, and image streaming on iOS. The same capabilities can also be found in apps such as Snapchat, Instagram, and Vine.
Stars: ✭ 1,940 (+11311.76%)
Mutual labels:  vision, coreimage
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (+164.71%)
Mutual labels:  text, barcode
Facenet-Caffe
facenet recognition and retrieve by using hnswlib and flask, convert tensorflow model to caffe
Stars: ✭ 30 (+76.47%)
Mutual labels:  detect, face
Fastai
R interface to fast.ai
Stars: ✭ 85 (+400%)
Mutual labels:  text, vision
iOS14-Resources
A curated collection of iOS 14 projects ranging from SwiftUI to ML, AR etc.
Stars: ✭ 85 (+400%)
Mutual labels:  vision, coreimage
face age gender
Can we predict the age and gender of someone given a picture of their face ?
Stars: ✭ 40 (+135.29%)
Mutual labels:  vision, face
FNet-pytorch
Unofficial implementation of Google's FNet: Mixing Tokens with Fourier Transforms
Stars: ✭ 204 (+1100%)
Mutual labels:  text, vision
Splain
small parser to create more interesting language/sentences
Stars: ✭ 15 (-11.76%)
Mutual labels:  text
hms-safetydetect-demo-android
SafetyDetect Sample provides many sample programs for your reference or usage.This example demonstrates how to integrate services provided by Safetydetect Kit, such as APPchecks, URLcheck, Userdetect, Wifidetect.
Stars: ✭ 16 (-5.88%)
Mutual labels:  detect
vision-camera-image-labeler
VisionCamera Frame Processor Plugin to label images using MLKit Vision
Stars: ✭ 62 (+264.71%)
Mutual labels:  vision
Prestyler
Elegant text formatting tool in Swift 🔥
Stars: ✭ 36 (+111.76%)
Mutual labels:  text
text2painting
Convert text into beautiful artistic images
Stars: ✭ 55 (+223.53%)
Mutual labels:  text
rulex
A ruby environment for Latex files
Stars: ✭ 14 (-17.65%)
Mutual labels:  text
cummings.ee
A collection of the work of Edward Estlin Cummings, as it enters the public domain.
Stars: ✭ 32 (+88.24%)
Mutual labels:  text

ImageCropper

ImageCropper is a library developed on Swift. With ImageCropper you can easily detect and crop faces, texts, barcodes or rectangles in your image with iOS 11 Vision (iOS 10 Core Image) api. It will automatically create new images containing each object found within a given image.

ImageCropper是纯swift编写的库。使用它可以容易地将给定图片中的 人脸、文本、二维码/条形码 或者 方框 裁剪出来(对于iOS 11使用Vision库,iOS 10使用Core Image)。

Features

  • Crop image
  • Detect face, text, barcode or rectangle

Example

Normal Crop Padding Crop

Requirements

  • iOS 10.0+
  • Swift 4.2

Quick Start

# CocoaPods
pod 'ImageCropperKit'

# Carthage
github "cp110/ImageCropper"

Usage

Crop faces from your image (UIImage or CGImage) in the easy way.

裁剪原图是 UIImage 或 CGImage

// `type` in this method can be face, barcode, text or rectangle
// `padding` is the inside margin of the cropped image. default is .zero
// `type`:裁剪类型(人脸、条形码/二维码、文本、方框)
// `paddind`:裁剪出来的图片的内边距(可以使裁剪图片更完整些),默认 .zero
let image = UIImage(named: "image name")
// let image = UIImage(named: "image name")?.cgImage
image?.detector.crop(type: .face, padding: UIEdgeInsets(top: 40, left: 40, bottom: 40, right: 40)) { [weak self] result in
    switch result {
        case .success(let cropImageResults): // cropImageResults: [(image: T, frame: CGRect)]
            // When the `Vision` successfully find type of object you set and successfuly crops it.
            print("Found")
        case .notFound(let image, let frame):// image: original image (原图)
            // When the image doesn't contain any type of object you did set, `result` will be `.notFound`.
            print("Not Found")
        case .failure(let image, let frame, let error): // image: original image (原图)
            // When the any error occured, `result` will be `failure`.
            print(error.localizedDescription)
        }
}

Related Projects

Author

Arthur cp110:[email protected]

License

ImageCropper is available under the MIT license. See the LICENSE file for more info.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].