Ask AI
Skip to main content

Convert image to text

Function: Convert image to text

This function allows you to extract text from an image file. If you have an image that contains readable text, this action will process it and provide you with the extracted text, which you can then use in other parts of your application. It's perfect for digitizing documents, notes, or any image containing important textual information.

Input

  • Media ID of the image file: The unique identifier for the image file stored in your platform's media library that you want to convert into text.

Output

  • Result: The name of the variable where the extracted text from the image will be stored. This variable will contain the full text content found within the image.

Execution Flow

Real-Life Examples

Example 1: Extracting text from a scanned invoice

  • Scenario: A user uploads a scanned image of an invoice to the platform. You want to automatically extract the invoice number and total amount to update a database record.
  • Inputs:
    • Media ID of the image file: invoice_scan_20231026_A1B2C3D4 (This would be the unique ID of the uploaded invoice image from your media library)
  • Result: The action processes the image, and the extracted text (e.g., "Invoice Number: INV-2023-001, Total: $150.00, Date: 26/10/2023...") is stored in the Result variable. You can then use other actions to parse this text and extract specific data points like the invoice number or total.

Example 2: Digitizing handwritten notes

  • Scenario: A student takes a picture of their handwritten class notes. They want to convert these notes into editable text for easier organization, searching, and sharing.
  • Inputs:
    • Media ID of the image file: student_notes_math_chapter5_IMG_001 (The ID of the image containing the handwritten notes)
  • Result: The action analyzes the image, converts the handwritten text into digital text (e.g., "Quadratic equations are important. Formula: ax^2 + bx + c = 0..."), and stores it in the Result variable. This text can then be saved to a document or displayed in a text field.

Example 3: Capturing text from a product label

  • Scenario: An e-commerce business wants to quickly add product descriptions to their online store by taking photos of product labels.
  • Inputs:
    • Media ID of the image file: product_label_coffee_beans_P12345 (The ID of the image showing the coffee bean product label)
  • Result: The action extracts all visible text from the product label (e.g., "Premium Arabica Coffee Beans, Net Weight: 250g, Ingredients: 100% Arabica, Roasted in Italy..."), making it available in the Result variable. This extracted text can then be used to automatically populate a product description field in your e-commerce application.