Skip to content

Google Cloud Vision API allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content.

License

Notifications You must be signed in to change notification settings

bugkingK/GoogleVision

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoogleVision

Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.

A framework to use Cloud Vision API by Google in Swift.

Installation

CocoaPods:

pod 'GoogleVision'

Manual:

Copy GoogleVision.swift to your project.

Initialization

First of all you have to generate API key to use Google Cloud services in the console. And then use the following code:

GoogleVision.init(apiKey: "")

Using

let gv = GoogleVision.init(apiKey: "")
let img = UIImage(named: "Image")
gv.run(image:img) { (text, err) in
    guard let text = text, err == nil else {
        print(err?.localizedDescription)
        return
    }

    print(text)
}

License

GoogleVision is available under the MIT license. See the LICENSE file for more info.

About

Google Cloud Vision API allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published