Upload 3 files
Browse files- finetune_layoutlmv3.ipynb +0 -0
- layoutlmv3.py +136 -0
- project-3-at-2024-03-28-01-25-f6efed64.json +1 -0
finetune_layoutlmv3.ipynb
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
layoutlmv3.py
ADDED
|
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import json
|
| 2 |
+
import os
|
| 3 |
+
import ast
|
| 4 |
+
from pathlib import Path
|
| 5 |
+
import datasets
|
| 6 |
+
from PIL import Image
|
| 7 |
+
import pandas as pd
|
| 8 |
+
|
| 9 |
+
logger = datasets.logging.get_logger(__name__)
|
| 10 |
+
_CITATION = """\
|
| 11 |
+
@article{,
|
| 12 |
+
title={},
|
| 13 |
+
author={},
|
| 14 |
+
journal={},
|
| 15 |
+
year={},
|
| 16 |
+
volume={}
|
| 17 |
+
}
|
| 18 |
+
"""
|
| 19 |
+
_DESCRIPTION = """\
|
| 20 |
+
This is a sample dataset for training layoutlmv3 model on custom annotated data.
|
| 21 |
+
"""
|
| 22 |
+
|
| 23 |
+
def load_image(image_path):
|
| 24 |
+
image = Image.open(image_path).convert("RGB")
|
| 25 |
+
w, h = image.size
|
| 26 |
+
return image, (w,h)
|
| 27 |
+
|
| 28 |
+
def normalize_bbox(bbox, size):
|
| 29 |
+
return [
|
| 30 |
+
int(1000 * bbox[0] / size[0]),
|
| 31 |
+
int(1000 * bbox[1] / size[1]),
|
| 32 |
+
int(1000 * bbox[2] / size[0]),
|
| 33 |
+
int(1000 * bbox[3] / size[1]),
|
| 34 |
+
]
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
_URLS = []
|
| 38 |
+
|
| 39 |
+
'''Edit your working directory folder path here if required.
|
| 40 |
+
If this file is in the same folder as the "layoutlmv3" folder keep it as it is.
|
| 41 |
+
'''
|
| 42 |
+
data_path = r'./'
|
| 43 |
+
|
| 44 |
+
class DatasetConfig(datasets.BuilderConfig):
|
| 45 |
+
"""BuilderConfig for InvoiceExtraction Dataset"""
|
| 46 |
+
def __init__(self, **kwargs):
|
| 47 |
+
"""BuilderConfig for InvoiceExtraction Dataset.
|
| 48 |
+
Args:
|
| 49 |
+
**kwargs: keyword arguments forwarded to super.
|
| 50 |
+
"""
|
| 51 |
+
super(DatasetConfig, self).__init__(**kwargs)
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
class InvoiceExtraction(datasets.GeneratorBasedBuilder):
|
| 55 |
+
BUILDER_CONFIGS = [
|
| 56 |
+
DatasetConfig(name="InvoiceExtraction", version=datasets.Version("1.0.0"), description="InvoiceExtraction dataset"),
|
| 57 |
+
]
|
| 58 |
+
|
| 59 |
+
def _info(self):
|
| 60 |
+
return datasets.DatasetInfo(
|
| 61 |
+
description=_DESCRIPTION,
|
| 62 |
+
features=datasets.Features(
|
| 63 |
+
{
|
| 64 |
+
"id": datasets.Value("string"),
|
| 65 |
+
"tokens": datasets.Sequence(datasets.Value("string")),
|
| 66 |
+
"bboxes": datasets.Sequence(datasets.Sequence(datasets.Value("int64"))),
|
| 67 |
+
"ner_tags": datasets.Sequence(
|
| 68 |
+
datasets.features.ClassLabel(
|
| 69 |
+
names = ['num_facture','date_facture','fournisseur','client','mat_client','mat_fournisseur','tva','pourcentage_tva','remise','pourcentage_remise','timbre','fodec','ttc','devise','net_ht'] #Enter the list of labels that you have here.
|
| 70 |
+
)
|
| 71 |
+
),
|
| 72 |
+
"image_path": datasets.Value("string"),
|
| 73 |
+
"image": datasets.features.Image()
|
| 74 |
+
}
|
| 75 |
+
),
|
| 76 |
+
supervised_keys=None,
|
| 77 |
+
citation=_CITATION,
|
| 78 |
+
homepage="",
|
| 79 |
+
)
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def _split_generators(self, dl_manager):
|
| 85 |
+
"""Returns SplitGenerators."""
|
| 86 |
+
"""Uses local files located with data_dir"""
|
| 87 |
+
dest = os.path.join(data_path, 'layoutlmv3')
|
| 88 |
+
|
| 89 |
+
return [
|
| 90 |
+
datasets.SplitGenerator(
|
| 91 |
+
name=datasets.Split.TRAIN, gen_kwargs={"filepath": os.path.join(dest, "train.txt"), "dest": dest}
|
| 92 |
+
),
|
| 93 |
+
datasets.SplitGenerator(
|
| 94 |
+
name=datasets.Split.TEST, gen_kwargs={"filepath": os.path.join(dest, "test.txt"), "dest": dest}
|
| 95 |
+
),
|
| 96 |
+
]
|
| 97 |
+
|
| 98 |
+
def _generate_examples(self, filepath, dest):
|
| 99 |
+
|
| 100 |
+
df = pd.read_csv(os.path.join(dest, 'class_list.txt'), delimiter=',', header=None)
|
| 101 |
+
id2labels = dict(zip(df[0].tolist(), df[1].tolist()))
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
logger.info("⏳ Generating examples from = %s", filepath)
|
| 105 |
+
|
| 106 |
+
item_list = []
|
| 107 |
+
with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
|
| 108 |
+
for line in f:
|
| 109 |
+
item_list.append(line.rstrip('\n\r'))
|
| 110 |
+
print(item_list)
|
| 111 |
+
for guid, fname in enumerate(item_list):
|
| 112 |
+
print(fname)
|
| 113 |
+
data = ast.literal_eval(fname)
|
| 114 |
+
image_path = os.path.join(dest, data['file_name'])
|
| 115 |
+
image, size = load_image(image_path)
|
| 116 |
+
boxes = data['bboxes']
|
| 117 |
+
|
| 118 |
+
text = data['tokens']
|
| 119 |
+
label = data['ner_tags']
|
| 120 |
+
|
| 121 |
+
#print(boxes)
|
| 122 |
+
#for i in boxes:
|
| 123 |
+
# print(i)
|
| 124 |
+
boxes = [normalize_bbox(box, size) for box in boxes]
|
| 125 |
+
flag=0
|
| 126 |
+
#print(image_path)
|
| 127 |
+
for i in boxes:
|
| 128 |
+
#print(i)
|
| 129 |
+
for j in i:
|
| 130 |
+
if j>1000:
|
| 131 |
+
flag+=1
|
| 132 |
+
#print(j)
|
| 133 |
+
pass
|
| 134 |
+
if flag>0: print(image_path)
|
| 135 |
+
|
| 136 |
+
yield guid, {"id": str(guid), "tokens": text, "bboxes": boxes, "ner_tags": label, "image_path": image_path, "image": image}
|
project-3-at-2024-03-28-01-25-f6efed64.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
[{"id":7,"annotations":[{"id":2,"completed_by":1,"result":[{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":46.517049002314835,"y":9.071093716035499,"width":45.36690218632353,"height":3.3427553476296,"rotation":0,"rectanglelabels":["fournisseur"]},"id":"h5Hj7j4dwX","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":67.60307396215535,"y":20.002807150175546,"width":15.079702698552609,"height":1.8972395216276112,"rotation":0,"rectanglelabels":["mat_fournisseur"]},"id":"PY2qpIDHFk","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":22.87514222916032,"y":26.326938888934247,"width":3.1948522666424957,"height":1.4455158260019942,"rotation":0,"rectanglelabels":["num_facture"]},"id":"2oSA95P-mn","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":22.61955404782892,"y":28.314523149686988,"width":10.351321343921704,"height":1.4455158260019871,"rotation":0,"rectanglelabels":["date_facture"]},"id":"7Tl1yERqjz","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":67.85866214348675,"y":30.84417584519047,"width":23.64190677315453,"height":2.8910316520039743,"rotation":0,"rectanglelabels":["client"]},"id":"Vq9rwDkMuw","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":75.27071940209737,"y":38.433133931700915,"width":14.312938154558395,"height":1.8068947825024892,"rotation":0,"rectanglelabels":["mat_client"]},"id":"kjEqOFTcnp","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":87.79454028733596,"y":42.67933667058176,"width":4.089410901302401,"height":1.8972395216276112,"rotation":0,"rectanglelabels":["devise"]},"id":"ArJ_xqZK-E","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":45.75028445832064,"y":58.21863180010316,"width":6.134116351953594,"height":1.806894782502475,"rotation":0,"rectanglelabels":["timbre"]},"id":"TZr9DPzMyQ","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":25.558818133140015,"y":58.128287060978025,"width":6.006322261287913,"height":1.9875842607527403,"rotation":0,"rectanglelabels":["pourcentage_tva"]},"id":"ze189byr1F","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":35.52675720506463,"y":57.76690810447752,"width":8.562204074601901,"height":2.5296526955034935,"rotation":0,"rectanglelabels":["tva"]},"id":"6GioltneLL","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":76.03748394609157,"y":57.947597582727774,"width":8.689998165267596,"height":1.9875842607527474,"rotation":0,"rectanglelabels":["ttc"]},"id":"rp-IX1nFVe","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":14.82411451722121,"y":58.58001075660365,"width":8.56220407460191,"height":1.5358605651271162,"rotation":0,"rectanglelabels":["net_ht"]},"id":"PEBhIyTJ7g","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"}],"was_cancelled":false,"ground_truth":false,"created_at":"2024-03-27T01:23:30.270718Z","updated_at":"2024-03-27T01:23:30.270718Z","draft_created_at":"2024-03-27T01:20:19.872555Z","lead_time":237.664,"prediction":{},"result_count":0,"unique_id":"a52af0cc-efad-4cb7-aa50-24a1609e1ba2","import_id":null,"last_action":null,"task":7,"project":3,"updated_by":1,"parent_prediction":null,"parent_annotation":null,"last_created_by":null}],"file_upload":"0d8f5eea-HFSA_41_doc._2100000427-page-00001.jpg","drafts":[],"predictions":[],"data":{"image":"\/data\/upload\/3\/0d8f5eea-HFSA_41_doc._2100000427-page-00001.jpg"},"meta":{},"created_at":"2024-03-27T01:15:36.096507Z","updated_at":"2024-03-27T01:23:30.318405Z","inner_id":1,"total_annotations":1,"cancelled_annotations":0,"total_predictions":0,"comment_count":0,"unresolved_comment_count":0,"last_comment_updated_at":null,"project":3,"updated_by":1,"comment_authors":[]},{"id":8,"annotations":[{"id":3,"completed_by":1,"result":[{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":16.16595246921106,"y":3.3788932432796512,"width":30.926169941099428,"height":5.565235930107659,"rotation":0,"rectanglelabels":["fournisseur"]},"id":"qWW76mjaJ5","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":16.447099468675606,"y":14.409985890457335,"width":19.11799596358873,"height":2.086963473790373,"rotation":0,"rectanglelabels":["num_facture"]},"id":"nEskXiTRpG","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":11.386453478313879,"y":16.795087003360617,"width":8.715556983400749,"height":2.385101112903282,"rotation":0,"rectanglelabels":["date_facture"]},"id":"RhGcUBDGfd","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":57.494561390498475,"y":17.88825834677462,"width":21.648318958769593,"height":1.7888258346774677,"rotation":0,"rectanglelabels":["client"]},"id":"Yx0QQ4vOq4","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":28.11469994645402,"y":37.664721741264344,"width":8.012689484739393,"height":2.186342686828013,"rotation":0,"rectanglelabels":["tva"]},"id":"WHbRXTwFIs","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":16.306525968943333,"y":37.96285938037725,"width":4.920072490629451,"height":1.7888258346774606,"rotation":0,"rectanglelabels":["pourcentage_tva"]},"id":"KWyVuh0O0f","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":43.015490918074654,"y":38.26099701949017,"width":5.341792989826267,"height":1.4906881955645446,"rotation":0,"rectanglelabels":["timbre"]},"id":"to2PPpCDyg","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":57.213414391033936,"y":37.86348016733962,"width":9.418424482062093,"height":1.888205047715097,"rotation":0,"rectanglelabels":["ttc"]},"id":"e1KtfcHJe3","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":43.99950541620055,"y":44.91940429301183,"width":5.34179298982626,"height":2.0869634737903695,"rotation":0,"rectanglelabels":["devise"]},"id":"dDGOVU_vrO","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"}],"was_cancelled":false,"ground_truth":false,"created_at":"2024-03-27T01:25:30.174425Z","updated_at":"2024-03-27T01:25:30.174425Z","draft_created_at":"2024-03-27T01:24:02.313773Z","lead_time":119.634,"prediction":{},"result_count":0,"unique_id":"ca6777fa-63c4-4604-9a93-8588efa66155","import_id":null,"last_action":null,"task":8,"project":3,"updated_by":1,"parent_prediction":null,"parent_annotation":null,"last_created_by":null}],"file_upload":"6b4263f1-California_GYM_FAC-23CGY-ADM001060_doc._2100000433-page-00001.jpg","drafts":[],"predictions":[],"data":{"image":"\/data\/upload\/3\/6b4263f1-California_GYM_FAC-23CGY-ADM001060_doc._2100000433-page-00001.jpg"},"meta":{},"created_at":"2024-03-27T01:15:36.096507Z","updated_at":"2024-03-27T01:25:30.222093Z","inner_id":2,"total_annotations":1,"cancelled_annotations":0,"total_predictions":0,"comment_count":0,"unresolved_comment_count":0,"last_comment_updated_at":null,"project":3,"updated_by":1,"comment_authors":[]},{"id":9,"annotations":[{"id":4,"completed_by":1,"result":[{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":38.602205657581564,"y":9.980654365369865,"width":24.14763525716556,"height":3.7277142810417576,"rotation":0,"rectanglelabels":["fournisseur"]},"id":"Csc5igOodO","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":78.73489523991306,"y":17.436082927453377,"width":11.053495012082834,"height":1.923981564408649,"rotation":0,"rectanglelabels":["date_facture"]},"id":"Z1cQ-O0r3u","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":17.515538249915867,"y":23.568774164005944,"width":18.195753327582498,"height":2.0442304121841914,"rotation":0,"rectanglelabels":["client"]},"id":"KT06Re5CoM","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":25.84817295133215,"y":25.132009185087973,"width":16.835323172249236,"height":1.5632350210820327,"rotation":0,"rectanglelabels":["mat_client"]},"id":"tRZPf9IklK","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":11.563656320332804,"y":29.821714248334054,"width":20.916613638249046,"height":2.7657234988374313,"rotation":0,"rectanglelabels":["num_facture"]},"id":"kk4kA46qPE","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":64.11027107008039,"y":69.14308747093581,"width":11.393602550916157,"height":2.0442304121842056,"rotation":0,"rectanglelabels":["net_ht"]},"id":"3KGiGZDcTx","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":78.73489523991306,"y":78.76299529297906,"width":5.611774390749744,"height":2.645474651061889,"rotation":0,"rectanglelabels":["devise"]},"id":"ZhuWxL3rx0","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":15.985054325165935,"y":71.42781557867109,"width":3.741182927166493,"height":1.202488477755395,"rotation":0,"rectanglelabels":["pourcentage_tva"]},"id":"cRn7rDulJ4","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":63.2600022229971,"y":71.30756673089554,"width":9.863118626166212,"height":1.2024884777554092,"rotation":0,"rectanglelabels":["tva"]},"id":"Dj4JUoxBCY","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":67.17123891958025,"y":72.87080175197758,"width":6.462043237833058,"height":1.4429861733064797,"rotation":0,"rectanglelabels":["timbre"]},"id":"_ngiGpHCMT","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1241,"original_height":1755,"image_rotation":0,"value":{"x":63.94021730066374,"y":74.67453446861069,"width":10.203226164999528,"height":2.0442304121841914,"rotation":0,"rectanglelabels":["ttc"]},"id":"hnyTG4i9mu","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"}],"was_cancelled":false,"ground_truth":false,"created_at":"2024-03-27T01:27:10.129534Z","updated_at":"2024-03-27T01:27:10.129534Z","draft_created_at":"2024-03-27T01:25:48.636596Z","lead_time":99.645,"prediction":{},"result_count":0,"unique_id":"dce2fdf7-32ce-417e-a5c1-8fe9007b730c","import_id":null,"last_action":null,"task":9,"project":3,"updated_by":1,"parent_prediction":null,"parent_annotation":null,"last_created_by":null}],"file_upload":"8d20e66c-Delta_Sport_762022_doc2100000287-page-00001.jpg","drafts":[],"predictions":[],"data":{"image":"\/data\/upload\/3\/8d20e66c-Delta_Sport_762022_doc2100000287-page-00001.jpg"},"meta":{},"created_at":"2024-03-27T01:15:36.096507Z","updated_at":"2024-03-27T01:27:10.176649Z","inner_id":3,"total_annotations":1,"cancelled_annotations":0,"total_predictions":0,"comment_count":0,"unresolved_comment_count":0,"last_comment_updated_at":null,"project":3,"updated_by":1,"comment_authors":[]},{"id":10,"annotations":[{"id":5,"completed_by":1,"result":[{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":14.848072561780151,"y":1.639757015121008,"width":16.394746786965584,"height":2.077025552486609,"rotation":0,"rectanglelabels":["fournisseur"]},"id":"BNfVt1kdLZ","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":35.41883975674641,"y":15.523033076478871,"width":12.682728646520545,"height":2.9515626272178146,"rotation":0,"rectanglelabels":["num_facture"]},"id":"bihpx8NGPU","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":64.18698034519545,"y":5.465856717070026,"width":13.456065759113258,"height":2.7329283585350135,"rotation":0,"rectanglelabels":["date_facture"]},"id":"qccy5TLv0h","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":64.80565003526964,"y":11.150347702822854,"width":27.06679894074506,"height":3.170196895900613,"rotation":0,"rectanglelabels":["client"]},"id":"g2UU-s-8m2","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":71.1470143585299,"y":18.693229972379488,"width":15.002739984298685,"height":2.4049769555108114,"rotation":0,"rectanglelabels":["mat_client"]},"id":"GHw_Xlgs_z","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":87.38709372297694,"y":38.69826555685578,"width":6.496031745778808,"height":2.07702555248661,"rotation":0,"rectanglelabels":["tva"]},"id":"dNbyvrPUcw","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":85.68575207527297,"y":35.74670292963797,"width":8.197373393482778,"height":2.2956598211694086,"rotation":0,"rectanglelabels":["net_ht"]},"id":"NMYvMy4MWt","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":86.14975434282859,"y":46.569099229436624,"width":7.733371125927164,"height":1.8583912838038046,"rotation":0,"rectanglelabels":["ttc"]},"id":"5QBKR8UHj6","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":88.3150982580882,"y":41.9777795870978,"width":5.568027210667552,"height":2.2956598211694086,"rotation":0,"rectanglelabels":["timbre"]},"id":"Se3jUOvhtn","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1239,"original_height":1753,"image_rotation":0,"value":{"x":17.322751322076847,"y":52.47222448387225,"width":4.949357520593381,"height":1.6397570151210061,"rotation":0,"rectanglelabels":["devise"]},"id":"FBRRK49vmb","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"}],"was_cancelled":false,"ground_truth":false,"created_at":"2024-03-27T01:28:39.160611Z","updated_at":"2024-03-27T01:28:39.160611Z","draft_created_at":"2024-03-27T01:27:30.069621Z","lead_time":88.758,"prediction":{},"result_count":0,"unique_id":"ae27cdb7-5826-41ad-9ec3-fcd06dbb96c7","import_id":null,"last_action":null,"task":10,"project":3,"updated_by":1,"parent_prediction":null,"parent_annotation":null,"last_created_by":null}],"file_upload":"227fe39e-12043-0101.02-LAC_Rent_a_Car-Approved-page-00001.jpg","drafts":[],"predictions":[],"data":{"image":"\/data\/upload\/3\/227fe39e-12043-0101.02-LAC_Rent_a_Car-Approved-page-00001.jpg"},"meta":{},"created_at":"2024-03-27T01:15:36.096507Z","updated_at":"2024-03-27T01:28:39.207102Z","inner_id":4,"total_annotations":1,"cancelled_annotations":0,"total_predictions":0,"comment_count":0,"unresolved_comment_count":0,"last_comment_updated_at":null,"project":3,"updated_by":1,"comment_authors":[]},{"id":11,"annotations":[{"id":6,"completed_by":1,"result":[{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":30.276720372336342,"y":25.492755728414597,"width":8.334602799126294,"height":3.4872165854906747,"rotation":0,"rectanglelabels":["num_facture"]},"id":"InZ3uIVKwe","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":30.106626437660296,"y":29.941963096109596,"width":11.056105753943044,"height":2.4049769555108114,"rotation":0,"rectanglelabels":["date_facture"]},"id":"YX3BFLC37M","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":17.519675271632828,"y":23.568774164005944,"width":14.968266251492125,"height":1.5632350210820292,"rotation":0,"rectanglelabels":["mat_client"]},"id":"_8FTOWtHu6","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":10.715917884590953,"y":12.024884777554053,"width":27.895405286871686,"height":1.3227373255309498,"rotation":0,"rectanglelabels":["client"]},"id":"XCEAp0RGjX","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":10.375730015238858,"y":3.1264700421640543,"width":25.51409020140703,"height":1.803732716633108,"rotation":0,"rectanglelabels":["fournisseur"]},"id":"qQPnShW6Sd","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":85.04696733802342,"y":46.29580639358311,"width":4.082254432225142,"height":1.5632350210820292,"rotation":0,"rectanglelabels":["devise"]},"id":"6d6tApftPd","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":78.92358568968574,"y":52.187999934584596,"width":7.994414929774209,"height":1.8037327166331067,"rotation":0,"rectanglelabels":["net_ht"]},"id":"aPGtsA9-qT","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":78.92358568968574,"y":58.32069117113716,"width":7.994414929774209,"height":1.442986173306494,"rotation":0,"rectanglelabels":["ttc"]},"id":"I4q8A1BMvt","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":82.49555831788274,"y":56.75745615005513,"width":4.5925362362532525,"height":1.082239629979881,"rotation":0,"rectanglelabels":["timbre"]},"id":"m8xbhGx-fZ","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":63.211857427839625,"y":54.68248475592716,"width":3.1422630038694095,"height":1.4809601386537778,"rotation":0,"rectanglelabels":["pourcentage_tva"]},"id":"2d6YQ4xJAa","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"},{"original_width":1240,"original_height":1754,"image_rotation":0,"value":{"x":80.93072936632547,"y":54.55907141103935,"width":6.284526007738819,"height":1.6043734835415933,"rotation":0,"rectanglelabels":["tva"]},"id":"4rygAIzvlR","from_name":"label","to_name":"image","type":"rectanglelabels","origin":"manual"}],"was_cancelled":false,"ground_truth":false,"created_at":"2024-03-27T01:31:21.127560Z","updated_at":"2024-03-27T01:31:25.138709Z","draft_created_at":"2024-03-27T01:29:12.266968Z","lead_time":163.423,"prediction":{},"result_count":0,"unique_id":"031436d5-2ed0-439e-9fbc-85ac785cde16","import_id":null,"last_action":null,"task":11,"project":3,"updated_by":1,"parent_prediction":null,"parent_annotation":null,"last_created_by":null}],"file_upload":"b358b77a-12027-0101.02-Ste_RIDHA_Consulting-Approved-page-00001.jpg","drafts":[],"predictions":[],"data":{"image":"\/data\/upload\/3\/b358b77a-12027-0101.02-Ste_RIDHA_Consulting-Approved-page-00001.jpg"},"meta":{},"created_at":"2024-03-27T01:15:36.096507Z","updated_at":"2024-03-27T01:31:25.199354Z","inner_id":5,"total_annotations":1,"cancelled_annotations":0,"total_predictions":0,"comment_count":0,"unresolved_comment_count":0,"last_comment_updated_at":null,"project":3,"updated_by":1,"comment_authors":[]}]
|