Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@asposecloud/aspose-ocr-cloud

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@asposecloud/aspose-ocr-cloud

Aspose OCR Cloud 5.0 API

  • 23.6.0
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

@asposecloud/aspose-ocr-cloud

AsposeOcrCloud50Api - JavaScript client for @asposecloud/aspose-ocr-cloud Aspose OCR Cloud API This SDK is automatically generated by the OpenAPI Generator project:

  • API version: 23.6.0
  • Package version: 23.6.0
  • Build package: org.openapitools.codegen.languages.JavascriptClientCodegen For more information, please visit https://about.aspose.cloud/contact

Installation

For Node.js

npm

You can install aspose-ocr-cloud library with the following command:

npm i @asposecloud/aspose-ocr-cloud
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 aspose_ocr_cloud_5_0_api from, and run:

npm link /path/to/<JAVASCRIPT_CLIENT_DIR>

Finally, you need to build the module:

npm run build

Once the module is built, copy file demo.js to directory you want to use your @asposecloud/aspose-ocr-cloud from and run several test examples from the file!

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
      }
    }
  ]
}

Getting Started

Please open demo.js file to see provided examples.

In demo.js file you should provide client_id and client_secrect which you can get from: https://dashboard.aspose.cloud/

Once you've wrote your credentials, add img_path or pdf_path. Then you should uncomment image recognize pipeline or pdf recognize pipeline in the end of demo.js file.

// Get your credentials from Aspose Dashboard and insert them below:
var data = '{"client_id": "", "client_secret": "", "grant_type": "client_credentials"}'
var json_obj = JSON.parse(data)

// write img path to the image you want to recognize
var img_path = ""

// write pdf path to the image you want to recognize
var pdf_path = ""
....
....
// image recognize pipeline example
connect().then(
    access_token => callPostImageRecognizeFunction(access_token, img_path)
).then(
    x => new Promise(resolve => setTimeout(() => resolve(x), 1000))
).then(
    id => callGetImageFunction(id)
).then(
    body => processResult(body)
)

// pdf recognize pipeline example
connect().then(
    access_token => callPostPDFRecognizeFunction(access_token, pdf_path)
).then(
    x => new Promise(resolve => setTimeout(() => resolve(x), 1000))
).then(
    id => callGetPDFFunction(id)
).then(
    body => processResult(body)
)

Documentation for API Endpoints

All URIs are relative to http://localhost

