Optical character recognition (OCR)

Important

Due to the Azure Media Services retirement announcement, Azure AI Video Indexer announces Azure AI Video Indexer features adjustments. See Changes related to Azure Media Service (AMS) retirement to understand what this means for your Azure AI Video Indexer account. See the Preparing for AMS retirement: VI update and migration guide.

Optical character recognition (OCR) is an Azure AI Video Indexer AI feature that extracts text from images like pictures, street signs and products in media files to create insights.

OCR currently extracts insights from printed and handwritten text in over 50 languages, including from an image with text in multiple languages. For more information, see OCR supported languages.

Prerequisites

Review transparency note overview

View the insight

When working on the website the insights are displayed in the Timeline tab. They can also be generated in a categorized list in a JSON file that includes the ID, transcribed text, duration and confidence score.

To see the instances on the website, do the following:

  1. Go to View and check OCR.
  2. Select Timeline to display the extracted text.

Insights can also be generated in a categorized list in a JSON file that includes the ID, language, text together with each instance’s confidence score.

To see the insights in a JSON file, do the following:

  1. Select Download -> Insight (JSON).

  2. Copy the ocr element, under insights, and paste it into your online JSON viewer.

    "ocr": [
        {
          "id": 1,
          "text": "2017 Ruler",
          "confidence": 0.4365,
          "left": 901,
          "top": 3,
          "width": 80,
          "height": 23,
          "angle": 0,
          "language": "en-US",
          "instances": [
            {
              "adjustedStart": "0:00:45.5",
              "adjustedEnd": "0:00:46",
              "start": "0:00:45.5",
              "end": "0:00:46"
            },
            {
              "adjustedStart": "0:00:55",
              "adjustedEnd": "0:00:55.5",
              "start": "0:00:55",
              "end": "0:00:55.5"
            }
          ]
        },
        {
          "id": 2,
          "text": "2017 Ruler postppu - PowerPoint",
          "confidence": 0.4712,
          "left": 899,
          "top": 4,
          "width": 262,
          "height": 48,
          "angle": 0,
          "language": "en-US",
          "instances": [
            {
              "adjustedStart": "0:00:44.5",
              "adjustedEnd": "0:00:45",
              "start": "0:00:44.5",
              "end": "0:00:45"
            }
          ]
        },
    

To download the JSON file via the API, use the Azure AI Video Indexer developer portal.

OCR components

During the OCR procedure, text images in a media file are processed, as follows:

Component Definition
Source file The user uploads the source file for indexing.
Read model Images are detected in the media file and text is then extracted and analyzed by Azure AI services.
Get read results model The output of the extracted text is displayed in a JSON file.
Confidence value The estimated confidence level of each word is calculated as a range of 0 to 1. The confidence score represents the certainty in the accuracy of the result. For example, an 82% certainty will be represented as an 0.82 score.

For more information, see OCR technology.

Example use cases

  • Deep searching media footage for images with signposts, street names or car license plates, for example, in law enforcement.
  • Extracting text from images in media files and then translating it into multiple languages in labels for accessibility, for example in media or entertainment.
  • Detecting brand names in images and tagging them for translation purposes, for example in advertising and branding.
  • Extracting text in images that is then automatically tagged and categorized for accessibility and future usage, for example to generate content at a news agency.
  • Extracting text in warnings in online instructions and then translating the text to comply with local standards, for example, e-learning instructions for using equipment.

Considerations and limitations when choosing a use case

  • Video Indexer has an OCR limit of 50,000 words per indexed video. Once the limit has been reached, no additional OCR results are generated.
  • Carefully consider the accuracy of the results, to promote more accurate detections, check the quality of the image, low quality images might impact the detected insights.
  • Carefully consider when using for law enforcement that OCR can potentially misread or not detect parts of the text. To ensure fair and high-quality decisions, combine OCR-based automation with human oversight.
  • When extracting handwritten text, avoid using the OCR results of signatures that are hard to read for both humans and machines. A better way to use OCR is to use it for detecting the presence of a signature for further analysis.
  • Don't use OCR for decisions that may have serious adverse impacts. Machine learning models that extract text can result in undetected or incorrect text output. Decisions based on incorrect output could have serious adverse impacts. Additionally, it's advisable to include human review of decisions that have the potential for serious impacts on individuals.

Learn more about OCR