Giter Site home page Giter Site logo

xeieshan / zhmaskcamera Goto Github PK

View Code? Open in Web Editor NEW
25.0 4.0 5.0 22.58 MB

ZHMaskCamera is a camera that takes UIImage (masking image), takes a photo but it gives you a masked picture from captured photo.

License: MIT License

Swift 100.00%
mask swift camera uiimagepickercontroller masking

zhmaskcamera's Introduction

ZHMaskCamera

It will show overlay as per masked image in camera preview, When You capture image, it show the overlay as is and it returns u a masked image removing the part you didn’t want to capture.

Works with iPad, iPhoneX, iPhone 8Plus, iPhone 8, iPhone SE Works with latest iOS and Xcode

This app requires to access your camera to capture image with mask layer and then afterwards masks image.

Assign maskingImage in ZHCameraViewController.swift class.

override func viewDidLoad() {
        super.viewDidLoad()
        self.maskingImage = #imageLiteral(resourceName: "Xbox360Mask.png")
        // Image Xbox360Mask.png is added in assets
        setupView()
}

The maskingImage I am using is this : Masking Image Xbox Controller So you can see the results below using just masking image I can capture a masked image

Screenshots

Splash screen

Splash screen

Camera layer

Camera

While capturing try to center the object in mask

Capturing

Masked image after capturing

Masked after capturing

Feel free to use

zhmaskcamera's People

Contributors

xeieshan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zhmaskcamera's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.