ClassMethodHTTP requestDescription
AsposeOcrCloud50Api.BinarizeImageApicancelBinarizeImageDELETE /BinarizeImageCancelBinarizeImage
AsposeOcrCloud50Api.BinarizeImageApigetBinarizeImageGET /BinarizeImageGetBinarizeImage
AsposeOcrCloud50Api.BinarizeImageApipostBinarizeImagePOST /BinarizeImagePostBinarizeImage
AsposeOcrCloud50Api.ConvertTextToSpeechApicancelConvertTextToSpeechDELETE /ConvertTextToSpeechCancelConvertTextToSpeech
AsposeOcrCloud50Api.ConvertTextToSpeechApigetConvertTextToSpeechGET /ConvertTextToSpeechGetConvertTextToSpeech
AsposeOcrCloud50Api.ConvertTextToSpeechApipostConvertTextToSpeechPOST /ConvertTextToSpeechPostConvertTextToSpeech
AsposeOcrCloud50Api.DeskewImageApicancelDeskewImageDELETE /DeskewImageCancelDeskewImage
AsposeOcrCloud50Api.DeskewImageApigetDeskewImageGET /DeskewImageGetDeskewImage
AsposeOcrCloud50Api.DeskewImageApipostDeskewImagePOST /DeskewImagePostDeskewImage
AsposeOcrCloud50Api.DetectRegionsApicancelDetectRegionsDELETE /DetectRegionsCancelDetectRegions
AsposeOcrCloud50Api.DetectRegionsApigetDetectRegionsGET /DetectRegionsGetDetectRegions
AsposeOcrCloud50Api.DetectRegionsApipostDetectRegionsPOST /DetectRegionsPostDetectRegions
AsposeOcrCloud50Api.DewarpImageApicancelDewarpImageDELETE /DewarpImageCancelDewarpImage
AsposeOcrCloud50Api.DewarpImageApigetDewarpImageGET /DewarpImageGetDewarpImage
AsposeOcrCloud50Api.DewarpImageApipostDewarpImagePOST /DewarpImagePostDewarpImage
AsposeOcrCloud50Api.DjVu2PDFApicancelDjVu2PDFDELETE /DjVu2PDFCancelDjVu2PDF
AsposeOcrCloud50Api.DjVu2PDFApigetDjVu2PDFGET /DjVu2PDFGetDjVu2PDF
AsposeOcrCloud50Api.DjVu2PDFApipostDjVu2PDFPOST /DjVu2PDFPostDjVu2PDF
AsposeOcrCloud50Api.IdentifyFontApicancelIdentifyFontDELETE /IdentifyFontCancelIdentifyFont
AsposeOcrCloud50Api.IdentifyFontApigetIdentifyFontGET /IdentifyFontGetIdentifyFont
AsposeOcrCloud50Api.IdentifyFontApipostIdentifyFontPOST /IdentifyFontPostIdentifyFont
AsposeOcrCloud50Api.ImageProcessingApigetResultFileGET /ImageProcessing/GetResultFileGetResultFile
AsposeOcrCloud50Api.ImageProcessingApigetResultTaskGET /ImageProcessing/GetResultTaskGetResultTask
AsposeOcrCloud50Api.ImageProcessingApipostBinarizationFilePOST /ImageProcessing/PostBinarizationFilePostBinarizationFile
AsposeOcrCloud50Api.ImageProcessingApipostDewarpingFilePOST /ImageProcessing/PostDewarpingFilePostDewarpingFile
AsposeOcrCloud50Api.ImageProcessingApipostSkewCorrectionFilePOST /ImageProcessing/PostSkewCorrectionFilePostSkewCorrectionFile
AsposeOcrCloud50Api.ImageProcessingApipostUpsamplingFilePOST /ImageProcessing/PostUpsamplingImageFilePostUpsamplingImageFile
AsposeOcrCloud50Api.RecognizeImageApicancelRecognizeImageDELETE /RecognizeImageCancelRecognizeImage
AsposeOcrCloud50Api.RecognizeImageApigetRecognizeImageGET /RecognizeImageGetRecognizeImage
AsposeOcrCloud50Api.RecognizeImageApipostRecognizeImagePOST /RecognizeImagePostRecognizeImage
AsposeOcrCloud50Api.RecognizeLabelApicancelRecognizeLabelDELETE /RecognizeLabelCancelRecognizeLabel
AsposeOcrCloud50Api.RecognizeLabelApigetRecognizeLabelGET /RecognizeLabelGetRecognizeLabel
AsposeOcrCloud50Api.RecognizeLabelApipostRecognizeLabelPOST /RecognizeLabelPostRecognizeLabel
AsposeOcrCloud50Api.RecognizePdfApicancelRecognizePdfDELETE /RecognizePdfCancelRecognizePdf
AsposeOcrCloud50Api.RecognizePdfApigetRecognizePdfGET /RecognizePdfGetRecognizePdf
AsposeOcrCloud50Api.RecognizePdfApipostRecognizePdfPOST /RecognizePdfPostRecognizePdf
AsposeOcrCloud50Api.RecognizeReceiptApicancelRecognizeReceiptDELETE /RecognizeReceiptCancelRecognizeReceipt
AsposeOcrCloud50Api.RecognizeReceiptApigetRecognizeReceiptGET /RecognizeReceiptGetRecognizeReceipt
AsposeOcrCloud50Api.RecognizeReceiptApipostRecognizeReceiptPOST /RecognizeReceiptPostRecognizeReceipt
AsposeOcrCloud50Api.RecognizeRegionsApicancelRecognizeRegionsDELETE /RecognizeRegionsCancelRecognizeRegions
AsposeOcrCloud50Api.RecognizeRegionsApigetRecognizeRegionsGET /RecognizeRegionsGetRecognizeRegions
AsposeOcrCloud50Api.RecognizeRegionsApipostRecognizeRegionsPOST /RecognizeRegionsPostRecognizeRegions
AsposeOcrCloud50Api.RecognizeTableApicancelRecognizeTableDELETE /RecognizeTableCancelRecognizeTable
AsposeOcrCloud50Api.RecognizeTableApigetRecognizeTableGET /RecognizeTableGetRecognizeTable
AsposeOcrCloud50Api.RecognizeTableApipostRecognizeTablePOST /RecognizeTablePostRecognizeTable
AsposeOcrCloud50Api.TextToSpeechApigetTextToSpeechResultGET /TextToSpeech/GetTextToSpeechResultGetTextToSpeechResult
AsposeOcrCloud50Api.TextToSpeechApigetTextToSpeechResultFileGET /TextToSpeech/GetTextToSpeechResultFileGetTextToSpeechResultFile
AsposeOcrCloud50Api.TextToSpeechApipostTextToSpeechPOST /TextToSpeech/PostTextToSpeechPostTextToSpeech
AsposeOcrCloud50Api.UpscaleImageApicancelUpscaleImageDELETE /UpscaleImageCancelUpscaleImage
AsposeOcrCloud50Api.UpscaleImageApigetUpscaleImageGET /UpscaleImageGetUpscaleImage
AsposeOcrCloud50Api.UpscaleImageApipostUpscaleImagePOST /UpscaleImagePostUpscaleImage

Documentation for Models

Documentation for Authorization

JWT

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes: N/A

FAQs

Package last updated on 06 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc