> For the complete documentation index, see [llms.txt](https://docs.accurascan.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.accurascan.com/language/cordova/functions/ocr.md).

# OCR

### The method use to Start OCR scanning is

```
accura.startOcrWithCard(accuraConfs, countryID, cardID, cardName, cardType, function (results), function (error));
```

### *Parameter:*

**accuraConfs**: {'enableLogs':false} , **countryID**: Integer, **cardID**: Integer, **cardName**: String, **cardType**: Integer

### ***Response:***

**Success:** JSON String Response

**Error:** String

#### Example function:

```
function startOcrWithCard() {

     var accuraConfs = {};
     var cardSlected = cards[cardSelected.split('_')[0]];
     accura.startOcrWithCard(
         accuraConfs,
         countrySelectedForCard.split('_')[1],
         cardSlected.id,
         cardSlected.name,
         cardSlected.type,
         function (results) {
             //The response from the sdk
         }, function (error) {
             alert(error);
         })
}
```
