OCR configuration for different interceptors is performed in the following configuration files: - warpd.conf – to enable OCR for analysis of intercepted images, in the
Warp section, set the value of the EnableOCR parameter to true; - sample_compiler.conf – to enable OCR for analysis of images loaded as sample documents, set the value of the
EnableOCR parameter to true.
In the file /opt/iw/tm5/etc/config-perm/bookworm/ocr_custom.xml, you can configure OCR for different interception channels: - at the level of a service. In this case, OCR configuration applies to the content of events received via protocols of this event types that belong to this service, if there were no specific OCR settings for these types of events or protocols;
- at the level of the event type for a particular service. In this case, OCR settings apply to the content of events received via protocols of this event type, provided that different OCR settings are not specified for these protocols;
- at the level of a protocol for a particular event type. In this case, OCR settings apply to the content of events received via selected protocol for the specified event type.
| Информация |
|---|
| For distributed installation when you install Traffic Monitor on several servers, you can specify individual OCR settings for each server. |
| Предупреждение |
|---|
| Settings specified at the protocol level have a higher priority than settings specified at the event type level. Settings specified at the event type level have a higher priority than settings specified at the service level. |
| Информация |
|---|
| If a new event type is registered by means of SDK, it will be processed with settings specified for the service the event type belongs to. If a new protocol is registered, it is processed with settings specified for the event type this protocol belongs to. |
After you have changed the files, run the following command: service iwtm restart The table below lists interception channels for which OCR can apply. If the System is installed with the kickstart installer, both extractors are installed to the server end of the System. By default, ABBYY FineReader Engine 11 is used. Functional limitations of extractors are listed in the table below:
Functionality
| ABBYY FineReader Engine 11 | Tesseract 3.0 |
|---|
Recognition of image rotation angles
| 0(+/-20) , 90(+/-20), 180(+/-20) and 270(+/-20) degrees
| - | Recognition of color images | + | - | Image correction
| + | - | Recommended image resoltion | 300dpi for text with a font size from 10pt 400-600dpi for text with a font size of 9pt and less | 300dpi for text with a font size from 10pt 400-600dpi for text with a font size of 9pt and less |
To start using ABBYY FineReader Engine 11: - Delete /opt/iw/tm5/bin/iw_image2text symlink.
- Create a symlink:
ln -s /opt/iw/tm5/bin/iw_image2text_fre /opt/iw/tm5/bin/iw_image2text
To replace ABBYY FineReader Engine 11 with Tesseract 3.0: - Delete /opt/iw/tm5/bin/iw_image2text symlink.
- Create a symlink:
ln -s /opt/iw/tm5/bin/iw_image2text_ts /opt/iw/tm5/bin/iw_image2text
To change size limit for images that can be sent: - Go to /opt/iw/tm5/etc/image2text_fre.conf directory (for FineReader Engine 11) or /opt/iw/tm5/etc/image2text_ts.conf directory (for Tesseract).
- Edit the
MaxSizeInKb (maximum size) and MinSizeInKb (minimum size) parameters. By default, their values are 1536 KB and 200 KB respectively.
To set up OCR only for cloud storage events: - Open the directory
/opt/iw/tm5/etc/config/bookworm/services.xml and find mnemo and key suitable for cloud storage. For example,
object_type mnemo="cloud_storage"
key="AA9DFB259F0DFEE040BADC95815E13A200000000"
- Copy these key and
mnemo and paste it in /opt/iw/tm5/etc/config-perm/bookworm/ocr_custom.xml directory.
If ABBYY FineReader Engine 11 is used as OCR extractor, you need to set up the ABBYY license. For this: - In the /opt/iw/tm5/etc/image2text_fre.conf configuration file, edit values of the fields as follows:
- enter serial number in the SerNum field;
- enter serial number in the Pwd field.
- Copy the license file (.LocalLicense format) to the /var/lib/ABBYY/SDK/11/Licenses / directory.
- Make sure that iwtm user can access the downloaded file.
- Restart the iw_warpd service.
|