All Projects → TinyCrayon → Tinycrayon Ios Sdk

TinyCrayon / Tinycrayon Ios Sdk

Licence: mit
A smart and easy-to-use image masking and cutout SDK for mobile apps.

Programming Languages

swift
15916 projects
C++
36643 projects - #6 most used programming language
Objective-C++
1391 projects
objective c
16641 projects - #2 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Tinycrayon Ios Sdk

Ffcc
Fast Fourier Color Constancy: an auto white balance solution with machine learning in Fourier space
Stars: ✭ 133 (-92.47%)
Mutual labels:  image-processing
Picasso Transformations
An Android transformation library providing a variety of image transformations for Picasso
Stars: ✭ 1,696 (-4.02%)
Mutual labels:  image-processing
Optimize Images
A command-line interface (CLI) utility written in pure Python to help you reduce the file size of images.
Stars: ✭ 141 (-92.02%)
Mutual labels:  image-processing
Cloudinary ios
Cloudinary iOS SDK
Stars: ✭ 133 (-92.47%)
Mutual labels:  image-processing
Pubgis
Generate maps of your position throughout PUBG gameplay
Stars: ✭ 135 (-92.36%)
Mutual labels:  image-processing
S2p
Satellite Stereo Pipeline
Stars: ✭ 136 (-92.3%)
Mutual labels:  image-processing
Deepfriedmemes.com
🅱️ Deep fries your pics. Serve with laundry sauce.
Stars: ✭ 131 (-92.59%)
Mutual labels:  image-processing
Awesome Ml
Discover, download, compile & launch different image processing & style transfer CoreML models on iOS.
Stars: ✭ 142 (-91.96%)
Mutual labels:  image-processing
Imjoy
ImJoy: Deep Learning Made Easy!
Stars: ✭ 136 (-92.3%)
Mutual labels:  image-processing
Cakephp Imagine Plugin
CakePHP wrapper for the powerful Imagine image processing library. Makes images manipulation easy and powerful.
Stars: ✭ 140 (-92.08%)
Mutual labels:  image-processing
Nuxt Image Loader Module
An image loader module for nuxt.js that allows you to configure image style derivatives.
Stars: ✭ 135 (-92.36%)
Mutual labels:  image-processing
Easyocr
Ready-to-use OCR with 80+ supported languages and all popular writing scripts including Latin, Chinese, Arabic, Devanagari, Cyrillic and etc.
Stars: ✭ 13,379 (+657.16%)
Mutual labels:  image-processing
Imageprocessing
MicaSense RedEdge and Altum image processing tutorials
Stars: ✭ 139 (-92.13%)
Mutual labels:  image-processing
Ssocr
Seven Segment Optical Character Recognition
Stars: ✭ 133 (-92.47%)
Mutual labels:  image-processing
Starnet
StarNet
Stars: ✭ 141 (-92.02%)
Mutual labels:  image-processing
Spacechop
HTTP service for high-level image processing with first-class Docker support.
Stars: ✭ 133 (-92.47%)
Mutual labels:  image-processing
Avir
High-quality pro image resizing / scaling C++ library, image resize
Stars: ✭ 135 (-92.36%)
Mutual labels:  image-processing
Rasterframes
Geospatial Raster support for Spark DataFrames
Stars: ✭ 142 (-91.96%)
Mutual labels:  image-processing
Semantic image inpainting
Semantic Image Inpainting
Stars: ✭ 140 (-92.08%)
Mutual labels:  image-processing
Filestack Android
Official Android SDK for Filestack - API and content management system that makes it easy to add powerful file uploading and transformation capabilities to any web or mobile application.
Stars: ✭ 140 (-92.08%)
Mutual labels:  image-processing

TinyCrayon SDK for iOS

A smart and easy-to-use image masking and cutout SDK for mobile apps.

platform Compatible CocoaPods Documentation App Store license

TinyCrayon SDK provides tools for adding image cutout and layer mask capabilities to your mobile applications.

Quick Select Tool Hair Brush Tool
Quick Select Tool Hair Brush Tool

Table of Contents

Overview

TinyCrayon SDK provides tools for adding image cutout and layer mask capabilities to your mobile applications.

Image layer mask is a fundamental technique in image manipulations. It allows you to selectively modify the opacity (transparency) of the layer they belong to. This flexibility to define the opacity of different areas of a layer is the basis for more interesting image manipulation techniques such as selective coloring and luminosity masking.

The current version of TinyCrayon SDK provides the following three tools:

  • Quick Select: Smart and easy to use, users just need to select part of the object and the edge detection algorithm will find the boundary.
  • Hair Brush: Smooth and natual looking, paint on the hair/fur of an object and the algorithm will select the hair/fur for you in high quality.
  • Regular Brush: A regular brush tool with the capability to adjust its size, hardness and opacity.

Features

  • Free: TinyCrayon SDK is provided under MIT license, you can use it in your commercial applications for free!
  • iPad support: TinyCrayon SDK uses auto layout for its views and adapts to each screen size - iPhone or iPad.
  • Highly customizable: Style the UI, view modes and localized languages as you wish.
  • Swift: Keeping up with time, we chose Swift as the main development language of the TinyCrayon SDK, leading to leaner easier code.
  • Objective-C support: All of our public API is Objective-C compatible.

create as many effects as you can think of

Installation

Prerequisites

  • Xcode 9.0 or later.
  • A physical iOS device.

Steps

  1. Git clone this repo
  2. Download OpenCV2 for iOS pack
  3. Unzip opencv-xxx.zip, move opencv2.framework to TCCore folder
  4. Open your project, drag TinyCrayon.xcodeproj to your workspace, then add TCMask to Frameworks, Libraries, and Embeded Content in your target->General settings

Settings for Objective-C

If your project is using Objective-C, set Always Embed Swift Standard Libraries to be YES in your Build Settings.

Usage

Add a TCMaskView

The TCMaskView class is responsible to create a UIViewController for the user to mask the image. To present a TCMaskView:

Swift

let maskView = TCMaskView(image: image)
maskView.delegate = self
maskView.presentFrom(rootViewController: self, animated: true)

Objective-C

TCMaskView *maskView = [[TCMaskView alloc] initWithImage:image];
maskView.delegate = self;
[maskView presentFromRootViewController:self animated:true];

The delegate of the TCMaskView can be used to be notified when the user cancels or completes the edit. In last case the function tcMaskViewDidComplete(mask:image:) is called.

TCMask class

TCMask is provided by TCMaskViewDelegate functions as the first parameter when the user cancels or completes the edit. For example, when the user completes the edit with TCMaskView:

swift

func tcMaskViewDidComplete(mask: TCMask, image: UIImage) {}

Objective-C

- (void)tcMaskViewDidCompleteWithMask:(TCMask *)mask image:(UIImage *)image {}

TCMask is an encapsulation of image masking result from TCMaskView, it has the following properties:

  • data: An array of 8-bits unsigned char, its length is equal to the number of pixels of the image in TCMaskView. Each element in data represents the mask value.
  • size: The size of mask, which is equal to the size of the image in TCMaskView.

TCMask also provides some simple and easy to use functions to process layer mask with image. For example, to cutout an object:

Swift

let outputImage = mask.cutout(image: image, resize: false)

Objective-C

UIImage *outputImage = [mask cutoutWithImage:image resize:false];

To try these examples, and find out about more options please take a look at the Examples.

Further reading

License

The MIT license

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].