# Cloud Vision V1 API - Class Google::Cloud::Vision::V1::Page (v1.7.0)

1.7.0 (latest) 1.6.0 1.5.1 1.4.0 1.3.1 1.2.1 1.1.0 1.0.1 0.15.0 0.14.0 0.13.2 0.12.0 0.11.1 0.10.0 0.9.0 0.8.0 0.7.0 0.6.4 Reference documentation and code samples for the Cloud Vision V1 API class Google::Cloud::Vision::V1::Page.

Detected page from OCR.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #blocks

    def blocks() -> ::Array<::Google::Cloud::Vision::V1::Block>

**Returns**

- (::Array\<[::Google::Cloud::Vision::V1::Block](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Block)\>) --- List of blocks of text, images etc on this page.

### #blocks=

    def blocks=(value) -> ::Array<::Google::Cloud::Vision::V1::Block>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Vision::V1::Block](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Block)\>) --- List of blocks of text, images etc on this page.
**Returns**

- (::Array\<[::Google::Cloud::Vision::V1::Block](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-Block)\>) --- List of blocks of text, images etc on this page.

### #confidence

    def confidence() -> ::Float

**Returns**

- (::Float) --- Confidence of the OCR results on the page. Range \[0, 1\].

### #confidence=

    def confidence=(value) -> ::Float

**Parameter**

- **value** (::Float) --- Confidence of the OCR results on the page. Range \[0, 1\].
**Returns**

- (::Float) --- Confidence of the OCR results on the page. Range \[0, 1\].

### #height

    def height() -> ::Integer

**Returns**

- (::Integer) --- Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

### #height=

    def height=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
**Returns**

- (::Integer) --- Page height. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

### #property

    def property() -> ::Google::Cloud::Vision::V1::TextAnnotation::TextProperty

**Returns**

- ([::Google::Cloud::Vision::V1::TextAnnotation::TextProperty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-TextAnnotation-TextProperty)) --- Additional information detected on the page.

### #property=

    def property=(value) -> ::Google::Cloud::Vision::V1::TextAnnotation::TextProperty

**Parameter**

- **value** ([::Google::Cloud::Vision::V1::TextAnnotation::TextProperty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-TextAnnotation-TextProperty)) --- Additional information detected on the page.
**Returns**

- ([::Google::Cloud::Vision::V1::TextAnnotation::TextProperty](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-vision-v1/latest/Google-Cloud-Vision-V1-TextAnnotation-TextProperty)) --- Additional information detected on the page.

### #width

    def width() -> ::Integer

**Returns**

- (::Integer) --- Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.

### #width=

    def width=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.
**Returns**

- (::Integer) --- Page width. For PDFs the unit is points. For images (including TIFFs) the unit is pixels.