Skip to content

As a dev, I want to send to the frontend the default json data given by document intelligence when analysing an image. #220

@SamuelPelletierEvraire

Description

@SamuelPelletierEvraire

Description

When analysing an images document intelligence give a json that contain multiple type of data. We need to receive those data for a new feature that surround text on the image to help the user see what is on the label:

Here a demo I made for more precise detail.
Animation image

Two option possible :

Option 1:
Give the full document and frontend would handle it.

Option 2:
Give this format.
Format exemple:

{
		"pages": [
			{
				"pageNumber": 1,
				"angle": 0,
				"width": 1100,
				"height": 769,
				"unit": "pixel",
				"paragraphs": [
			{
				"spans": [
					{
						"offset": 0,
						"length": 96
					}
				],
				"boundingRegions": [
					{
						"pageNumber": 1,
						"polygon": [
							127,
							11,
							435,
							11,
							435,
							41,
							127,
							41
						]
					}
				],
				"content": "BLUE OUTLINE SHOWS LABEL/DIELINE SIZE Please review in Acrobat with \"Overprint preview\" enabled."
			},
			
			...
}

Here a full json exemple:
img_001.png.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Paused

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions