Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
romanmazeev authored Jan 27, 2025
1 parent 6c97a2d commit 18448ae
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,9 @@ 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 which returns the `MRZResult` structure with all the necessary data.
```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)
```
## Example
### TD1 (ID card)
Expand Down

0 comments on commit 18448ae

Please sign in to comment.