Skip to main content

Rule Example: How to detect sensitive content onscreen, inside an image or video

A
Written by Arick Disilva

Detecting Onscreen Content With a OCR Rule

You can use OCR (Optical Character Recognition) rules to detect text on screen, in any applications or websites even in images or videos. The sample rule below uses a Regular Expression to detect UK driver’s license numbers on screen:

how-to-ocr-rule.gif

If you're unfamiliar with the steps to create a rule, please first refer to the How to create a behavior policy article to create a policy and then How to create a behavior rule for the steps to create a rule inside a new or existing policy.

1. Create an Activity rule.

2. Select OCR under the types of activities.

3. Select the user(s) the rule will apply to.

4. Specify the text you want to detect in the On-screen text field. You can use keywords, regular expressions, or a Shared List. In this example, we used a regular expression.

5. You can specify a Notify action to be triggered when the rule is violated.

Did this answer your question?