Is there a way to scrape text from Images based on postion?

I want to scrape text from images but there is no static text (Which I can use as an anchor),
so the only thing coming to my mind is to scrape text based on the position.

Is it possible?

Hi @Sami_Rajput

Try using the Computer vision activities, which helps you out to scrap the data based on position in the image.

Hope it helps!!

@mkankatala thanks, i’ll try

1 Like

Scraping text from images based on the position is a common technique when dealing with images that don’t have easily recognizable static text. In UiPath, you can achieve this using the “Data Scraping” tool, which allows you to extract structured data from a region on the screen or an image.

Here’s how you can scrape text from images based on position using UiPath:

  1. Open the Image in an Application: You’ll need to have the image displayed on your screen or within an application window that UiPath can access.

  2. Use Data Scraping:

    • Open UiPath Studio and create a new Sequence.
    • Drag and drop the “Data Scraping” activity onto the workflow.
    • Indicate the first element (top-left corner) of the region from which you want to extract text. UiPath will highlight the area.
    • Drag the highlighting box to cover the area containing the text you want to extract.
    • Once the region is defined, UiPath will display the extracted text in a preview window.
    • If the extraction looks correct, click on “Next” to proceed.
  3. Configure Columns:

    • In the “Configure Columns” step, you can specify the columns for your extracted data. You can assign a name to each column and choose the data type (usually text).
    • Click on “Finish” once you’ve configured your columns.
  4. Choose Output:

    • The extracted data will be stored in a DataTable variable. You can either create a new DataTable or use an existing one.
    • Once the scraping is complete, you can use the extracted data in subsequent activities.
  5. Process the Extracted Data:

    • You can loop through the DataTable using a “For Each Row” activity to process each row of extracted data.
    • Use the data for your specific automation tasks or validations.

Keep in mind that text extraction based on position can be sensitive to changes in the image layout or resolution. If the image layout changes, you may need to update the extraction region accordingly. Additionally, the accuracy of text extraction can vary depending on factors like image quality and font size.