What OCR is
Optical character recognition (OCR) is the method that finds letters in an image and converts them into text. A scanned contract, a photo of a whiteboard and a screenshot of a spreadsheet look like text to a person, but to a computer they are only pixels. OCR turns those pixels back into characters.
In data loss prevention the point is simple. Someone who wants to take sensitive data out of a company can paste it as a picture, and many checks based only on text never read it. OCR closes that gap, because the same rules that inspect files and messages can also inspect the text found inside images. It is one tool within a data loss prevention (DLP) program, not a separate product.
How OCR works in a DLP system
The steps below follow one image that could be used for data exfiltration through Anexet. The order depends on the settings, but the logic stays the same.
- 1
Capture the image
An image or PDF is intercepted on a channel that the policy covers.
- 2
Hand it to the index server
The Index Server passes the image to the Image Recognition Server and waits for the result.
- 3
Recognize the text
The engine cleans the image, for example by binarization, and reads the characters.
- 4
Apply the rules
The recognized text reaches the Central Server, where security rules can match it and raise an alert.
Engines and formats
Anexet includes the built-in Tesseract engine. ABBYY FineReader can be connected as an alternative, under its own license.
Choose the engine by the formats your staff actually send. The built-in engine reads JPEG, PNG, BMP and TIFF images, and it reads PDF files once the Ghostscript plugin is installed. ABBYY FineReader reads all of these in full and also covers DjVu files and every frame of a GIF.
What it looks like in Anexet
In the Administrator console, the Recognition tab of the Central Server holds the Text recognition switch, and the Image recognition settings dialog sets which sources, file sizes and formats are sent for recognition. In the client console, each intercepted image opens with a Picture tab for the original and a Recognized text tab for the characters the engine found, which is the text the rules work with. The same recognition is part of Anexet DLP.
1 / 2
Switching recognition on
Recognition is a setting, not a default. Four settings decide what gets read and how fast the queue fills up:
- Off by default: image and stamp recognition stay disabled until an administrator turns them on in the Central Server settings
- Per database: recognition can be turned off for a single database, even when it is on for the server
- Size and format: the file size and format ranges decide which files are sent for recognition
- Time limit: a document that runs past the maximum recognition time goes back into the queue
Where recognition goes wrong
Recognition fails in predictable ways, and most of the causes sit in the setup rather than in the engine. A poor scan gives poor text, and a full queue stops new images from being read at all.
A rule that matches text is only as good as the text it reads, so test the output on samples before you trust an alert.
- Assuming recognition is on when nobody switched it on in the Central Server
- Using one engine for every format, although PDF, DjVu and photos need different handling
- Letting the queue fill up: when it is full, the server stops accepting data and the backlog builds up on the Central Server
- Sending blurred or skewed scans without checking binarization, so the text comes out broken
Where to start
Start with the image formats your staff actually send, check which engine reads them, and enable recognition for those first.
Recognition is part of the Premium plan, so take that into account when you plan the rollout. The feature page sets out the scope: OCR, stamp and speech recognition.
A scanned page is still a document. Recognition is what lets the rules read it.
How Anexet handles this
Anexet reads text in intercepted images with its Image Recognition module, which is included in the Premium plan. Recognition runs on servers inside the customer's infrastructure, so the images and the text stay in the organization's environment.
Text in images
Reads characters from intercepted photos, scans, PDF and DjVu files, depending on the engine.
Rules for recognized content
Security rules can match the recognized text and raise an incident.
Picture and text views
Each intercepted image opens with the original and the recognized text on separate tabs.
Two engines
The built-in Tesseract engine, with ABBYY FineReader available under its own license.
Anexet DLP
Learn more