davideviolante / ocr-space-api-wrapper Goto Github PK
View Code? Open in Web Editor NEWNode.js wrapper for ocr.space APIs.
Home Page: https://ocr.space/ocrapi
License: MIT License
Node.js wrapper for ocr.space APIs.
Home Page: https://ocr.space/ocrapi
License: MIT License
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!
I am mostly getting this error: Request timed out while waiting for the results
. Can I fix it by any chance?
I get this error almost half of the time: Cannot read property TextOverlay of undefined
.
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)
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?
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!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.