All Projects → GabrielBB → Android Cutout

GabrielBB / Android Cutout

Licence: other
Android image background removing library

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Android Cutout

Imager
R package for image processing
Stars: ✭ 166 (-9.29%)
Mutual labels:  image-processing
Invisibility cloak
This is a fun application of image processing which enables you to experience the magic of an invisibility cloak. Let's make our childhood fantasy of using an invisibility cloak come true.
Stars: ✭ 176 (-3.83%)
Mutual labels:  image-processing
Alexei
DEPRECATED - An Image Processing Interface for Android
Stars: ✭ 182 (-0.55%)
Mutual labels:  image-processing
Image Compressor
[Deprecated] No longer maintained, please use https://github.com/fengyuanchen/compressorjs
Stars: ✭ 167 (-8.74%)
Mutual labels:  image-processing
Cctag
Detection of CCTag markers made up of concentric circles.
Stars: ✭ 172 (-6.01%)
Mutual labels:  image-processing
Tachyon
Faster than light image resizing service that runs on AWS. Super simple to set up, highly available and very performant.
Stars: ✭ 177 (-3.28%)
Mutual labels:  image-processing
Bimef
Code and data for the research paper "A Bio-Inspired Multi-Exposure Fusion Framework for Low-light Image Enhancement" (Submitted to IEEE Transactions on Cybernetics)
Stars: ✭ 161 (-12.02%)
Mutual labels:  image-processing
Ybimagebrowser
iOS image browser / iOS 图片浏览器 (支持视频)
Stars: ✭ 2,230 (+1118.58%)
Mutual labels:  image-processing
Net Vips
.NET binding for libvips
Stars: ✭ 173 (-5.46%)
Mutual labels:  image-processing
Ossim
Core OSSIM (Open Source Software Image Map) package including C++ code for OSSIM library, command-line applications, tests, and build system
Stars: ✭ 182 (-0.55%)
Mutual labels:  image-processing
Pynet Pytorch
Generating RGB photos from RAW image files with PyNET (PyTorch)
Stars: ✭ 169 (-7.65%)
Mutual labels:  image-processing
Nuxt Imagemin
Nuxt module to minify your images. Works with: png, jpeg, gif, and svg
Stars: ✭ 170 (-7.1%)
Mutual labels:  image-processing
Smartcrop.py
smartcrop implementation in Python
Stars: ✭ 178 (-2.73%)
Mutual labels:  image-processing
Transformers
An Android transformation library providing a variety of image transformations for Coil, Glide, Picasso, and Fresco.
Stars: ✭ 167 (-8.74%)
Mutual labels:  image-processing
Dlib
Allocators, I/O streams, math, geometry, image and audio processing for D
Stars: ✭ 182 (-0.55%)
Mutual labels:  image-processing
Essential Image Optimization
Essential Image Optimization - an eBook
Stars: ✭ 1,950 (+965.57%)
Mutual labels:  image-processing
Weibo Img Crypto
自动加密解密微博上传的图片
Stars: ✭ 176 (-3.83%)
Mutual labels:  image-processing
Imantics
📷 Reactive python package for managing, creating and visualizing different deep-learning image annotation formats
Stars: ✭ 184 (+0.55%)
Mutual labels:  image-processing
Opencv Python Tutorial
📖 OpenCV-Python image processing tutorial for beginners
Stars: ✭ 2,425 (+1225.14%)
Mutual labels:  image-processing
Imgsmlr
Similar images search for PostgreSQL
Stars: ✭ 181 (-1.09%)
Mutual labels:  image-processing

✂️ Android-CutOut

Android image background cutting library

Version Build

Usage

Add Gradle dependency:

implementation 'com.github.gabrielbb:cutout:0.1.2'

Start the CutOut screen with this single line:

CutOut.activity().start(this);

 

Getting the result

@Override
    protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {
        if (requestCode == CutOut.CUTOUT_ACTIVITY_REQUEST_CODE) {

            switch (resultCode) {
                case Activity.RESULT_OK:
                    Uri imageUri = CutOut.getUri(data);
                    // Save the image using the returned Uri here
                    break;
                case CutOut.CUTOUT_ACTIVITY_RESULT_ERROR_CODE:
                    Exception ex = CutOut.getError(data);
                    break;
                default:
                    System.out.print("User cancelled the CutOut screen");
            }
        }
    }

Features

   

Options

You can use one or more options from these:

        CutOut.activity()
                    .src(uri)
                    .bordered()
                    .noCrop()
                    .intro()
                    .start(this);
  • src

By default the user can select images from camera or gallery but you can also pass an android.net.Uri of an image that is already saved:

Uri uri = Uri.parse("/images/cat.jpg");

CutOut.activity().src(uri).start(this);
  • bordered

CutOut.activity().bordered().start(this);

This option makes the final PNG have a border around it. The default border color is White. You can also pass the android.graphics.Color of your choice.

  • noCrop

CutOut.activity().noCrop().start(this);

By default and thanks to this library: Android-Image-Cropper, the user can crop or rotate the image. This option disables that cropping screen.

  • intro

CutOut.activity().intro().start(this);

Display an intro explaining every button usage. The user can skip the intro and it is only shown once. The images displayed in the intro are the same you saw in the "Features" section of this document.

Change log

0.1.2

  • Removed Admob Ads automatic integration. I will probably add it later. For now, it was causing problems.
  • Images are now saved as temporary files in the cache directory. This guarantees that these images will be deleted when users uninstall your app or when the disk memory is low. If you want the images to live forever on the Gallery, you should take the returned Uri and save the image there by yourself.

License

Copyright (c) 2018 Gabriel Basilio Brito

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to use, copy, modify, merge, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

1 - You cannot use this software to make an Android app that its main goal is to remove background from images and publish it to the Google Play Store, but you can use it to integrate the functionality in an existing app or a new app that does more than just this.

2 - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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