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/annotation/web.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/v1/doc/overview.rb,
lib/google/cloud/vision/annotation/entity.rb,
lib/google/cloud/vision/annotation/vertex.rb,
lib/google/cloud/vision/v1/web_detection_pb.rb,
lib/google/cloud/vision/annotation/crop_hint.rb,
lib/google/cloud/vision/annotation/properties.rb,
lib/google/cloud/vision/v1/image_annotator_pb.rb,
lib/google/cloud/vision/v1/text_annotation_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/web_detection.rb,
lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb,
lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb
Defined Under Namespace
Modules: Vision
Class Method Summary collapse
-
.vision(project_id = nil, credentials = 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_id = nil, credentials = 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.
104 105 106 107 108 109 110 111 |
# File 'lib/google-cloud-vision.rb', line 104 def self.vision project_id = nil, credentials = nil, scope: nil, timeout: nil, client_config: nil require "google/cloud/vision" Google::Cloud::Vision.new project_id: project_id, credentials: credentials, 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.
64 65 66 67 68 |
# File 'lib/google-cloud-vision.rb', line 64 def vision scope: nil, timeout: nil, client_config: nil Google::Cloud.vision @project, @keyfile, scope: scope, timeout: (timeout || @timeout), client_config: client_config end |