vignettes/example.Rmd
example.Rmd
To install the package from CRAN, type:
To get the latest development version from GitHub:
Next, load the package.
Your first task on loading the package should be to set the credentials - application ID and password. If you haven’t already, you can get this information http://ocrsdk.com/. Once you have the application ID and password, set it via the setapp
function.
## Name of Application: factbook
## No. of Pages Remaining: 99
## No. of Fields Remaining: 495
## Application Credits Expire on: 2015-08-28T00:00:00
## Type: Normal
List all the tasks – completed, in progress, queued etc. The function returns a data frame.
## Total No. of Tasks: 30
## No. of Finished Tasks: 22
## Total No. of Tasks: 28
## No. of Finished Tasks: 22
## No tasks in the application.
Deleting an already deleted task will result in an error.
Submit an Image for Processing
Note: I am uploading a sample image that Abbyy provides for free to test its software. You can find this image in the data folder of the package.
## Status of the task: Submitted
## Task ID: 4c088272-003d-4fc7-b0f7-b805495c4466
Process an Image
## Status of the task: Queued
## Task ID: 650d4cd3-964c-40c6-9118-97eecc099b34
Process a Remote Image
processRemoteImage(img_url="https://raw.githubusercontent.com/soodoku/abbyyR/master/inst/extdata/t1.png")
## Status of the task: Submitted
## Task ID: 7f5112b8-6541-435e-86c4-dc978a45749e
Process Document
## Total No. of Tasks: 33
## No. of Finished Tasks: 23
## Status of the task: Queued
Get Results
Go through all the finished tasks and download all the data.