diff --git a/programming/usecases/read-postal-codes.md b/programming/usecases/read-postal-codes.md index b7ef309e..766a5734 100644 --- a/programming/usecases/read-postal-codes.md +++ b/programming/usecases/read-postal-codes.md @@ -115,40 +115,40 @@ do{ * apply settings by calling method `InitSettingsFromFile` -
- >- 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]; - ``` +
+ >- 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. +} +```