@asposecloud/aspose-ocr-cloud
AsposeOcrCloudApi - JavaScript client for @asposecloud/aspose-ocr-cloud
Aspose OCR Cloud API
This SDK is automatically generated by the OpenAPI Generator project:
- API version: 23.01.00
- Package version: 23.01.00
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
For more information, please visit https://about.aspose.cloud/contact
Installation
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install aspose-ocr-cloud --save
Finally, you need to build the module:
npm run build
Local development
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json
(and this README). Let's call this JAVASCRIPT_CLIENT_DIR
. Then run:
npm install
Next, link it globally in npm with the following, also from JAVASCRIPT_CLIENT_DIR
:
npm link
To use the link you just defined in your project, switch to the directory you want to use your @asposecloud/aspose-ocr-cloud from, and run:
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
You need to build the module in JAVASCRIPT_CLIENT_DIR
:
npm run build
Copy file demo.js
to directory you want to use your @asposecloud/aspose-ocr-cloud from and run several test examples from the file!
git
If the library is hosted at a git repository, e.g.https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:
npm install GIT_USER_ID/GIT_REPO_ID --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Webpack Configuration
Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:
module: {
rules: [
{
parser: {
amd: false
}
}
]
}
Documentation for API Endpoints
All URIs are relative to http://localhost
Class | Method | HTTP request | Description |
---|
AsposeOcrCloud50Api.DetectRegionsApi | cancelDetectRegions | DELETE /v5/DetectRegions | CancelDetectRegions |
AsposeOcrCloud50Api.DetectRegionsApi | getDetectRegions | GET /v5/DetectRegions | GetDetectRegions |
AsposeOcrCloud50Api.DetectRegionsApi | postDetectRegions | POST /v5/DetectRegions | PostDetectRegions |
AsposeOcrCloud50Api.ImageProcessingApi | getResultFile | GET /v5/ImageProcessing/GetResultFile | GetResultFile |
AsposeOcrCloud50Api.ImageProcessingApi | getResultTask | GET /v5/ImageProcessing/GetResultTask | GetResultTask |
AsposeOcrCloud50Api.ImageProcessingApi | postBinarizationFile | POST /v5/ImageProcessing/PostBinarizationFile | PostBinarizationFile |
AsposeOcrCloud50Api.ImageProcessingApi | postDewarpingFile | POST /v5/ImageProcessing/PostDewarpingFile | PostDewarpingFile |
AsposeOcrCloud50Api.ImageProcessingApi | postSkewCorrectionFile | POST /v5/ImageProcessing/PostSkewCorrectionFile | PostSkewCorrectionFile |
AsposeOcrCloud50Api.ImageProcessingApi | postUpsamplingFile | POST /v5/ImageProcessing/PostUpsamplingImageFile | PostUpsamplingImageFile |
AsposeOcrCloud50Api.RecognizeImageApi | cancelRecognizeImage | DELETE /v5/RecognizeImage | CancelRecognizeImage |
AsposeOcrCloud50Api.RecognizeImageApi | getRecognizeImage | GET /v5/RecognizeImage | GetRecognizeImage |
AsposeOcrCloud50Api.RecognizeImageApi | postRecognizeImage | POST /v5/RecognizeImage | PostRecognizeImage |
AsposeOcrCloud50Api.RecognizePdfApi | cancelRecognizePdf | DELETE /v5/RecognizePdf | CancelRecognizePdf |
AsposeOcrCloud50Api.RecognizePdfApi | getRecognizePdf | GET /v5/RecognizePdf | GetRecognizePdf |
AsposeOcrCloud50Api.RecognizePdfApi | postRecognizePdf | POST /v5/RecognizePdf | PostRecognizePdf |
AsposeOcrCloud50Api.RecognizeReceiptApi | cancelRecognizeReceipt | DELETE /v5/RecognizeReceipt | CancelRecognizeReceipt |
AsposeOcrCloud50Api.RecognizeReceiptApi | getRecognizeReceipt | GET /v5/RecognizeReceipt | GetRecognizeReceipt |
AsposeOcrCloud50Api.RecognizeReceiptApi | postRecognizeReceipt | POST /v5/RecognizeReceipt | PostRecognizeReceipt |
AsposeOcrCloud50Api.RecognizeRegionsApi | cancelRecognizeRegions | DELETE /v5/RecognizeRegions | CancelRecognizeRegions |
AsposeOcrCloud50Api.RecognizeRegionsApi | getRecognizeRegions | GET /v5/RecognizeRegions | GetRecognizeRegions |
AsposeOcrCloud50Api.RecognizeRegionsApi | postRecognizeRegions | POST /v5/RecognizeRegions | PostRecognizeRegions |
AsposeOcrCloud50Api.RecognizeTableApi | cancelRecognizeTable | DELETE /v5/RecognizeTable | CancelRecognizeTable |
AsposeOcrCloud50Api.RecognizeTableApi | getRecognizeTable | GET /v5/RecognizeTable | GetRecognizeTable |
AsposeOcrCloud50Api.RecognizeTableApi | postRecognizeTable | POST /v5/RecognizeTable | PostRecognizeTable |
AsposeOcrCloud50Api.TextToSpeechApi | getTextToSpeechResult | GET /v5/TextToSpeech/GetTextToSpeechResult | GetTextToSpeechResult |
AsposeOcrCloud50Api.TextToSpeechApi | getTextToSpeechResultFile | GET /v5/TextToSpeech/GetTextToSpeechResultFile | GetTextToSpeechResultFile |
AsposeOcrCloud50Api.TextToSpeechApi | postTextToSpeech | POST /v5/TextToSpeech/PostTextToSpeech | PostTextToSpeech |
Documentation for Models
Documentation for Authorization
JWT
- Type: OAuth
- Flow: application
- Authorization URL:
- Scopes: N/A