public final class Block
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Vision API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Block() |
Modifier and Type | Method and Description |
---|---|
Block |
clone() |
String |
getBlockType()
Detected block type (text, image etc) for this block.
|
BoundingPoly |
getBoundingBox()
The bounding box for the block.
|
Float |
getConfidence()
Confidence of the OCR results on the block.
|
List<Paragraph> |
getParagraphs()
List of paragraphs in this block (if this blocks is of type text).
|
TextProperty |
getProperty()
Additional information detected for the block.
|
Block |
set(String fieldName,
Object value) |
Block |
setBlockType(String blockType)
Detected block type (text, image etc) for this block.
|
Block |
setBoundingBox(BoundingPoly boundingBox)
The bounding box for the block.
|
Block |
setConfidence(Float confidence)
Confidence of the OCR results on the block.
|
Block |
setParagraphs(List<Paragraph> paragraphs)
List of paragraphs in this block (if this blocks is of type text).
|
Block |
setProperty(TextProperty property)
Additional information detected for the block.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getBlockType()
null
for nonepublic Block setBlockType(String blockType)
blockType
- blockType or null
for nonepublic BoundingPoly getBoundingBox()
null
for nonepublic Block setBoundingBox(BoundingPoly boundingBox)
boundingBox
- boundingBox or null
for nonepublic Float getConfidence()
null
for nonepublic Block setConfidence(Float confidence)
confidence
- confidence or null
for nonepublic List<Paragraph> getParagraphs()
null
for nonepublic Block setParagraphs(List<Paragraph> paragraphs)
paragraphs
- paragraphs or null
for nonepublic TextProperty getProperty()
null
for nonepublic Block setProperty(TextProperty property)
property
- property or null
for nonepublic Block set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Block clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.