OcrCell Model
OcrCell Model documentation for Go SDK
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| Bbox | Pointer to BoundingBox | [optional] | |
| CategoryLabel | string | Raw category label emitted by OCR | |
| Category | OcrCategory | ||
| Text | string | OCR text content |
Methods
NewOcrCell
func NewOcrCell(categoryLabel string, category OcrCategory, text string, ) *OcrCell
NewOcrCell instantiates a new OcrCell object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
NewOcrCellWithDefaults
func NewOcrCellWithDefaults() *OcrCell
NewOcrCellWithDefaults instantiates a new OcrCell object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
GetBbox
func (o *OcrCell) GetBbox() BoundingBox
GetBbox returns the Bbox field if non-nil, zero value otherwise.
GetBboxOk
func (o *OcrCell) GetBboxOk() (*BoundingBox, bool)
GetBboxOk returns a tuple with the Bbox field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetBbox
func (o *OcrCell) SetBbox(v BoundingBox)
SetBbox sets Bbox field to given value.
HasBbox
func (o *OcrCell) HasBbox() bool
HasBbox returns a boolean if a field has been set.
GetCategoryLabel
func (o *OcrCell) GetCategoryLabel() string
GetCategoryLabel returns the CategoryLabel field if non-nil, zero value otherwise.
GetCategoryLabelOk
func (o *OcrCell) GetCategoryLabelOk() (*string, bool)
GetCategoryLabelOk returns a tuple with the CategoryLabel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCategoryLabel
func (o *OcrCell) SetCategoryLabel(v string)
SetCategoryLabel sets CategoryLabel field to given value.
GetCategory
func (o *OcrCell) GetCategory() OcrCategory
GetCategory returns the Category field if non-nil, zero value otherwise.
GetCategoryOk
func (o *OcrCell) GetCategoryOk() (*OcrCategory, bool)
GetCategoryOk returns a tuple with the Category field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetCategory
func (o *OcrCell) SetCategory(v OcrCategory)
SetCategory sets Category field to given value.
GetText
func (o *OcrCell) GetText() string
GetText returns the Text field if non-nil, zero value otherwise.
GetTextOk
func (o *OcrCell) GetTextOk() (*string, bool)
GetTextOk returns a tuple with the Text field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
SetText
func (o *OcrCell) SetText(v string)
SetText sets Text field to given value.