OCR for different interceptors is configured 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 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 the selected protocol for the specified event type.
For details, see "Configuring OCR Extractors".
| Информация |
|---|
| For distributed installation when you install Traffic Monitor on several servers, you should 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: iwtm restart
The table below lists interception channels for which OCR can apply. | Service | Event type | Protocol |
|---|
| Email | Email | POP3 SMTP IMAP MAPI NRPC | | Webmail | HTTP HTTPS | | Messenger | ICQ | OSCAR | | Skype | SKYPE | | XMPP | XMPP | | Internet activity | Web message | HTTP HTTPS | | File exchange | FTP | FTP | | External devices | - | | Cloud storages | HTTPS | | Printer and MFD | Print | - | | Storage | Crawler | - | | Recording media | Photo | - |
If the System is installed with the kickstart installerthe installer, both extractors are installed to the server end of the System. By default, ABBYY FineReader Engine 11 is used. Text extracted from images can be recognized with either ABBYY FineReader Engine 11 or Tesseract 4.1.1.Functional limitations of extractors are listed in the table below: Functionality | ABBYY FineReader Engine 11 | Tesseract 4.1.1 |
|---|
Recognition of image rotation angles
| 0(+/-20) , 90(+/-20), 180(+/-20) and 270(+/-20) degrees
| - | Recognition of colour images | + | - | Image correction
| + | - | Recommended image resolution | 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 avoid deviation from recommended image resolution when using ABBYY FineReader Engine 11 the parameter AutoOverwriteResolution (true by default) is used, able to specify the image resolution automatically. |
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 4.1.1: - 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 enable OCR only for cloud storage events: - Open the
/opt/iw/tm5/etc/config/bookworm/services.xml directory 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 them to /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.
ABBYY FineReader Engine 11 can operate in two modes: - balanced mode – provides the best quality of images processing (default mode). You can configure this mode user profile in the file etc/FRProfile.ini;
- fast mode – provides the fastest images processing, 64 pages can be loaded at a time while document synthesis. If required, the mode is to be configured manually.
The following options are enabled while Fast mode is on: - fast mode of page orientation detection (the quality lowers);
- standard analysis of page, no sample selection;
- ignoring the shadows;
- detecting tables during analysis;
- fast objects extraction (the quality lowers).
The following options are disabled while Fast mode is on: - balanced mode;
- processing images as photos;
- compressing images;
- using image binarization;
- detecting font parameters;
- removing garbage from image;
- removing texture from temporary image;
- detecting porous text;
- detecting whole text on image, including text within image;
- extracting whole text from image;
- detecting headlines;
- detecting footnotes;
- detecting table of contents;
- detecting running titles;
- detecting pages of document.
To activate the fast mode of document processing, in "ABBYYProfile" parameter of the configuration file image2text_fre.conf located in /opt/iw/tm5/etc directory, indicate the path to the file with user profile configuration "etc/FRProfile_fast.ini", then save the changes. | Предупреждение |
|---|
| Speed optimization of images processing cannot be applied for scanned copies of the schemes, location maps, monochrome images. |
|