Coder Social home page Coder Social logo

maximalien / smileviewcontroller Goto Github PK

View Code? Open in Web Editor NEW
189.0 10.0 34.0 37.29 MB

UIViewController which allows to detect smile in real time.

License: MIT License

Objective-C 91.09% Ruby 8.91%
avfoundation coreimage selfie objective-c cocoapods uiviewcontroller

smileviewcontroller's Introduction

SmileViewController

Build Status Carthage CocoaPods

UIViewController which allows to detect smile in real time.

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like SmileViewController in your projects. You can install it with the following command:

$ gem install cocoapods

Podfile

To integrate SmileViewController into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '11.0'

target 'TargetName' do
pod 'SmileViewController', '~> 1.0.8'
end

Then, run the following command:

$ pod install

Installation with Carthage

To install Carthage run following command:

$ brew install carthage

Cartfile

  1. To integrate SmileViewController into your Xcode project using Carthage, specify it in your Cartfile:
github "MaximAlien/SmileViewController" ~> 1.0.8
  1. Then, run the following command:
$ carthage update
  1. On your application targets’ General settings tab, in the Linked Frameworks and Libraries section, drag and drop SmileViewCtrlr.framework you want to use from the Carthage/Build folder on disk.

  2. On your application targets’ Build Phases settings tab, click the + icon and choose New Run Script Phase. Create a Run Script in which you specify your shell (ex: /bin/sh), add the following contents to the script area below the shell:

/usr/local/bin/carthage copy-frameworks
  1. Add path to the framework you want to use under Input Files: $(SRCROOT)/Carthage/Build/iOS/SmileViewCtrlr.framework
  2. Add path to the copied frameworks to the Output Files, e.g.: $(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/SmileViewCtrlr.framework

Usage

To use this view controller simply load it up from AppDelegate:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    SmileViewController *smileViewController = [SmileViewController new];
    // or (in case when using Carthage)
    SmileViewController *smileViewController = [[SmileViewController alloc] initWithNibName:@"SmileViewController" bundle:[NSBundle bundleForClass:SmileViewController.class]];
    self.window.rootViewController = smileViewController;
    [self.window makeKeyAndVisible];
    
    return YES;
}

Example

Screen1

smileviewcontroller's People

Contributors

hemangshah avatar maximalien 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  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  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  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  avatar  avatar  avatar  avatar  avatar  avatar

smileviewcontroller's Issues

Faulty results

The attached image recognised as a smile. as the app captured the image and stopped camera stream. thank you for your effort. (iPhone 6 with iOS 8.4)
img_0101

Need swift code

Hi MaximAlien
Can I get the swift code for this feature?

Thanks

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.