Categorygithub.com/aspose-ocr-cloud/aspose-ocr-cloud-go
modulepackage
23.7.0+incompatible
Repository: https://github.com/aspose-ocr-cloud/aspose-ocr-cloud-go.git
Documentation: pkg.go.dev

# README

Aspose.OCR Cloud SDK for Go 23.7.0

License GitHub release (latest by date) Aspose.OCR Cloud is an optical character recognition as a service. With it, you can easily add OCR functionality to almost any device or platform: cloud, web, PCs, netbooks, or even entry-level smartphones.

Our engine can read text from images, photos, screenshots and scanned PDFs in a wide variety of European, Cyrillic and Oriental fonts, returning results in the most popular document formats. Powerful built-in image processing filters based on neural networks automatically correct skewed and distorted images, automatically remove dirt, smudges, scratches, glare and other image defects that can affect recognition accuracy. To further improve the results, Aspose.OCR Cloud has a built-in spell checker that automatically replaces misspelled words and saves you the trouble of manually correcting the recognition results.

Aspose.OCR Cloud SDK for Go greatly simplifies interaction with Aspose.OCR Cloud services by providing a programming library for Go developers. It handles all the routine operations such as establishing connections, sending API requests, and parsing responses, wrapping all these tasks into higher level abstractions. Even the complex recognition tasks can be done with a few lines of native Go code.

Aspose.OCR Cloud SDK for Go is open source under the MIT license. You can freely use it for any projects, including commercial and proprietary applications, as well as modify any part of its code.

Try Online

Image to TextImage to Searchable PDFPDF OCRReceipt Scanner
Scan ImageImage to Searchable PDFPDF OCRReceipt Scanner

System requirements

  • Go 1.18 or later.
  • Internet connection.
  • Access to the api.aspose.cloud domain.

Check go.mod file for the full list of third-party dependencies.

Get started

Aspose.OCR Cloud is an on-demand service with a free tier. In order to use Aspose.OCR Cloud service, you must create an account at Aspose Cloud API:

  1. Go to https://dashboard.aspose.cloud/
  2. If you are already registered with Aspose, sign in with your user name and password.
    Otherwise, click Don’t have an account? Sign Up link and create a new account.
  3. Check out more information about available subscription plans and a free tier limits.

Aspose values your privacy and takes technical, security and organizational measures to protect your data from unauthorized use, accidental loss or disclosure. Read our Privacy Policy and Terms of Service for details.

Authorization

Aspose.OCR Cloud follows industry standards and best practices to keep your data secure. All communication with OCR REST API is done using JWT authentication, which provides an open-standard, highly secure way to exchange information. Time-limited JWT tokens are generated using Client ID and Client Secret credentials that are specific for each application. To obtain the credentials:

  1. Sign in to Aspose Cloud API Dashboard.

  2. Go to Applications page.

  3. Click Create New Application button.

  4. Give the application an easily recognizable name so it can be quickly found in a long list, and provide an optional detailed description.

  5. Create the cloud storage by clicking the plus icon and following the required steps. You can also reuse existing storage, if available.
    Aspose.OCR Cloud uses its own internal storage, so you can provide the bare minimum storage options:

    • Type: Internal storage
    • Storage name: Any name you like
    • Storage mode: Retain files for 24 hours
  6. Click Save button.

  7. Click the newly created application and copy the values from Client Id and Client Secret fields.

  8. Pass in the values from the Client ID and Client Secret fields when initializing the required OCR API.

Running demo

  1. Clone this repository or download it as ZIP.
  2. Install Aspose.OCR Cloud SDK for Go package:
go get github.com/aspose-ocr-cloud/aspose-ocr-cloud-go
  1. Open examples/example.go file and replace "YOUR_CLIENT_ID" and "YOUR_CLIENT_SECRET" with credentials obtained during Authorization phase:
