Skip to content

Commit

Permalink
Update read-postal-codes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynamsoft-Henry committed Oct 26, 2023
1 parent 43bf2c2 commit 41a8de3
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions programming/usecases/read-postal-codes.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,40 +115,40 @@ do{

* apply settings by calling method `InitSettingsFromFile`

<div class="sample-code-prefix template2"></div>
>- C++
>- Android
>- Objective-C
>- Swift
>
>
```c++
char szErrorMsg[256] = {0};
CCaptureVisionRouter* cvr = new CCaptureVisionRouter;
cvr->InitSettingsFromFile("PATH-TO-YOUR-SETTING-FILE", szErrorMsg, 256);
// more process here
```
>
```java
try {
// `cvr` is an instance of `CaptureVisionRouter`.
cvr.initSettingsFromFile("PATH-TO-YOUR-SETTING-FILE");
} catch (CaptureVisionRouterException e) {
e.printStackTrace();
}
```
>
```objc
NSError *error;
// `cvr` is an instance of `DSCaptureVisionRouter`.
[self.cvr initSettingsFromFile:@"PATH-TO-YOUR-SETTING-FILE" error:&error];
```
<div class="sample-code-prefix template2"></div>
>- C++
>- Android
>- Objective-C
>- Swift
>
```swift
do{
//`cvr` is an instance of `CaptureVisionRouter`.
try cvr.initSettingsFromFile("PATH-TO-YOUR-SETTING-FILE")
}catch{
// Add code to do when error occurs.
}
```
>
```c++
char szErrorMsg[256] = {0};
CCaptureVisionRouter* cvr = new CCaptureVisionRouter;
cvr->InitSettingsFromFile("PATH-TO-YOUR-SETTING-FILE", szErrorMsg, 256);
// more process here
```
>
```java
try {
// `cvr` is an instance of `CaptureVisionRouter`.
cvr.initSettingsFromFile("PATH-TO-YOUR-SETTING-FILE");
} catch (CaptureVisionRouterException e) {
e.printStackTrace();
}
```
>
```objc
NSError *error;
// `cvr` is an instance of `DSCaptureVisionRouter`.
[self.cvr initSettingsFromFile:@"PATH-TO-YOUR-SETTING-FILE" error:&error];
```
>
```swift
do{
//`cvr` is an instance of `CaptureVisionRouter`.
try cvr.initSettingsFromFile("PATH-TO-YOUR-SETTING-FILE")
}catch{
// Add code to do when error occurs.
}
```

0 comments on commit 41a8de3

Please sign in to comment.