# 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);
         })
}
```
