Giter Club home page Giter Club logo

corrosionapp's Introduction

Image Recognition Demo App for Corrosion Diagnoses

This sample demonstrates the Amazon S3 TransferManager found in the AWS Mobile SDK for iOS.

App Description: http://geegeck.strikingly.com/

Download App: https://itunes.apple.com/us/app/geegeck/id1076214902?mt=8&ign-mpt=uo%3D4

Requirements

  • Xcode 7 and later
  • iOS 8 and later

Using the Sample

  1. The AWS Mobile SDK for iOS is available through CocoaPods. If you have not installed CocoaPods, install CocoaPods:

     sudo gem install cocoapods
     pod setup
    
  2. To install the AWS Mobile SDK for iOS, simply add the following line to your Podfile:

     pod 'AWSS3'
    

    Then run the following command:

     pod install
    
  3. Create an Amazon S3 bucket. (For details on creating a bucket in the Amazon S3 console, see Create a Bucket.)

  4. In the Amazon Cognito console, use Amazon Cognito to create a new identity pool. Obtain the PoolID constant. Make sure the role has full permissions for the bucket you created.

  5. Open S3TransferManagerSampleSwift.xcworkspace.

  6. Open Constants.swift and update the following lines with the appropriate constants:

     let CognitoRegionType = AWSRegionType.Unknown  // e.g. AWSRegionType.USEast1
     let DefaultServiceRegionType = AWSRegionType.Unknown // e.g. AWSRegionType.USEast1
     let CognitoIdentityPoolId = "YourCognitoIdentityPoolId"
     let S3BucketName = "YourS3BucketName"
    
  7. Extract the full URL of the image you uploaded from your bucket. Important: make sure your AWS bucket creditials are set up for public read permissions.

    let fullUrl = "https://s3.amazonaws.com/{your-bucket-name}/" + uploadRequest.key! `

  8. Incorporate your MetaMind API classifier ID + authentication credentials

     let parameters:[String : AnyObject] = ["classifier_id" : xxxx, "image_url" : fullUrl]
                     
     let credentialData = "xxxx".dataUsingEncoding(NSUTF8StringEncoding)!
     let base64Credentials = credentialData.base64EncodedStringWithOptions([])
                     
     let headers = ["Authorization": "Basic xxxx","Content-Type":"application/x-www-form-urlencoded"]
    
  9. Build and run the sample app.

corrosionapp's People

Contributors

jmolayem avatar

Watchers

James Cloos avatar

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.