func main() {

	clientId := "YOUR_CLIENT_ID"
	clientSecret := "YOUR_CLIENT_SECRET"
  1. Open the terminal and navigate to the example directory of the downloaded repository.
  2. Run the example:
go run .\example.go
  1. Recognition results will be saved to the results directory of the downloaded repository.

Running tests

We also provide automated tests for Testify.

  1. Clone this repository or download it as ZIP.
  2. Install dependencies:
go get github.com/stretchr/testify/assert
go get github.com/stretchr/testify/require
go get golang.org/x/oauth2
  1. Open test/test_config.go file and replace "YOUR_CLIENT_ID" and "YOUR_CLIENT_SECRET" with credentials obtained during Authorization phase:
package asposeocrcloud

var (
	ConfigClientID = "YOUR_CLIENT_ID"
	ConfigClientSecret = "YOUR_CLIENT_SECRET"
)
  1. Open the terminal and navigate to the test directory of the downloaded repository.
  2. Run tests:
go test github.com/aspose-ocr-cloud/aspose-ocr-cloud-go/test
  1. Test results will be saved to the results directory of the downloaded repository.

What was changed in version 23.7.0

This is the first release of Aspose.OCR Cloud SDK for Go. It supports all the features of Aspose.OCR Cloud REST API 23.6.0.

Stay tuned for further updates.

Public API changes and backwards compatibility

This section lists all public API changes introduced in Aspose.OCR Cloud SDK for Go 23.7.0 that may affect the code of existing applications.

Added public APIs:

No changes

Updated public APIs:

No changes

Removed public APIs:

No changes.

Examples

The example below illustrates how to use Aspose.OCR Cloud SDK for Go to extract text from an image:

package main


import (
	"context"
	"encoding/base64"
	"fmt"
	"io/ioutil"
	asposeocrcloud "github.com/aspose-ocr-cloud/aspose-ocr-cloud-go"
)

func main(){
	
	clientId := "YOUR_CLIENT_ID"
	clientSecret := "YOUR_CLIENT_SECRET"
	configuration := asposeocrcloud.NewConfiguration(clientId, clientSecret)
	apiClient := asposeocrcloud.NewAPIClient(configuration)

	
	filePath := "../samples/latin.png" // Path to your file
	
		// Read your file data and convert it into base64 string
		fileBytes, err := ioutil.ReadFile(filePath)
		if err != nil || fileBytes == nil {
			fmt.Println("Read file error:", err)
			return
		}
		fileb64Encoded := base64.StdEncoding.EncodeToString(fileBytes)

		// Step 1: create request body and sent it to OCR Cloud to receive task ID
		recognitionSettings := *asposeocrcloud.NewOCRSettingsRecognizeImage()
		recognitionSettings.Language = asposeocrcloud.LANGUAGE_ENGLISH.Ptr()
		recognitionSettings.DsrMode = asposeocrcloud.DSRMODE_NO_DSR_NO_FILTER.Ptr()
		recognitionSettings.DsrConfidence = asposeocrcloud.DSRCONFIDENCE_DEFAULT.Ptr()
		*recognitionSettings.MakeBinarization = false
		*recognitionSettings.MakeSkewCorrect = false
		*recognitionSettings.MakeUpsampling = false
		*recognitionSettings.MakeSpellCheck = false
		*recognitionSettings.MakeContrastCorrection = false
		recognitionSettings.ResultType = asposeocrcloud.RESULTTYPE_TEXT.Ptr()
		recognitionSettings.ResultTypeTable = asposeocrcloud.RESULTTYPETABLE_TEXT.Ptr()

		requestBody := *asposeocrcloud.NewOCRRecognizeImageBody(
			fileb64Encoded,
			recognitionSettings,
		)

		taskId, httpRes, err := apiClient.RecognizeImageApi.PostRecognizeImage(context.Background()).OCRRecognizeImageBody(requestBody).Execute()
		if err != nil || httpRes.StatusCode != 200 {
			fmt.Println("API error:", err)
			return
		}

		fmt.Printf("File successfully sent. Your TaskID is %s \n", taskId)

		// Step 2: request task results using task ID
		ocrResp, httpRes, err := apiClient.RecognizeImageApi.GetRecognizeImage(context.Background()).Id(taskId).Execute()
		if err != nil|| httpRes.StatusCode != 200 || ocrResp == nil {
			fmt.Println("API error:", err)
			return
		}
		
		if *ocrResp.TaskStatus == asposeocrcloud.OCRTASKSTATUS_COMPLETED {
			if !ocrResp.Results[0].Data.IsSet() {
				fmt.Println("Response is empty")
				return
			}

			// Decode results and write to file
			decodedBytes, err := base64.StdEncoding.DecodeString(*ocrResp.Results[0].Data.Get())
			if err != nil {
				fmt.Println("Decode error:", err)
				return
			}

			resultFilePath := "../results/" + taskId + ".txt"
			err = ioutil.WriteFile(resultFilePath, decodedBytes, 0644)
			if err != nil {
				fmt.Println("Write file error:", err)
				return
			}

			fmt.Printf("Task result successfully saved at %s \n", resultFilePath)
		} else {
			fmt.Printf("Sorry, task %s is not completed yet. You can request results later. Task status: %s\n", taskId, *ocrResp.TaskStatus)
		}
}

Other Aspose.OCR Cloud SDKs

Resources

Find more information on Aspose.OCR Cloud and get professional help:

# Packages

No description provided by the author
No description provided by the author

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
IsNil checks if an input is nil.
NewAPIClient creates a new API client.
NewAPIResponse returns a new APIResponse object.
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
NewConfiguration returns a new Configuration object.
NewDsrConfidenceFromValue returns a pointer to a valid DsrConfidence for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewDsrModeFromValue returns a pointer to a valid DsrMode for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewLanguageFromValue returns a pointer to a valid Language for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewLanguageTTSFromValue returns a pointer to a valid LanguageTTS for the value passed as argument, or an error if the value passed is not allowed by the enum.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewOCRBinarizeImageBody instantiates a new OCRBinarizeImageBody 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.
NewOCRBinarizeImageBodyWithDefaults instantiates a new OCRBinarizeImageBody 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.
NewOCRDeskewImageBody instantiates a new OCRDeskewImageBody 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.
NewOCRDeskewImageBodyWithDefaults instantiates a new OCRDeskewImageBody 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.
NewOCRDetectRegionsBody instantiates a new OCRDetectRegionsBody 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.
NewOCRDetectRegionsBodyWithDefaults instantiates a new OCRDetectRegionsBody 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.
NewOCRDewarpImageBody instantiates a new OCRDewarpImageBody 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.
NewOCRDewarpImageBodyWithDefaults instantiates a new OCRDewarpImageBody 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.
NewOCRDjVu2PDFBody instantiates a new OCRDjVu2PDFBody 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.
NewOCRDjVu2PDFBodyWithDefaults instantiates a new OCRDjVu2PDFBody 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.
NewOCRError instantiates a new OCRError 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.
NewOCRErrorWithDefaults instantiates a new OCRError 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.
NewOCRRecognizeFontBody instantiates a new OCRRecognizeFontBody 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.
NewOCRRecognizeFontBodyWithDefaults instantiates a new OCRRecognizeFontBody 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.
NewOCRRecognizeImageBody instantiates a new OCRRecognizeImageBody 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.
NewOCRRecognizeImageBodyWithDefaults instantiates a new OCRRecognizeImageBody 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.
NewOCRRecognizeLabelBody instantiates a new OCRRecognizeLabelBody 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.
NewOCRRecognizeLabelBodyWithDefaults instantiates a new OCRRecognizeLabelBody 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.
NewOCRRecognizePdfBody instantiates a new OCRRecognizePdfBody 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.
NewOCRRecognizePdfBodyWithDefaults instantiates a new OCRRecognizePdfBody 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.
NewOCRRecognizeReceiptBody instantiates a new OCRRecognizeReceiptBody 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.
NewOCRRecognizeReceiptBodyWithDefaults instantiates a new OCRRecognizeReceiptBody 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.
NewOCRRecognizeRegionsBody instantiates a new OCRRecognizeRegionsBody 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.
NewOCRRecognizeRegionsBodyWithDefaults instantiates a new OCRRecognizeRegionsBody 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.
NewOCRRecognizeTableBody instantiates a new OCRRecognizeTableBody 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.
NewOCRRecognizeTableBodyWithDefaults instantiates a new OCRRecognizeTableBody 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.
NewOCRRect instantiates a new OCRRect 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.
NewOCRRectWithDefaults instantiates a new OCRRect 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.
NewOCRRegion instantiates a new OCRRegion 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.
NewOCRRegionWithDefaults instantiates a new OCRRegion 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.
NewOCRResponse instantiates a new OCRResponse 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.
NewOCRResponseWithDefaults instantiates a new OCRResponse 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.
NewOCRResult instantiates a new OCRResult 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.
NewOCRResultWithDefaults instantiates a new OCRResult 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.
NewOCRSettingsDetectRegions instantiates a new OCRSettingsDetectRegions 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.
NewOCRSettingsDetectRegionsWithDefaults instantiates a new OCRSettingsDetectRegions 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.
NewOCRSettingsDjVu2PDF instantiates a new OCRSettingsDjVu2PDF 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.
NewOCRSettingsDjVu2PDFWithDefaults instantiates a new OCRSettingsDjVu2PDF 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.
NewOCRSettingsRecognizeFont instantiates a new OCRSettingsRecognizeFont 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.
NewOCRSettingsRecognizeFontWithDefaults instantiates a new OCRSettingsRecognizeFont 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.
NewOCRSettingsRecognizeImage instantiates a new OCRSettingsRecognizeImage 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.
NewOCRSettingsRecognizeImageWithDefaults instantiates a new OCRSettingsRecognizeImage 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.
NewOCRSettingsRecognizeLabel instantiates a new OCRSettingsRecognizeLabel 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.
NewOCRSettingsRecognizeLabelWithDefaults instantiates a new OCRSettingsRecognizeLabel 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.
NewOCRSettingsRecognizePdf instantiates a new OCRSettingsRecognizePdf 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.
NewOCRSettingsRecognizePdfWithDefaults instantiates a new OCRSettingsRecognizePdf 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.
NewOCRSettingsRecognizeReceipt instantiates a new OCRSettingsRecognizeReceipt 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.
NewOCRSettingsRecognizeReceiptWithDefaults instantiates a new OCRSettingsRecognizeReceipt 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.
NewOCRSettingsRecognizeRegions instantiates a new OCRSettingsRecognizeRegions 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.
NewOCRSettingsRecognizeRegionsWithDefaults instantiates a new OCRSettingsRecognizeRegions 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.
NewOCRSettingsRecognizeTable instantiates a new OCRSettingsRecognizeTable 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.
NewOCRSettingsRecognizeTableWithDefaults instantiates a new OCRSettingsRecognizeTable 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.
NewOCRTaskStatusFromValue returns a pointer to a valid OCRTaskStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewOCRUpscaleImageBody instantiates a new OCRUpscaleImageBody 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.
NewOCRUpscaleImageBodyWithDefaults instantiates a new OCRUpscaleImageBody 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.
NewPostUpsamplingFileRequest instantiates a new PostUpsamplingFileRequest 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.
NewPostUpsamplingFileRequestWithDefaults instantiates a new PostUpsamplingFileRequest 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.
NewProblemDetails instantiates a new ProblemDetails 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.
NewProblemDetailsWithDefaults instantiates a new ProblemDetails 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.
NewResponseStatusCodeFromValue returns a pointer to a valid ResponseStatusCode for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewResultTypeFromValue returns a pointer to a valid ResultType for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewResultTypeTableFromValue returns a pointer to a valid ResultTypeTable for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewResultTypeTTSFromValue returns a pointer to a valid ResultTypeTTS for the value passed as argument, or an error if the value passed is not allowed by the enum.
NewTTSBody instantiates a new TTSBody 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.
NewTTSBodyDeprecated instantiates a new TTSBodyDeprecated 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.
NewTTSBodyDeprecatedWithDefaults instantiates a new TTSBodyDeprecated 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.
NewTTSBodyWithDefaults instantiates a new TTSBody 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.
NewTTSError instantiates a new TTSError 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.
NewTTSErrorWithDefaults instantiates a new TTSError 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.
NewTTSResponse instantiates a new TTSResponse 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.
NewTTSResponseWithDefaults instantiates a new TTSResponse 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.
NewTTSResult instantiates a new TTSResult 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.
NewTTSResultWithDefaults instantiates a new TTSResult 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.
NewTTSSettings instantiates a new TTSSettings 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.
NewTTSSettingsWithDefaults instantiates a new TTSSettings 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.
NewTTSTaskStatusFromValue returns a pointer to a valid TTSTaskStatus for the value passed as argument, or an error if the value passed is not allowed by the enum.
PtrBool is a helper routine that returns a pointer to given boolean value.
PtrFloat32 is a helper routine that returns a pointer to given float value.
PtrFloat64 is a helper routine that returns a pointer to given float value.
PtrInt is a helper routine that returns a pointer to given integer value.
PtrInt32 is a helper routine that returns a pointer to given integer value.
PtrInt64 is a helper routine that returns a pointer to given integer value.
PtrString is a helper routine that returns a pointer to given string value.
PtrTime is helper routine that returns a pointer to given Time value.

# Constants

List of DsrConfidence.
List of DsrConfidence.
List of DsrConfidence.
List of DsrConfidence.
List of DsrConfidence.
List of DsrConfidence.
List of DsrConfidence.
List of DsrConfidence.
List of DsrMode.
List of DsrMode.
List of DsrMode.
List of DsrMode.
List of DsrMode.
List of DsrMode.
List of DsrMode.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of Language.
List of LanguageTTS.
List of OCRTaskStatus.
List of OCRTaskStatus.
List of OCRTaskStatus.
List of OCRTaskStatus.
List of OCRTaskStatus.
List of ResponseStatusCode.
List of ResponseStatusCode.
List of ResponseStatusCode.
List of ResponseStatusCode.
List of ResponseStatusCode.
List of ResponseStatusCode.
List of ResponseStatusCode.
List of ResultType.
List of ResultType.
List of ResultType.
List of ResultType.
List of ResultType.
List of ResultType.
List of ResultType.
List of ResultType.
List of ResultTypeTable.
List of ResultTypeTable.
List of ResultTypeTable.
List of ResultTypeTable.
List of ResultTypeTTS.
List of TTSTaskStatus.
List of TTSTaskStatus.
List of TTSTaskStatus.
List of TTSTaskStatus.
List of TTSTaskStatus.

# Variables

All allowed values of DsrConfidence enum.
All allowed values of DsrMode enum.
All allowed values of Language enum.
All allowed values of LanguageTTS enum.
All allowed values of OCRTaskStatus enum.
All allowed values of ResponseStatusCode enum.
All allowed values of ResultType enum.
All allowed values of ResultTypeTable enum.
All allowed values of ResultTypeTTS enum.
All allowed values of TTSTaskStatus enum.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
ContextOperationServerIndices uses a server configuration from the index mapping.
ContextOperationServerVariables overrides a server configuration variables using operation specific values.
ContextServerIndex uses a server configuration from the index.
ContextServerVariables overrides a server configuration variables.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIClient manages communication with the Aspose OCR Cloud 5.0 API API v5.0 In most cases there should be only one, shared, APIClient.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
APIResponse stores the API response returned by the server.
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
Configuration stores the configuration of the API client.
GenericAPIError Provides access to the body, error and model on returned errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
OCRBinarizeImageBody struct for OCRBinarizeImageBody.
OCRDeskewImageBody struct for OCRDeskewImageBody.
OCRDetectRegionsBody struct for OCRDetectRegionsBody.
OCRDewarpImageBody struct for OCRDewarpImageBody.
OCRDjVu2PDFBody struct for OCRDjVu2PDFBody.
OCRError Error to return to SDK client.
OCRRecognizeFontBody struct for OCRRecognizeFontBody.
OCRRecognizeImageBody Combines Image data and OCR Recognition settings.
OCRRecognizeLabelBody struct for OCRRecognizeLabelBody.
OCRRecognizePdfBody Combines Image data and OCR Recognition settings for PDF.
OCRRecognizeReceiptBody Combines Image data and OCR Recognition settings fro Receipt image.
OCRRecognizeRegionsBody struct for OCRRecognizeRegionsBody.
OCRRecognizeTableBody Combines Image data and OCR Recognition settings for Table image.
OCRRect Represents a rectangle: Left-Top (X1-Y1) to Right-Bottom (X2-Y2).
OCRRegion Represents information about strict regions to recognize text.
OCRResponse Response with Recognition result for specific task ID.
OCRResult Represents information about response after OCR.
OCRSettingsDetectRegions struct for OCRSettingsDetectRegions.
OCRSettingsDjVu2PDF struct for OCRSettingsDjVu2PDF.
OCRSettingsRecognizeFont struct for OCRSettingsRecognizeFont.
OCRSettingsRecognizeImage OCR Process setting for Image recognition.
OCRSettingsRecognizeLabel struct for OCRSettingsRecognizeLabel.
OCRSettingsRecognizePdf OCR Process setting for Scanned multiple PDF document recognition.
OCRSettingsRecognizeReceipt OCR Process setting for Receipt scan image recognition.
OCRSettingsRecognizeRegions struct for OCRSettingsRecognizeRegions.
OCRSettingsRecognizeTable OCR Process setting for Table image recognition.
OCRUpscaleImageBody struct for OCRUpscaleImageBody.
PostUpsamplingFileRequest struct for PostUpsamplingFileRequest.
ProblemDetails struct for ProblemDetails.
ServerConfiguration stores the information about a server.
ServerVariable stores the information about a server variable.
TTSBody struct for TTSBody.
TTSBodyDeprecated struct for TTSBodyDeprecated.
TTSError struct for TTSError.
TTSResponse struct for TTSResponse.
TTSResult struct for TTSResult.
TTSSettings struct for TTSSettings.

# Interfaces

No description provided by the author

# Type aliases

BinarizeImageApiService BinarizeImageApi service.
ConvertTextToSpeechApiService ConvertTextToSpeechApi service.
DeskewImageApiService DeskewImageApi service.
DetectRegionsApiService DetectRegionsApi service.
DewarpImageApiService DewarpImageApi service.
DjVu2PDFApiService DjVu2PDFApi service.
DsrConfidence Region filtering threshold.
DsrMode Option that sets the recognition result type or combination of some types: Text, Searchable PDF, HOCR.
IdentifyFontApiService IdentifyFontApi service.
ImageProcessingApiService ImageProcessingApi service.
Language Recognition Language.
LanguageTTS the model 'LanguageTTS'.
OCRTaskStatus Task status.
RecognizeImageApiService RecognizeImageApi service.
RecognizeLabelApiService RecognizeLabelApi service.
RecognizePdfApiService RecognizePdfApi service.
RecognizeReceiptApiService RecognizeReceiptApi service.
RecognizeRegionsApiService RecognizeRegionsApi service.
RecognizeTableApiService RecognizeTableApi service.
ResponseStatusCode Status code showing the status of the request, operation, and result processing.
ResultType Result document type for OCR process.
ResultTypeTable Result document type for Table OCR process.
ResultTypeTTS the model 'ResultTypeTTS'.
ServerConfigurations stores multiple ServerConfiguration items.
TextToSpeechApiService TextToSpeechApi service.
TTSTaskStatus the model 'TTSTaskStatus'.
UpscaleImageApiService UpscaleImageApi service.