Giter VIP home page Giter VIP logo

ocr-space-api-wrapper's People

Contributors

busybox11 avatar davideviolante avatar dependabot-preview[bot] avatar dependabot[bot] avatar depfu[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ocr-space-api-wrapper's Issues

Uncaught Exception: TypeError: data should be a string, Buffer or Uint8Array

Hi there, thanks for building this wrapper!

I got a issue with parsing the options, when i pass a boolean i got this error:
Uncaught Exception: TypeError: data should be a string, Buffer or Uint8Array

I this this is related to this question; https://stackoverflow.com/questions/63938549/axios-data-should-be-a-string-buffer-or-uint8array.
I think you can fix this by wrapping all (or only the boolean's) in JSON.stringify().

Greetings!

Request timed out.

I am mostly getting this error: Request timed out while waiting for the results. Can I fix it by any chance?

Error in axios, 403 forbidden

Hi team ,
i am getting this error:
(node:28132) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
at createError (D:\ocr-space\node_modules\ocr-space-api-wrapper\node_modules\axios\lib\core\createError.js:16:15)
at settle (D:\ocr-space\node_modules\ocr-space-api-wrapper\node_modules\axios\lib\core\settle.js:17:12)
at IncomingMessage.handleStreamEnd (D:\ocr-space\node_modules\ocr-space-api-wrapper\node_modules\axios\lib\adapters\http.js:244:11)
at IncomingMessage.emit (events.js:194:15)
at endReadableNT (_stream_readable.js:1125:12)
at process._tickCallback (internal/process/next_tick.js:63:19)

Can this package work with a Blob as an input?

I'm trying to send images to the api that have been uploaded by the user directly. So i dont have a remote url, a local url, or a base64 image. All i have is the image Blob.

Is this possible to do with this pkg?

Better TypeScript support

The options parameter and the return type of the function ocrSpace() are both any now.

// index.ts
declare module "ocr-space-api-wrapper" {
    export function ocrSpace(input: string, options?: any): any;
}

Can you make the type definition more accurate? Thank you very much!

How did you overcome the error "Parameter name 'file' is invalid?

Hi there, I'm implementing my own package for the OCR Space api, but whenever I made a request I get the following error:

{
  "OCRExitCode": 99,
  "IsErroredOnProcessing": true,
  "ErrorMessage": [
    "Parameter name 'file' is invalid. Valid parameters: apikey,url,language,isoverlayrequired,base64image,iscreatesearchablepdf,issearchablepdfhidetextlayer,filetype,addressparsing,scale,detectorientation,istable,ocrengine,detectcheckbox,checkboxtemplate,checkboxtemplateregex",
    "Please check if you need to URL encode the URL passed in request parameters."
  ],
  "ProcessingTimeInMilliseconds": "2652
}

Have you faced it before? If that where the case, what did you do? Thanks in advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.