Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
romanmazeev committed Jan 27, 2025
1 parent 6c97a2d commit 2ec89b1
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@ dependencies: [
]
```
## Usage
The parser is able to validate the MRZ string and parse the MRZ code. Let's start by initializing our parser.
To parse MRZ string use the `parse` static method of `MRZParser`.
The method takes a string with the MRZ code and a boolean value that indicates whether the OCR correction is enabled.
```swift
let parser = MRZParser()
```
For parsing, we use the `parse` method which returns the `MRZResult` structure with all the necessary data.
```swift
parser.parse(mrzString: mrzString)
MRZParser.parse(mrzString: mrzString, isOCRCorrectionEnabled: false)
```
## Example
### TD1 (ID card)
Expand Down

0 comments on commit 2ec89b1

Please sign in to comment.