Module: Google::Cloud
- Defined in:
- lib/google-cloud-vision.rb,
lib/google/cloud/vision.rb,
lib/google/cloud/vision/image.rb,
lib/google/cloud/vision/project.rb,
lib/google/cloud/vision/service.rb,
lib/google/cloud/vision/version.rb,
lib/google/cloud/vision/annotate.rb,
lib/google/cloud/vision/location.rb,
lib/google/cloud/vision/annotation.rb,
lib/google/cloud/vision/credentials.rb,
lib/google/cloud/vision/v1/geometry_pb.rb,
lib/google/cloud/vision/annotation/face.rb,
lib/google/cloud/vision/annotation/text.rb,
lib/google/cloud/vision/annotation/entity.rb,
lib/google/cloud/vision/annotation/vertex.rb,
lib/google/cloud/vision/annotation/properties.rb,
lib/google/cloud/vision/v1/image_annotator_pb.rb,
lib/google/cloud/vision/annotation/safe_search.rb,
lib/google/cloud/vision/v1/image_annotator_client.rb,
lib/google/cloud/vision/v1/image_annotator_services_pb.rb,
lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/geometry.rb,
lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb
Defined Under Namespace
Modules: Vision
Class Method Summary collapse
-
.vision(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Vision::Project
Creates a new object for connecting to the Vision service.
Instance Method Summary collapse
-
#vision(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Vision::Project
Creates a new object for connecting to the Vision service.
Class Method Details
.vision(project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Vision::Project
Creates a new object for connecting to the Vision service. Each call creates a new connection.
100 101 102 103 104 105 106 |
# File 'lib/google-cloud-vision.rb', line 100 def self.vision project = nil, keyfile = nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/vision" Google::Cloud::Vision.new project: project, keyfile: keyfile, scope: scope, timeout: timeout, client_config: client_config end |
Instance Method Details
#vision(scope: nil, timeout: nil, client_config: nil) ⇒ Google::Cloud::Vision::Project
Creates a new object for connecting to the Vision service. Each call creates a new connection.
62 63 64 65 66 |
# File 'lib/google-cloud-vision.rb', line 62 def vision scope: nil, timeout: nil, client_config: nil Google::Cloud.vision @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |