diff --git a/pytest.ini b/pytest.ini index c33efcaae..3b63ad975 100644 --- a/pytest.ini +++ b/pytest.ini @@ -3,5 +3,5 @@ minversion = 3.7 log_cli=true python_files = test_*.py ;pytest_plugins = ['pytest_profiling'] -addopts = -n auto --dist=loadscope +;addopts = -n auto --dist=loadscope diff --git a/src/superannotate/lib/app/input_converters/conversion.py b/src/superannotate/lib/app/input_converters/conversion.py index 812714089..8a171ed7c 100644 --- a/src/superannotate/lib/app/input_converters/conversion.py +++ b/src/superannotate/lib/app/input_converters/conversion.py @@ -1,6 +1,9 @@ """ Main module for input converters """ +import os +import shutil +import tempfile from argparse import Namespace from pathlib import Path @@ -135,6 +138,16 @@ def _passes_converter_sanity(args, direction): ) +def change_file_extensions(directory, old_extension, new_extension): + for filename in os.listdir(directory): + file_path = os.path.join(directory, filename) + if os.path.isfile(file_path) and filename.endswith(old_extension): + if file_path.endswith(new_extension): + continue + new_file_path = os.path.splitext(file_path)[0] + new_extension + os.rename(file_path, new_file_path) + + @Tracker def export_annotation( input_dir, @@ -208,19 +221,28 @@ def export_annotation( ), ] _passes_value_sanity(values_info) - - args = Namespace( - input_dir=input_dir, - output_dir=output_dir, - dataset_format=dataset_format, - dataset_name=dataset_name, - project_type=project_type, - task=task, - ) - - _passes_converter_sanity(args, "export") - - export_from_sa(args) + if project_type == "Vector": + extension = "___objects.json" + elif project_type == "Pixel": + extension = "___pixel.json" + else: + extension = ".json" + with tempfile.TemporaryDirectory() as tmp_dir: + args = Namespace( + input_dir=Path(tmp_dir), + output_dir=output_dir, + dataset_format=dataset_format, + dataset_name=dataset_name, + project_type=project_type, + task=task, + ) + shutil.copytree(input_dir, tmp_dir, dirs_exist_ok=True) + for _path in os.listdir(tmp_dir): + if os.path.isdir(_path) and not _path.endswith("classes"): + change_file_extensions(_path, ".json", extension) + change_file_extensions(tmp_dir, ".json", extension) + _passes_converter_sanity(args, "export") + export_from_sa(args) @Tracker diff --git a/tests/integration/convertors/__init__.py b/tests/integration/convertors/__init__.py new file mode 100644 index 000000000..73dd5d634 --- /dev/null +++ b/tests/integration/convertors/__init__.py @@ -0,0 +1,8 @@ +import os +import pathlib + + +DATA_SET_PATH = pathlib.Path(os.getcwd()) / "data_set" + + +__all__ = ["DATA_SET_PATH"] diff --git a/tests/integration/convertors/data_set/coco_instance_segmentation/TestVectorAnnotationImage.json b/tests/integration/convertors/data_set/coco_instance_segmentation/TestVectorAnnotationImage.json new file mode 100644 index 000000000..a8b04850d --- /dev/null +++ b/tests/integration/convertors/data_set/coco_instance_segmentation/TestVectorAnnotationImage.json @@ -0,0 +1,5093 @@ +{ + "info": { + "description": "This is dataset.", + "url": "https://superannotate.ai", + "version": "1.0", + "year": 2023, + "contributor": "Superannotate AI", + "date_created": "25/05/2023" + }, + "licenses": [ + { + "url": "https://superannotate.ai", + "id": 1, + "name": "Superannotate AI" + } + ], + "images": [ + { + "id": 1, + "file_name": "example_image_3.jpg", + "height": 675, + "width": 1200, + "license": 1 + }, + { + "id": 2, + "file_name": "example_image_2.jpg", + "height": 1060, + "width": 1885, + "license": 1 + }, + { + "id": 3, + "file_name": "example_image_1.jpg", + "height": 683, + "width": 1024, + "license": 1 + }, + { + "id": 4, + "file_name": "example_image_4.jpg", + "height": 382, + "width": 680, + "license": 1 + } + ], + "annotations": [ + { + "id": 1, + "image_id": 1, + "segmentation": [ + [ + 0.39, + 272.46, + 4.33, + 260.62, + 30.82, + 222.01, + 17.3, + 216.66, + 41.25, + 208.77, + 58.72, + 209.33, + 72.81, + 200.03, + 99.02, + 194.96, + 182.44, + 185.09, + 280.79, + 179.18, + 315.73, + 183.97, + 319.4, + 186.78, + 359.13, + 183.4, + 380.55, + 184.25, + 441.98, + 205.38, + 485.38, + 231.59, + 561.19, + 240.89, + 562.88, + 242.3, + 568.52, + 244.27, + 583.17, + 254.7, + 585.99, + 259.21, + 589.94, + 267.95, + 593.32, + 280.63, + 594.16, + 286.83, + 593.88, + 290.21, + 580.92, + 311.06, + 575.56, + 318.11, + 573.03, + 328.82, + 573.31, + 342.91, + 571.05, + 351.36, + 567.96, + 358.97, + 565.42, + 364.05, + 561.47, + 369.12, + 556.68, + 373.35, + 549.07, + 378.14, + 544, + 380.11, + 531.88, + 382.08, + 521.46, + 381.8, + 502.57, + 372.22, + 495.25, + 364.33, + 492.43, + 359.54, + 306.15, + 408.01, + 302.21, + 414.77, + 300.23, + 415.9, + 295.72, + 416.18, + 291.5, + 418.44, + 284.17, + 441.83, + 277.41, + 449.72, + 272.9, + 457.04, + 267.26, + 463.24, + 257.96, + 468.32, + 245.28, + 471.98, + 238.23, + 472.54, + 228.93, + 474.52, + 218.22, + 474.52, + 204.13, + 470.85, + 190.61, + 462.12, + 183, + 453.94, + 176.23, + 453.1, + 168.63, + 450.84, + 165.81, + 449.43, + 161.3, + 445.49, + 158.48, + 440.7, + 157.63, + 437.88, + 156.51, + 428.02, + 89.44, + 432.81, + 79.01, + 428.3, + 72.81, + 431.4, + 62.66, + 434.5, + 57.87, + 435.34, + 48.57, + 435.63, + 46.88, + 434.5, + 46.04, + 429.99, + 44.06, + 426.04, + 0.39, + 404.91 + ] + ], + "iscrowd": 0, + "bbox": [ + 0.0, + 179.0, + 594.0, + 296.0 + ], + "area": 122097, + "category_id": 1611841 + }, + { + "id": 2, + "image_id": 1, + "segmentation": [ + [ + 1198.84, + 310.57, + 1099.1, + 298.81, + 1059.15, + 297.83, + 1035.87, + 304.93, + 993.48, + 321.84, + 918, + 370.61, + 917.27, + 376.98, + 867.77, + 435.79, + 857.96, + 439.71, + 854.78, + 444.12, + 852.33, + 451.72, + 843.75, + 488.72, + 843.26, + 488.72, + 835.17, + 504.41, + 833.7, + 512.25, + 833.21, + 565.43, + 834.44, + 605.37, + 835.91, + 607.58, + 840.81, + 611.01, + 877.08, + 643.6, + 893.5, + 648.25, + 949.86, + 674.23, + 1199.33, + 674.48 + ] + ], + "iscrowd": 0, + "bbox": [ + 833.0, + 298.0, + 366.0, + 376.0 + ], + "area": 117871, + "category_id": 1611841 + }, + { + "id": 3, + "image_id": 1, + "segmentation": [ + [ + 981.04, + 326.53, + 979.55, + 317.59, + 972.1, + 288.89, + 933.33, + 276.22, + 923.27, + 270.63, + 884.88, + 245.28, + 849.85, + 237.08, + 783.88, + 227.02, + 709.72, + 229.63, + 608.34, + 256.09, + 607.6, + 256.84, + 604.62, + 264.29, + 606.85, + 267.64, + 591.94, + 294.85, + 574.43, + 320.19, + 572.94, + 328.39, + 572.94, + 340.69, + 574.05, + 343.3, + 574.43, + 347.77, + 574.43, + 360.45, + 571.44, + 368.64, + 569.95, + 375.35, + 570.33, + 394.36, + 575.17, + 413, + 576.66, + 415.98, + 580.76, + 420.08, + 583.37, + 425.67, + 587.84, + 429.77, + 592.69, + 437.22, + 596.42, + 439.46, + 600.89, + 440.58, + 612.07, + 445.42, + 627.35, + 445.79, + 640.02, + 441.69, + 645.24, + 436.1, + 684.75, + 448.03, + 716.8, + 459.96, + 729.84, + 469.65, + 741.77, + 489.77, + 750.34, + 493.87, + 754.81, + 494.62, + 765.25, + 494.62, + 779.41, + 490.52, + 786.12, + 487.16, + 793.57, + 480.45, + 798.79, + 472.25, + 802.14, + 463.68, + 802.89, + 456.6, + 804.01, + 453.62, + 804.38, + 440.58, + 893.83, + 403.31, + 915.82, + 378.33, + 918.05, + 368.27, + 976.19, + 331.75 + ] + ], + "iscrowd": 0, + "bbox": [ + 570.0, + 227.0, + 411.0, + 268.0 + ], + "area": 73068, + "category_id": 1611841 + }, + { + "id": 4, + "image_id": 1, + "segmentation": [ + [ + 653.44, + 240.81, + 656.42, + 217.7, + 703.01, + 171.86, + 763.76, + 158.44, + 811.84, + 159.19, + 840.16, + 164.41, + 843.51, + 166.64, + 846.87, + 167.76, + 855.81, + 177.08, + 861.4, + 181.18, + 865.88, + 185.65, + 867.74, + 186.77, + 873.33, + 187.51, + 879.29, + 192.36, + 898.67, + 192.73, + 907.25, + 196.83, + 914.7, + 205.03, + 919.17, + 215.09, + 918.43, + 242.3, + 912.84, + 262.43, + 885.26, + 244.16, + 785.75, + 226.27, + 707.85, + 228.88, + 659.03, + 242.3 + ] + ], + "iscrowd": 0, + "bbox": [ + 653.0, + 158.0, + 266.0, + 104.0 + ], + "area": 15697, + "category_id": 1611841 + }, + { + "id": 5, + "image_id": 1, + "segmentation": [ + [ + 770.09, + 156.21, + 763.76, + 153.23, + 689.96, + 148.01, + 647.1, + 152.85, + 634.06, + 158.44, + 619.15, + 168.51, + 611.7, + 172.23, + 608.71, + 174.84, + 586.35, + 181.92, + 581.51, + 186.02, + 579.64, + 196.83, + 579.64, + 203.54, + 577.78, + 209.88, + 574.05, + 215.47, + 573.68, + 223.29, + 577.78, + 230.75, + 582.25, + 235.96, + 595.3, + 239.69, + 604.99, + 240.81, + 611.32, + 244.16, + 614.68, + 247.15, + 618.4, + 248.64, + 628.84, + 248.64, + 651.95, + 243.42, + 654.93, + 217.7, + 702.26, + 171.11 + ] + ], + "iscrowd": 0, + "bbox": [ + 574.0, + 148.0, + 195.0, + 101.0 + ], + "area": 8674, + "category_id": 1611841 + }, + { + "id": 6, + "image_id": 1, + "segmentation": [ + [ + 1198.32, + 145.4, + 1134.59, + 143.91, + 1118.57, + 145.77, + 1113.72, + 148.38, + 1107.38, + 150.24, + 1102.17, + 154.72, + 1097.32, + 162.54, + 1093.97, + 171.49, + 1090.24, + 177.08, + 1081.67, + 185.28, + 1028.37, + 202.05, + 1022.04, + 212.48, + 1018.31, + 235.22, + 1018.68, + 249.75, + 1020.92, + 253.11, + 1023.53, + 254.97, + 1035.08, + 260.56, + 1037.32, + 264.29, + 1039.93, + 297.09, + 1043.28, + 301.56, + 1058.93, + 297.09, + 1079.06, + 298.2, + 1080.55, + 295.97, + 1082.79, + 288.89, + 1082.79, + 282.18, + 1174.84, + 293.36, + 1178.57, + 306.4, + 1180.43, + 308.27, + 1182.67, + 309.39, + 1197.95, + 309.76 + ] + ], + "iscrowd": 0, + "bbox": [ + 1018.0, + 144.0, + 180.0, + 166.0 + ], + "area": 22065, + "category_id": 1611841 + }, + { + "id": 7, + "image_id": 1, + "segmentation": [ + [ + 1104.78, + 149.87, + 1073.84, + 127.14, + 1046.63, + 123.04, + 1016.82, + 120.06, + 948.99, + 128.25, + 947.5, + 129.37, + 929.61, + 161.8, + 928.49, + 168.13, + 928.49, + 194.22, + 930.73, + 199.81, + 932.22, + 200.93, + 935.57, + 201.68, + 938.55, + 203.91, + 938.93, + 209.88, + 940.04, + 213.6, + 946.01, + 224.04, + 959.42, + 224.78, + 963.9, + 220.68, + 965.01, + 218.45, + 965.01, + 215.47, + 1019.06, + 214.72, + 1019.8, + 212.11, + 1026.51, + 201.68, + 1081.3, + 184.53, + 1090.61, + 175.21 + ] + ], + "iscrowd": 0, + "bbox": [ + 928.0, + 120.0, + 176.0, + 105.0 + ], + "area": 12912, + "category_id": 1611841 + }, + { + "id": 8, + "image_id": 1, + "segmentation": [ + [ + 311.68, + 181.44, + 374.66, + 182.42, + 320.01, + 185.86 + ], + [ + 394.51, + 187.08, + 470.97, + 212.81, + 502.34, + 221.88, + 509.2, + 228.25, + 510.67, + 233.64, + 484.69, + 230.95, + 438.62, + 204.72, + 397.7, + 190.02, + 390.35, + 186.35 + ] + ], + "iscrowd": 0, + "bbox": [ + 312.0, + 181.0, + 199.0, + 53.0 + ], + "area": 905, + "category_id": 1611841 + }, + { + "id": 9, + "image_id": 2, + "segmentation": [ + [ + 1741, + 722, + 1741, + 726, + 1744, + 729, + 1741, + 733, + 1742, + 769, + 1749, + 768, + 1752, + 763, + 1757, + 766, + 1759, + 779, + 1764, + 779, + 1770, + 772, + 1823, + 772, + 1826, + 774, + 1828, + 780, + 1834, + 780, + 1836, + 778, + 1836, + 744, + 1826, + 719, + 1817, + 709, + 1803, + 707, + 1763, + 707, + 1757, + 709, + 1748, + 719 + ] + ], + "iscrowd": 0, + "bbox": [ + 1741.0, + 707.0, + 95.0, + 73.0 + ], + "area": 5707, + "category_id": 1611841 + }, + { + "id": 10, + "image_id": 2, + "segmentation": [ + [ + 1546, + 1048, + 1542, + 1045, + 1531, + 1043, + 1527, + 1039, + 1526, + 1034, + 1522, + 1033, + 1519, + 1028, + 1513, + 1025, + 1500, + 1022, + 1470, + 1022, + 1459, + 1024, + 1435, + 1024, + 1405, + 1028, + 1400, + 1030, + 1399, + 1033, + 1394, + 1037, + 1393, + 1041, + 1386, + 1047, + 1374, + 1047, + 1368, + 1050, + 1369, + 1055, + 1371, + 1057, + 1382, + 1059, + 1513, + 1059, + 1543, + 1057, + 1546, + 1055 + ] + ], + "iscrowd": 0, + "bbox": [ + 1368.0, + 1022.0, + 178.0, + 37.0 + ], + "area": 5059, + "category_id": 1611841 + }, + { + "id": 11, + "image_id": 2, + "segmentation": [ + [ + 1370, + 798, + 1367, + 796, + 1361, + 796, + 1349, + 781, + 1341, + 778, + 1304, + 779, + 1282, + 782, + 1277, + 790, + 1276, + 795, + 1273, + 798, + 1264, + 801, + 1266, + 811, + 1264, + 817, + 1265, + 859, + 1267, + 861, + 1272, + 861, + 1276, + 864, + 1277, + 878, + 1285, + 878, + 1288, + 869, + 1292, + 864, + 1318, + 866, + 1344, + 866, + 1353, + 864, + 1359, + 868, + 1361, + 876, + 1364, + 878, + 1370, + 878, + 1372, + 874, + 1375, + 841, + 1371, + 826, + 1371, + 817, + 1364, + 809, + 1364, + 807, + 1371, + 801 + ] + ], + "iscrowd": 0, + "bbox": [ + 1264.0, + 778.0, + 111.0, + 100.0 + ], + "area": 8888, + "category_id": 1611841 + }, + { + "id": 12, + "image_id": 2, + "segmentation": [ + [ + 1563, + 887, + 1563, + 889, + 1569, + 896, + 1569, + 900, + 1566, + 905, + 1567, + 939, + 1568, + 942, + 1573, + 946, + 1579, + 946, + 1581, + 948, + 1582, + 958, + 1589, + 968, + 1594, + 969, + 1597, + 967, + 1603, + 958, + 1613, + 957, + 1677, + 958, + 1687, + 968, + 1690, + 969, + 1694, + 968, + 1698, + 964, + 1699, + 927, + 1694, + 918, + 1693, + 906, + 1689, + 900, + 1690, + 891, + 1680, + 880, + 1679, + 873, + 1673, + 868, + 1650, + 865, + 1596, + 866, + 1588, + 868, + 1582, + 874, + 1581, + 879, + 1578, + 882, + 1569, + 883 + ] + ], + "iscrowd": 0, + "bbox": [ + 1563.0, + 865.0, + 136.0, + 104.0 + ], + "area": 11291, + "category_id": 1611841 + }, + { + "id": 13, + "image_id": 2, + "segmentation": [ + [ + 1685, + 835, + 1685, + 874, + 1687, + 877, + 1700, + 879, + 1703, + 882, + 1704, + 890, + 1709, + 894, + 1714, + 895, + 1719, + 891, + 1722, + 886, + 1792, + 886, + 1795, + 888, + 1796, + 893, + 1799, + 895, + 1808, + 895, + 1811, + 892, + 1812, + 848, + 1803, + 839, + 1798, + 827, + 1783, + 813, + 1771, + 810, + 1718, + 811, + 1710, + 815, + 1701, + 824, + 1689, + 829 + ] + ], + "iscrowd": 0, + "bbox": [ + 1685.0, + 810.0, + 127.0, + 85.0 + ], + "area": 8745, + "category_id": 1611841 + }, + { + "id": 14, + "image_id": 2, + "segmentation": [ + [ + 1481, + 781, + 1481, + 824, + 1492, + 833, + 1493, + 842, + 1502, + 842, + 1506, + 836, + 1567, + 836, + 1570, + 839, + 1570, + 841, + 1574, + 844, + 1579, + 844, + 1582, + 841, + 1583, + 801, + 1576, + 792, + 1579, + 783, + 1571, + 781, + 1564, + 771, + 1561, + 769, + 1543, + 766, + 1505, + 766, + 1498, + 768, + 1487, + 780 + ] + ], + "iscrowd": 0, + "bbox": [ + 1481.0, + 766.0, + 102.0, + 78.0 + ], + "area": 6629, + "category_id": 1611841 + }, + { + "id": 15, + "image_id": 2, + "segmentation": [ + [ + 162, + 777, + 162, + 803, + 167, + 809, + 175, + 808, + 181, + 802, + 193, + 803, + 202, + 801, + 236, + 800, + 241, + 804, + 248, + 805, + 253, + 802, + 257, + 795, + 274, + 794, + 274, + 763, + 267, + 753, + 266, + 748, + 262, + 744, + 262, + 741, + 257, + 735, + 254, + 734, + 192, + 735, + 187, + 738, + 185, + 742, + 175, + 752, + 170, + 753, + 169, + 765, + 166, + 768, + 165, + 774 + ] + ], + "iscrowd": 0, + "bbox": [ + 162.0, + 734.0, + 112.0, + 75.0 + ], + "area": 6737, + "category_id": 1611841 + }, + { + "id": 16, + "image_id": 2, + "segmentation": [ + [ + 666, + 700, + 667, + 708, + 663, + 716, + 663, + 741, + 667, + 744, + 671, + 744, + 679, + 739, + 724, + 739, + 732, + 744, + 737, + 744, + 740, + 738, + 747, + 732, + 746, + 701, + 738, + 695, + 738, + 688, + 731, + 681, + 684, + 681, + 678, + 687, + 678, + 690, + 675, + 695 + ] + ], + "iscrowd": 0, + "bbox": [ + 663.0, + 681.0, + 84.0, + 63.0 + ], + "area": 4458, + "category_id": 1611841 + }, + { + "id": 17, + "image_id": 2, + "segmentation": [ + [ + 340, + 911, + 350, + 921, + 350, + 930, + 345, + 935, + 344, + 942, + 339, + 950, + 339, + 983, + 340, + 987, + 346, + 994, + 355, + 994, + 361, + 989, + 361, + 984, + 364, + 981, + 397, + 982, + 432, + 981, + 445, + 979, + 451, + 981, + 454, + 984, + 455, + 990, + 459, + 994, + 470, + 995, + 476, + 990, + 477, + 978, + 482, + 971, + 486, + 969, + 493, + 970, + 501, + 965, + 502, + 949, + 505, + 940, + 505, + 926, + 501, + 916, + 501, + 903, + 499, + 895, + 496, + 890, + 494, + 877, + 490, + 874, + 488, + 866, + 482, + 861, + 402, + 861, + 389, + 865, + 378, + 872, + 370, + 881, + 368, + 889, + 364, + 894, + 362, + 901, + 359, + 904 + ] + ], + "iscrowd": 0, + "bbox": [ + 339.0, + 861.0, + 166.0, + 134.0 + ], + "area": 17708, + "category_id": 1611841 + }, + { + "id": 18, + "image_id": 2, + "segmentation": [ + [ + 1137, + 876, + 1130, + 874, + 1122, + 874, + 1118, + 870, + 1112, + 857, + 1107, + 852, + 1101, + 849, + 1032, + 851, + 1027, + 853, + 1020, + 870, + 1014, + 875, + 1002, + 876, + 1001, + 880, + 1003, + 883, + 1007, + 884, + 1010, + 889, + 1004, + 898, + 1006, + 946, + 1011, + 971, + 1018, + 972, + 1022, + 970, + 1024, + 967, + 1024, + 962, + 1027, + 959, + 1045, + 959, + 1059, + 955, + 1079, + 955, + 1089, + 957, + 1111, + 956, + 1117, + 962, + 1118, + 966, + 1121, + 969, + 1130, + 968, + 1132, + 966, + 1132, + 917, + 1129, + 905, + 1132, + 898, + 1127, + 891, + 1126, + 886, + 1129, + 883, + 1136, + 881 + ] + ], + "iscrowd": 0, + "bbox": [ + 1001.0, + 849.0, + 136.0, + 123.0 + ], + "area": 12957, + "category_id": 1611841 + }, + { + "id": 19, + "image_id": 2, + "segmentation": [ + [ + 396, + 738, + 399, + 743, + 399, + 746, + 392, + 760, + 392, + 785, + 396, + 789, + 400, + 789, + 406, + 784, + 437, + 785, + 444, + 783, + 458, + 783, + 463, + 788, + 469, + 790, + 474, + 787, + 474, + 784, + 478, + 778, + 489, + 777, + 491, + 775, + 490, + 738, + 480, + 727, + 470, + 720, + 419, + 720, + 414, + 723, + 408, + 733, + 404, + 736 + ] + ], + "iscrowd": 0, + "bbox": [ + 392.0, + 720.0, + 99.0, + 70.0 + ], + "area": 5725, + "category_id": 1611841 + }, + { + "id": 20, + "image_id": 2, + "segmentation": [ + [ + 277, + 812, + 271, + 810, + 183, + 810, + 173, + 812, + 163, + 820, + 152, + 826, + 142, + 837, + 141, + 842, + 131, + 850, + 125, + 850, + 121, + 854, + 121, + 858, + 123, + 860, + 122, + 870, + 116, + 876, + 115, + 883, + 110, + 891, + 109, + 933, + 111, + 941, + 118, + 945, + 124, + 945, + 137, + 937, + 150, + 935, + 215, + 936, + 220, + 939, + 226, + 947, + 239, + 947, + 241, + 946, + 242, + 941, + 242, + 926, + 249, + 919, + 255, + 918, + 263, + 922, + 277, + 921, + 280, + 916, + 280, + 890, + 285, + 869, + 281, + 845, + 282, + 831, + 279, + 824, + 279, + 816 + ] + ], + "iscrowd": 0, + "bbox": [ + 109.0, + 810.0, + 176.0, + 137.0 + ], + "area": 19328, + "category_id": 1611841 + }, + { + "id": 21, + "image_id": 2, + "segmentation": [ + [ + 1, + 698, + 0, + 747, + 2, + 751, + 23, + 749, + 27, + 747, + 35, + 748, + 45, + 746, + 49, + 751, + 57, + 753, + 66, + 743, + 70, + 741, + 82, + 743, + 86, + 740, + 86, + 704, + 68, + 688, + 16, + 688, + 8, + 691 + ] + ], + "iscrowd": 0, + "bbox": [ + 0.0, + 688.0, + 86.0, + 65.0 + ], + "area": 4870, + "category_id": 1611841 + }, + { + "id": 22, + "image_id": 2, + "segmentation": [ + [ + 997, + 1002, + 998, + 1009, + 1010, + 1012, + 1014, + 1015, + 1008, + 1023, + 1005, + 1030, + 1005, + 1034, + 1000, + 1038, + 998, + 1042, + 998, + 1048, + 1000, + 1050, + 999, + 1053, + 1005, + 1056, + 1124, + 1057, + 1135, + 1055, + 1150, + 1056, + 1151, + 1054, + 1151, + 1036, + 1146, + 1027, + 1146, + 1019, + 1137, + 1009, + 1149, + 1007, + 1155, + 1004, + 1156, + 1000, + 1150, + 995, + 1142, + 995, + 1136, + 997, + 1128, + 982, + 1120, + 977, + 1038, + 977, + 1031, + 979, + 1025, + 983, + 1023, + 995, + 1021, + 997, + 1003, + 997 + ] + ], + "iscrowd": 0, + "bbox": [ + 997.0, + 977.0, + 159.0, + 80.0 + ], + "area": 10751, + "category_id": 1611841 + }, + { + "id": 23, + "image_id": 2, + "segmentation": [ + [ + 277, + 811, + 279, + 816, + 277, + 820, + 277, + 827, + 284, + 835, + 284, + 854, + 288, + 861, + 312, + 861, + 342, + 857, + 348, + 858, + 354, + 866, + 359, + 866, + 363, + 863, + 364, + 855, + 368, + 850, + 382, + 849, + 385, + 847, + 384, + 837, + 387, + 829, + 388, + 817, + 384, + 810, + 383, + 799, + 367, + 782, + 305, + 782, + 293, + 792, + 288, + 801 + ] + ], + "iscrowd": 0, + "bbox": [ + 277.0, + 782.0, + 111.0, + 84.0 + ], + "area": 7483, + "category_id": 1611841 + }, + { + "id": 24, + "image_id": 2, + "segmentation": [ + [ + 1649, + 1011, + 1655, + 1020, + 1653, + 1030, + 1649, + 1038, + 1648, + 1055, + 1651, + 1058, + 1696, + 1058, + 1726, + 1055, + 1800, + 1056, + 1814, + 1058, + 1820, + 1057, + 1821, + 1055, + 1815, + 1047, + 1815, + 1041, + 1811, + 1037, + 1808, + 1027, + 1805, + 1026, + 1803, + 1023, + 1802, + 1011, + 1793, + 1005, + 1789, + 999, + 1775, + 992, + 1735, + 990, + 1687, + 992, + 1680, + 996, + 1673, + 1003, + 1672, + 1007, + 1669, + 1010, + 1652, + 1009 + ] + ], + "iscrowd": 0, + "bbox": [ + 1648.0, + 990.0, + 173.0, + 68.0 + ], + "area": 9543, + "category_id": 1611841 + }, + { + "id": 25, + "image_id": 2, + "segmentation": [ + [ + 1339, + 926, + 1338, + 931, + 1347, + 940, + 1347, + 945, + 1343, + 952, + 1344, + 986, + 1348, + 997, + 1354, + 1002, + 1356, + 1009, + 1356, + 1022, + 1362, + 1031, + 1369, + 1031, + 1374, + 1029, + 1376, + 1022, + 1379, + 1019, + 1397, + 1019, + 1413, + 1021, + 1418, + 1023, + 1444, + 1023, + 1455, + 1020, + 1474, + 1020, + 1486, + 1024, + 1494, + 1023, + 1495, + 970, + 1491, + 963, + 1489, + 953, + 1485, + 949, + 1482, + 936, + 1483, + 932, + 1491, + 925, + 1487, + 922, + 1481, + 923, + 1475, + 920, + 1467, + 911, + 1466, + 906, + 1459, + 899, + 1370, + 899, + 1360, + 906, + 1359, + 917, + 1355, + 922 + ] + ], + "iscrowd": 0, + "bbox": [ + 1338.0, + 899.0, + 157.0, + 132.0 + ], + "area": 16945, + "category_id": 1611841 + }, + { + "id": 26, + "image_id": 2, + "segmentation": [ + [ + 1142, + 764, + 1138, + 761, + 1126, + 763, + 1123, + 759, + 1122, + 747, + 1117, + 742, + 1072, + 742, + 1054, + 744, + 1046, + 747, + 1044, + 750, + 1041, + 764, + 1038, + 767, + 1032, + 768, + 1038, + 773, + 1039, + 776, + 1035, + 785, + 1036, + 844, + 1049, + 844, + 1050, + 836, + 1054, + 833, + 1072, + 835, + 1117, + 833, + 1123, + 837, + 1124, + 842, + 1126, + 844, + 1133, + 845, + 1136, + 841, + 1138, + 806, + 1135, + 798, + 1134, + 784, + 1131, + 781, + 1129, + 775, + 1133, + 770, + 1140, + 769, + 1142, + 767 + ] + ], + "iscrowd": 0, + "bbox": [ + 1033.0, + 742.0, + 109.0, + 103.0 + ], + "area": 8969, + "category_id": 1611841 + }, + { + "id": 27, + "image_id": 2, + "segmentation": [ + [ + 1252, + 740, + 1252, + 749, + 1256, + 752, + 1255, + 767, + 1257, + 772, + 1257, + 781, + 1262, + 789, + 1263, + 796, + 1271, + 796, + 1280, + 784, + 1284, + 781, + 1292, + 779, + 1308, + 779, + 1321, + 777, + 1336, + 777, + 1341, + 779, + 1346, + 778, + 1347, + 763, + 1345, + 746, + 1342, + 743, + 1342, + 736, + 1346, + 734, + 1346, + 731, + 1337, + 728, + 1325, + 718, + 1307, + 716, + 1277, + 716, + 1270, + 719, + 1258, + 734, + 1256, + 744 + ] + ], + "iscrowd": 0, + "bbox": [ + 1252.0, + 716.0, + 95.0, + 80.0 + ], + "area": 5522, + "category_id": 1611841 + }, + { + "id": 28, + "image_id": 2, + "segmentation": [ + [ + 184, + 638, + 179, + 633, + 173, + 631, + 124, + 631, + 115, + 636, + 109, + 643, + 105, + 651, + 100, + 655, + 94, + 655, + 91, + 662, + 89, + 686, + 93, + 708, + 103, + 708, + 107, + 701, + 115, + 698, + 160, + 698, + 180, + 679, + 192, + 677, + 192, + 654, + 185, + 643 + ] + ], + "iscrowd": 0, + "bbox": [ + 89.0, + 631.0, + 103.0, + 77.0 + ], + "area": 5889, + "category_id": 1611841 + }, + { + "id": 29, + "image_id": 2, + "segmentation": [ + [ + 152, + 720, + 152, + 729, + 155, + 736, + 155, + 744, + 159, + 746, + 166, + 746, + 170, + 742, + 173, + 744, + 173, + 746, + 176, + 746, + 189, + 737, + 197, + 734, + 249, + 734, + 253, + 732, + 253, + 702, + 250, + 698, + 249, + 693, + 234, + 680, + 183, + 680, + 170, + 689, + 169, + 692, + 159, + 702 + ] + ], + "iscrowd": 0, + "bbox": [ + 152.0, + 680.0, + 101.0, + 66.0 + ], + "area": 5163, + "category_id": 1611841 + }, + { + "id": 30, + "image_id": 2, + "segmentation": [ + [ + 1048, + 572, + 1045, + 579, + 1040, + 583, + 1041, + 592, + 1040, + 597, + 1037, + 601, + 1037, + 626, + 1035, + 648, + 1037, + 655, + 1036, + 667, + 1038, + 684, + 1041, + 684, + 1045, + 680, + 1053, + 667, + 1058, + 663, + 1082, + 663, + 1097, + 661, + 1102, + 665, + 1105, + 671, + 1113, + 680, + 1117, + 693, + 1123, + 693, + 1125, + 689, + 1125, + 673, + 1127, + 666, + 1126, + 650, + 1128, + 640, + 1126, + 599, + 1120, + 594, + 1099, + 591, + 1092, + 582, + 1091, + 577, + 1086, + 572 + ] + ], + "iscrowd": 0, + "bbox": [ + 1035.0, + 572.0, + 93.0, + 121.0 + ], + "area": 8046, + "category_id": 1611842 + }, + { + "id": 31, + "image_id": 2, + "segmentation": [ + [ + 1194, + 583, + 1192, + 601, + 1190, + 604, + 1190, + 608, + 1192, + 611, + 1191, + 629, + 1193, + 647, + 1198, + 651, + 1199, + 656, + 1205, + 657, + 1209, + 649, + 1220, + 649, + 1225, + 638, + 1229, + 634, + 1236, + 634, + 1241, + 636, + 1262, + 635, + 1262, + 595, + 1259, + 591, + 1255, + 589, + 1254, + 583, + 1242, + 577, + 1206, + 577 + ] + ], + "iscrowd": 0, + "bbox": [ + 1190.0, + 577.0, + 72.0, + 80.0 + ], + "area": 4374, + "category_id": 1611842 + }, + { + "id": 32, + "image_id": 2, + "segmentation": [ + [ + 725.84, + 738.06, + 730.5, + 741, + 736.63, + 742.23, + 740.55, + 741, + 749.13, + 726.79, + 756.24, + 723.11, + 757.22, + 718.45, + 754.03, + 715.27, + 752.31, + 712.08, + 753.54, + 699.34, + 755.75, + 696.64, + 761.14, + 694.93, + 766.77, + 695.91, + 772.17, + 698.36, + 772.9, + 699.34, + 773.64, + 711.35, + 772.17, + 716, + 772.17, + 721.15, + 775.35, + 725.32, + 790.06, + 735.12, + 793.98, + 737.08, + 808.44, + 736.84, + 807.7, + 744.68, + 806.72, + 746.88, + 788.59, + 748.36, + 782.95, + 745.17, + 779.76, + 744.92, + 779.03, + 746.15, + 777.56, + 772.37, + 778.29, + 784.87, + 781.97, + 803.75, + 780.5, + 827.27, + 789.57, + 830.21, + 795.69, + 833.4, + 795.94, + 836.1, + 795.45, + 836.83, + 771.68, + 837.81, + 770.94, + 831.19, + 769.22, + 828.01, + 769.22, + 825.31, + 771.43, + 822.86, + 770.7, + 819.43, + 771.43, + 808.65, + 760.4, + 815.26, + 750.35, + 817.96, + 751.33, + 819.68, + 750.84, + 820.41, + 749.37, + 819.68, + 747.41, + 820.17, + 746.68, + 821.15, + 746.43, + 824.82, + 743, + 829.23, + 741.78, + 836.1, + 741.46, + 838.04, + 740.55, + 837.32, + 738.83, + 831.19, + 737.12, + 830.7, + 735.4, + 812.08, + 744.96, + 810.36, + 763.83, + 800.56, + 762.36, + 794.92, + 760.65, + 791.49, + 760.89, + 787.57, + 758.44, + 784.38, + 755.01, + 782.18, + 753.29, + 778.99, + 749.62, + 777.77, + 746.43, + 750.56, + 730.75, + 751.54, + 725.11, + 749.58, + 721.43, + 744.68, + 721.19, + 742.96 + ] + ], + "iscrowd": 0, + "bbox": [ + 721.0, + 695.0, + 87.0, + 143.0 + ], + "area": 4225, + "category_id": 1611843 + }, + { + "id": 33, + "image_id": 3, + "segmentation": [ + [ + 281.98, + 383.75, + 282.55, + 378.1, + 287.26, + 376.12, + 297.35, + 372.91, + 311.01, + 372.82, + 319.59, + 375.74, + 323.55, + 378.28, + 325.91, + 381.68, + 326.66, + 385.45, + 325.43, + 387.62, + 324.02, + 388.75, + 317.23, + 388.84, + 315.54, + 390.26, + 312.43, + 390.54, + 308.66, + 388.46, + 306.39, + 388.84, + 297.44, + 389.03, + 291.5, + 388.18, + 287.64, + 384.51 + ] + ], + "iscrowd": 0, + "bbox": [ + 282.0, + 373.0, + 44.0, + 18.0 + ], + "area": 584, + "category_id": 1611841 + }, + { + "id": 34, + "image_id": 3, + "segmentation": [ + [ + 266.9, + 384.88, + 267.47, + 404.21, + 276.23, + 404.87, + 277.65, + 407.32, + 278.78, + 407.79, + 282.17, + 407.79, + 284.15, + 407.32, + 285.19, + 403.92, + 292.73, + 403.83, + 293.29, + 405.43, + 294.99, + 406.37, + 297.53, + 406.28, + 298.57, + 405.43, + 301.12, + 404.39, + 302.15, + 402.41, + 303.38, + 395.53, + 301.49, + 391.39, + 296.12, + 389.03, + 291.78, + 388.84, + 286.79, + 384.13, + 284.9, + 384.51 + ], + [ + 262.94, + 385.54, + 263.88, + 404.68, + 262.47, + 404.96, + 262.19, + 406.66, + 261.34, + 408.07, + 259.74, + 408.54, + 256.53, + 408.64, + 255.59, + 408.16, + 254.84, + 407.13, + 254.08, + 403.92, + 252.76, + 402.79, + 250.69, + 402.32, + 249.75, + 401.19, + 250.5, + 389.03, + 254.18, + 384.51, + 262.56, + 384.32 + ] + ], + "iscrowd": 0, + "bbox": [ + 250.0, + 384.0, + 53.0, + 25.0 + ], + "area": 944, + "category_id": 1611841 + }, + { + "id": 35, + "image_id": 3, + "segmentation": [ + [ + 348.62, + 395.91, + 367.76, + 395.34, + 367, + 384.32, + 364.36, + 378, + 349.09, + 377.81, + 346.55, + 385.54, + 346.55, + 395.82 + ] + ], + "iscrowd": 0, + "bbox": [ + 347.0, + 378.0, + 21.0, + 18.0 + ], + "area": 348, + "category_id": 1611841 + }, + { + "id": 36, + "image_id": 3, + "segmentation": [ + [ + 325.25, + 402.32, + 321.1, + 410.99, + 321, + 424.47, + 329.21, + 424.75, + 329.49, + 423.06, + 344.57, + 423.15, + 344.85, + 424.85, + 349.94, + 424.38, + 349.09, + 409.2, + 344.57, + 401.47 + ] + ], + "iscrowd": 0, + "bbox": [ + 321.0, + 401.0, + 29.0, + 24.0 + ], + "area": 585, + "category_id": 1611841 + }, + { + "id": 37, + "image_id": 3, + "segmentation": [ + [ + 114.81, + 432.5, + 149.32, + 430.8, + 169.65, + 442.24, + 187.65, + 446.05, + 192.94, + 453.25, + 192.31, + 462.14, + 189.77, + 467.44, + 183.84, + 470.83, + 177.48, + 472.52, + 169.65, + 480.57, + 163.93, + 481.62, + 160.54, + 477.18, + 159.27, + 472.73, + 159.91, + 468.28, + 159.49, + 458.76, + 156.94, + 450.71, + 136.62, + 437.37, + 119.04, + 436.52 + ] + ], + "iscrowd": 0, + "bbox": [ + 116.0, + 431.0, + 77.0, + 50.0 + ], + "area": 1418, + "category_id": 1611841 + }, + { + "id": 38, + "image_id": 3, + "segmentation": [ + [ + 120.52, + 437.37, + 135.77, + 437.79, + 156.31, + 450.5, + 158.85, + 459.39, + 159.27, + 468.71, + 158.21, + 474.21, + 152.92, + 480.78, + 147.84, + 483.74, + 142.54, + 484.17, + 139.37, + 482.05, + 140.43, + 477.6, + 144.87, + 475.91, + 146.78, + 471.25, + 144.03, + 457.27 + ] + ], + "iscrowd": 0, + "bbox": [ + 121.0, + 437.0, + 38.0, + 47.0 + ], + "area": 685, + "category_id": 1611841 + }, + { + "id": 39, + "image_id": 3, + "segmentation": [ + [ + 81.46, + 437.16, + 94.38, + 435.04, + 110.9, + 433.56, + 117.67, + 434.83, + 133.77, + 448.8, + 144.99, + 457.27, + 147.32, + 471.67, + 145.62, + 475.91, + 141.6, + 477.6, + 136.31, + 485.22, + 131.65, + 487.98, + 126.78, + 488.61, + 122.97, + 472.73, + 118.52, + 464.26, + 110.9, + 455.37, + 103.06, + 441.18, + 99.89, + 438.64 + ] + ], + "iscrowd": 0, + "bbox": [ + 85.0, + 434.0, + 62.0, + 55.0 + ], + "area": 1286, + "category_id": 1611841 + }, + { + "id": 40, + "image_id": 3, + "segmentation": [ + [ + 684.8, + 420.93, + 683.1, + 416.3, + 634.11, + 414.48, + 626.68, + 419.72, + 622.9, + 424.35, + 609.62, + 425.69, + 604.63, + 427.76, + 600.73, + 434.34, + 600.48, + 440.19, + 600.97, + 440.92, + 604.02, + 442.01, + 604.99, + 445.67, + 607.18, + 447.99, + 610.96, + 450.18, + 618.64, + 450.91, + 621.2, + 448.72, + 622.54, + 446.16, + 626.8, + 446.16, + 626.92, + 440.67, + 629.6, + 435.31, + 633.75, + 432.39, + 646.79, + 430.32, + 664.09, + 420.81, + 685.05, + 422.4 + ] + ], + "iscrowd": 0, + "bbox": [ + 600.0, + 414.0, + 85.0, + 37.0 + ], + "area": 1207, + "category_id": 1611841 + }, + { + "id": 41, + "image_id": 3, + "segmentation": [ + [ + 674.69, + 421.91, + 664.82, + 421.3, + 646.66, + 430.56, + 634.24, + 432.63, + 629.85, + 435.68, + 627.29, + 440.55, + 627.05, + 444.94, + 628.14, + 447.13, + 628.63, + 447.86, + 631.68, + 448.35, + 633.38, + 451.4, + 634.48, + 452.25, + 634.72, + 446.89, + 636.43, + 437.99, + 645.57, + 434.34, + 656.53, + 431.05 + ] + ], + "iscrowd": 0, + "bbox": [ + 627.0, + 421.0, + 47.0, + 30.0 + ], + "area": 283, + "category_id": 1611841 + }, + { + "id": 42, + "image_id": 3, + "segmentation": [ + [ + 729.77, + 442.26, + 729.89, + 436.04, + 726.11, + 425.93, + 719.9, + 423.86, + 676.27, + 422.93, + 670.06, + 424.22, + 656.78, + 431.41, + 641.67, + 435.68, + 636.92, + 438.12, + 635.09, + 447.25, + 634.97, + 452.86, + 635.7, + 453.71, + 640.33, + 455.17, + 643.25, + 457.86, + 649.59, + 458.22, + 652.27, + 457.86, + 654.95, + 454.32, + 656.29, + 453.47, + 664.45, + 453.96, + 667.62, + 458.71, + 668.72, + 458.95, + 671.64, + 458.95, + 673.96, + 458.34, + 676.52, + 456.76, + 678.35, + 454.32, + 686.75, + 454.93, + 689.92, + 459.56, + 691.51, + 460.78, + 696.87, + 461.27, + 699.67, + 460.29, + 702.84, + 456.51, + 705.27, + 455.91, + 706.86, + 452.37, + 708.69, + 450.79, + 722.21, + 445.18, + 725.87, + 445.43 + ] + ], + "iscrowd": 0, + "bbox": [ + 635.0, + 423.0, + 95.0, + 38.0 + ], + "area": 2596, + "category_id": 1611841 + }, + { + "id": 43, + "image_id": 3, + "segmentation": [ + [ + 703, + 462.81, + 703, + 464.81, + 712, + 472.81, + 712, + 474.81, + 724, + 474.81, + 729, + 471.81, + 741.61, + 472.86, + 745.32, + 476.75, + 753.29, + 476.57, + 756.25, + 473.97, + 770, + 473.81, + 780, + 478.81, + 784, + 478.81, + 792, + 474.81, + 802, + 474.81, + 806, + 478.81, + 812, + 479.81, + 817, + 477.81, + 820, + 473.81, + 832.61, + 472.49, + 834, + 468.81, + 833, + 453.81, + 827, + 448.81, + 805, + 437.81, + 783, + 434.81, + 750, + 434.81, + 739, + 437.81, + 726, + 445.81, + 722, + 445.81, + 709, + 450.81, + 707, + 452.81, + 705.11, + 457.11 + ] + ], + "iscrowd": 0, + "bbox": [ + 703.0, + 435.0, + 131.0, + 45.0 + ], + "area": 4434, + "category_id": 1611841 + }, + { + "id": 44, + "image_id": 3, + "segmentation": [ + [ + 1023.86, + 432.09, + 1019, + 434, + 1008, + 440, + 1001, + 447, + 960, + 450, + 952, + 453, + 945, + 460, + 940, + 472, + 942, + 496, + 945, + 500, + 948, + 500, + 954, + 510, + 958, + 514, + 980, + 515, + 992, + 504, + 999, + 506, + 1006, + 513, + 1009, + 514, + 1016.82, + 516.78, + 1023.86, + 515.86 + ] + ], + "iscrowd": 0, + "bbox": [ + 940.0, + 432.0, + 84.0, + 85.0 + ], + "area": 5251, + "category_id": 1611841 + }, + { + "id": 45, + "image_id": 3, + "segmentation": [ + [ + 6, + 447, + 0, + 459, + 0, + 528, + 2, + 531, + 12, + 530, + 20, + 536, + 25, + 536, + 33, + 530, + 61, + 530, + 77, + 528, + 86, + 534, + 94, + 535, + 99, + 532, + 100, + 525, + 102, + 522, + 109.39, + 521.38, + 111.09, + 529.47, + 122.6, + 528.2, + 126.44, + 491.97, + 122, + 474, + 118, + 465, + 110, + 456, + 103, + 442, + 99, + 439, + 47, + 438, + 16, + 442 + ] + ], + "iscrowd": 0, + "bbox": [ + 0.0, + 438.0, + 126.0, + 98.0 + ], + "area": 10751, + "category_id": 1611841 + }, + { + "id": 46, + "image_id": 3, + "segmentation": [ + [ + 496.93, + 506.95, + 500.11, + 499.6, + 499.38, + 494.21, + 500.85, + 490.53, + 502.81, + 490.04, + 503.79, + 488.32, + 505.02, + 480.97, + 507.22, + 477.3, + 510.16, + 466.51, + 520.21, + 451.32, + 522.42, + 446.41, + 524.38, + 435.63, + 541.78, + 412.84, + 543, + 408.92, + 541.78, + 405.73, + 541.78, + 398.13, + 542.51, + 394.95, + 543.74, + 392.74, + 546.19, + 389.8, + 548.4, + 388.82, + 556.97, + 388.82, + 563.35, + 391.27, + 565.06, + 393.23, + 566.29, + 396.42, + 567.76, + 405.24, + 569.23, + 409.41, + 569.23, + 412.59, + 568.25, + 414.55, + 568, + 419.45, + 565.8, + 422.4, + 562.37, + 423.62, + 561.63, + 425.09, + 561.63, + 427.05, + 566.04, + 429.5, + 568, + 433.42, + 569.72, + 445.68, + 594.96, + 498.62, + 594.96, + 502.78, + 593.98, + 505.48, + 591.53, + 508.18, + 589.82, + 508.42, + 588.35, + 505.97, + 586.88, + 500.58, + 585.4, + 499.6, + 582.46, + 499.35, + 568.98, + 481.71, + 571.19, + 508.18, + 569.96, + 510.63, + 567.76, + 510.87, + 572.66, + 595.43, + 574.87, + 597.63, + 580.01, + 598.61, + 586.39, + 598.61, + 588.84, + 599.35, + 589.33, + 601.31, + 587.86, + 604.01, + 586.88, + 604.5, + 553.3, + 604.99, + 551.09, + 601.8, + 551.09, + 592.49, + 552.81, + 589.55, + 548.15, + 554.25, + 530.51, + 572.39, + 511.88, + 586.85, + 509.67, + 587.09, + 508.69, + 593.22, + 508.69, + 596.9, + 509.92, + 599.84, + 509.67, + 601.8, + 506.49, + 602.04, + 502.57, + 598.86, + 499.87, + 594.45, + 496.93, + 584.64, + 492.52, + 581.21, + 489.58, + 576.56, + 489.82, + 571.41, + 491.05, + 570.18, + 498.15, + 569.45, + 509.67, + 565.04, + 525.11, + 547.64, + 532.22, + 546.16, + 531.98, + 541.26, + 537.12, + 538.57, + 530.51, + 510.14, + 526.34, + 513.32, + 522.42, + 489.55, + 521.19, + 477.05, + 517.76, + 485.38, + 515.31, + 489.06, + 514.57, + 493.72, + 512.61, + 495.68, + 511.39, + 498.86, + 509.43, + 506.71, + 508.94, + 514.55, + 505.51, + 515.28, + 501.83, + 514.55, + 498.15, + 510.87, + 497.91, + 507.93 + ] + ], + "iscrowd": 0, + "bbox": [ + 490.0, + 389.0, + 105.0, + 216.0 + ], + "area": 10112, + "category_id": 1611843 + }, + { + "id": 47, + "image_id": 3, + "segmentation": [ + [ + 418.36, + 510.31, + 423.02, + 513.25, + 429.15, + 514.48, + 433.07, + 513.25, + 441.65, + 499.04, + 448.76, + 495.36, + 449.74, + 490.7, + 446.55, + 487.52, + 444.83, + 484.33, + 446.06, + 471.59, + 448.27, + 468.89, + 453.66, + 467.18, + 459.29, + 468.16, + 464.69, + 470.61, + 465.42, + 471.59, + 466.16, + 483.6, + 464.69, + 488.25, + 464.69, + 493.4, + 467.87, + 497.57, + 482.58, + 507.37, + 486.5, + 509.33, + 500.96, + 509.09, + 500.22, + 516.93, + 499.24, + 519.13, + 481.11, + 520.61, + 475.47, + 517.42, + 472.28, + 517.17, + 471.55, + 518.4, + 470.08, + 544.62, + 470.81, + 557.12, + 474.49, + 576, + 473.02, + 599.52, + 482.09, + 602.46, + 488.21, + 605.65, + 488.46, + 608.35, + 487.97, + 609.08, + 464.2, + 610.06, + 463.46, + 603.44, + 461.74, + 600.26, + 461.74, + 597.56, + 463.95, + 595.11, + 463.22, + 591.68, + 463.95, + 580.9, + 452.92, + 587.51, + 442.87, + 590.21, + 443.85, + 591.93, + 443.36, + 592.66, + 441.89, + 591.93, + 439.93, + 592.42, + 439.2, + 593.4, + 438.95, + 597.07, + 435.52, + 601.48, + 434.3, + 608.35, + 433.07, + 609.57, + 431.35, + 603.44, + 429.64, + 602.95, + 427.92, + 584.33, + 437.48, + 582.61, + 456.35, + 572.81, + 454.88, + 567.17, + 453.17, + 563.74, + 453.41, + 559.82, + 450.96, + 556.63, + 447.53, + 554.43, + 445.81, + 551.24, + 442.14, + 550.02, + 438.95, + 522.81, + 423.27, + 523.79, + 417.63, + 521.83, + 413.95, + 516.93, + 413.71, + 515.21 + ] + ], + "iscrowd": 0, + "bbox": [ + 414.0, + 467.0, + 87.0, + 143.0 + ], + "area": 4218, + "category_id": 1611843 + }, + { + "id": 48, + "image_id": 3, + "segmentation": [ + [ + 380.35, + 435.63, + 378.64, + 439.31, + 395.79, + 464.55, + 396.28, + 478.03, + 394.57, + 481.22, + 407.56, + 499.11, + 408.05, + 501.07, + 410.74, + 502.05, + 410.99, + 504.99, + 415.15, + 507.93, + 415.15, + 509.4, + 410.25, + 513.32, + 407.8, + 517, + 399.22, + 516.75, + 390.4, + 510.87, + 389.18, + 512.34, + 397.51, + 539.06, + 397.75, + 559.89, + 400.2, + 568.47, + 409.76, + 593.96, + 417.12, + 602.78, + 422.51, + 604.25, + 428.63, + 603.76, + 429.61, + 606.21, + 428.63, + 608.42, + 402.65, + 614.3, + 396.53, + 611.85, + 395.79, + 609.4, + 397.51, + 602.04, + 395.55, + 599.35, + 394.57, + 599.35, + 383.29, + 574.84, + 380.6, + 555.97, + 369.32, + 542, + 350.45, + 561.61, + 334.03, + 598.86, + 335.01, + 600.82, + 340.65, + 606.21, + 343.34, + 607.44, + 348.49, + 607.93, + 349.47, + 608.66, + 349.72, + 610.62, + 348.25, + 612.09, + 346.78, + 612.58, + 319.82, + 610.62, + 315.89, + 608.17, + 318.1, + 599.84, + 319.08, + 590.77, + 329.13, + 566.02, + 339.42, + 549.11, + 342.61, + 541.51, + 341.38, + 529.74, + 339.18, + 533.91, + 333.79, + 524.6, + 333.3, + 521.9, + 325.94, + 519.45, + 339.42, + 477.54, + 339.18, + 467.98, + 336.48, + 463.82, + 359.52, + 408.92, + 366.38, + 404.5, + 379.62, + 404.5, + 380.84, + 404.99, + 385.5, + 411.12, + 387.7, + 416.27, + 387.7, + 420.68, + 389.42, + 424.6, + 388.44, + 428.03, + 386.97, + 429.75, + 386.23, + 434.65 + ] + ], + "iscrowd": 0, + "bbox": [ + 316.0, + 405.0, + 113.0, + 209.0 + ], + "area": 10135, + "category_id": 1611843 + }, + { + "id": 49, + "image_id": 4, + "segmentation": [ + [ + 150.76, + 215.35, + 151.45, + 224.38, + 152.7, + 226.18, + 158.12, + 226.74, + 159.23, + 226.32, + 160.48, + 219.24, + 188.67, + 223.13, + 214.5, + 223.13, + 217.27, + 229.51, + 222.27, + 229.24, + 226.02, + 227.57, + 228.8, + 217.85, + 243.93, + 206.32, + 245.88, + 210.63, + 250.32, + 211.18, + 252.68, + 210.07, + 255.32, + 204.52, + 257.13, + 186.05, + 254.35, + 164.66, + 244.07, + 147.45, + 236.02, + 146.06, + 215.74, + 144.11, + 190.89, + 143, + 180.75, + 150.64, + 171.45, + 159.53, + 167.14, + 164.66, + 163.39, + 170.36, + 161.03, + 167.3, + 157.14, + 167.86, + 155.06, + 168.97, + 154.51, + 170.22, + 154.64, + 171.33, + 158.53, + 173.83, + 160.06, + 174.25, + 153.53, + 185.08, + 151.73, + 196.88, + 149.23, + 205.91 + ] + ], + "iscrowd": 0, + "bbox": [ + 149.0, + 143.0, + 108.0, + 87.0 + ], + "area": 7112, + "category_id": 1611841 + }, + { + "id": 50, + "image_id": 4, + "segmentation": [ + [ + 0.07, + 270.84, + 10.21, + 271.08, + 15.77, + 272.77, + 22.89, + 279.29, + 25.43, + 280.5, + 32.31, + 285.93, + 39.8, + 289.07, + 42.7, + 292.09, + 45.47, + 296.32, + 48.25, + 301.27, + 49.22, + 305.13, + 45.71, + 336.53, + 44.39, + 339.91, + 42.94, + 342.2, + 38.83, + 344.38, + 34.24, + 344.98, + 31.22, + 344.98, + 28.33, + 343.41, + 0.07, + 362.49 + ] + ], + "iscrowd": 0, + "bbox": [ + 0.0, + 271.0, + 49.0, + 91.0 + ], + "area": 3259, + "category_id": 1611841 + }, + { + "id": 51, + "image_id": 4, + "segmentation": [ + [ + 0.15, + 363.3, + 4.62, + 360.62, + 10.53, + 359.01, + 44.89, + 355.07, + 77.63, + 358.11, + 94.09, + 363.3, + 97.49, + 366.34, + 100.89, + 371, + 102.15, + 374.4, + 102.5, + 381.73, + 0.51, + 381.73 + ] + ], + "iscrowd": 0, + "bbox": [ + 0.0, + 355.0, + 103.0, + 27.0 + ], + "area": 2375, + "category_id": 1611841 + }, + { + "id": 52, + "image_id": 4, + "segmentation": [ + [ + 110.2, + 380.84, + 105.72, + 373.68, + 103.75, + 367.95, + 106.44, + 338.61, + 108.05, + 331.81, + 125.41, + 312.48, + 117, + 308.37, + 115.92, + 307.29, + 115.38, + 304.97, + 115.56, + 301.93, + 116.64, + 300.49, + 117.89, + 299.96, + 120.93, + 299.96, + 125.41, + 301.75, + 126.66, + 302.82, + 128.09, + 308.37, + 151.35, + 276.87, + 169.96, + 261.84, + 178.91, + 256.83, + 223.11, + 258.26, + 244.94, + 266.5, + 254.78, + 276.69, + 258.36, + 283.49, + 263.37, + 288.68, + 266.05, + 293.34, + 267.3, + 300.49, + 267.66, + 313.2, + 262.83, + 348.09, + 262.83, + 347.73, + 259.43, + 355.07, + 258.71, + 355.61, + 249.95, + 356.14, + 246.19, + 353.82, + 245.29, + 351.31, + 226.33, + 369.03, + 225.07, + 381.37 + ] + ], + "iscrowd": 0, + "bbox": [ + 104.0, + 257.0, + 164.0, + 124.0 + ], + "area": 15891, + "category_id": 1611841 + }, + { + "id": 53, + "image_id": 4, + "segmentation": [ + [ + 396.32, + 381.55, + 397.21, + 364.02, + 391.84, + 345.77, + 388.8, + 338.07, + 387.91, + 337.36, + 380.21, + 333.6, + 374.67, + 331.45, + 371.45, + 330.56, + 308.64, + 325.55, + 296.11, + 328.59, + 289.49, + 333.6, + 273.21, + 353.46, + 264.44, + 369.74, + 255.49, + 367.06, + 252.99, + 368.13, + 250.66, + 371, + 250.66, + 374.22, + 252.27, + 376.36, + 255.85, + 379.05, + 256.03, + 381.37 + ] + ], + "iscrowd": 0, + "bbox": [ + 251.0, + 326.0, + 146.0, + 56.0 + ], + "area": 6405, + "category_id": 1611841 + }, + { + "id": 54, + "image_id": 4, + "segmentation": [ + [ + 339.59, + 327.16, + 340.67, + 317.31, + 356.59, + 298.35, + 355.88, + 297.45, + 346.75, + 294.23, + 346.57, + 293.52, + 349.62, + 288.86, + 354.8, + 288.5, + 356.95, + 290.29, + 357.67, + 292.62, + 359.64, + 292.98, + 377.89, + 267.21, + 390.59, + 255.76, + 417.61, + 254.33, + 454.29, + 259.7, + 465.21, + 265.24, + 474.51, + 273.83, + 478.09, + 285.64, + 479.52, + 301.93, + 478.27, + 324.11, + 477.02, + 331.81, + 472.37, + 340.04, + 469.5, + 342.37, + 466.64, + 342.72, + 462.53, + 342.01, + 460.38, + 339.14, + 460.2, + 337.18, + 449.1, + 354, + 449.28, + 367.95, + 447.67, + 370.82, + 444.27, + 374.57, + 436.76, + 376.9, + 431.57, + 376.36, + 427.81, + 371.89, + 396.68, + 373.68, + 396.85, + 362.41, + 389.16, + 337.53, + 379.32, + 332.34, + 374.13, + 330.38 + ] + ], + "iscrowd": 0, + "bbox": [ + 340.0, + 254.0, + 140.0, + 123.0 + ], + "area": 11307, + "category_id": 1611841 + }, + { + "id": 55, + "image_id": 4, + "segmentation": [ + [ + 406.52, + 253.43, + 414.39, + 239.83, + 405.44, + 236.43, + 403.65, + 233.57, + 404.01, + 230.17, + 405.27, + 229.46, + 407.77, + 229.46, + 411.53, + 230.53, + 415.29, + 233.75, + 416.72, + 233.93, + 436.58, + 209.24, + 448.75, + 200.82, + 493.3, + 202.61, + 508.33, + 207.98, + 515.13, + 227.67, + 517.1, + 230.53, + 519.79, + 238.22, + 521.04, + 239.65, + 521.58, + 241.44, + 521.58, + 246.81, + 517.82, + 274.01, + 512.81, + 279.92, + 506.01, + 280.81, + 505.11, + 278.13, + 498.67, + 286.36, + 496.88, + 300.85, + 495.63, + 304.07, + 493.66, + 305.33, + 491.16, + 305.86, + 487.76, + 305.68, + 483.1, + 302.82, + 483.1, + 297.09, + 479.17, + 296.74, + 477.74, + 285.46, + 474.51, + 273.65, + 463.96, + 264.17, + 455.01, + 259.7, + 416.9, + 253.43 + ] + ], + "iscrowd": 0, + "bbox": [ + 404.0, + 201.0, + 118.0, + 105.0 + ], + "area": 6776, + "category_id": 1611841 + }, + { + "id": 56, + "image_id": 4, + "segmentation": [ + [ + 232.6, + 261.5, + 231.9, + 254.42, + 233.43, + 249.84, + 241.2, + 233.31, + 241.34, + 231.51, + 234.96, + 227.9, + 234.4, + 226.93, + 234.4, + 224.43, + 237.04, + 223.45, + 243.29, + 223.45, + 243.98, + 224.01, + 244.95, + 227.06, + 261.34, + 203.74, + 272.87, + 195.13, + 286.06, + 192.77, + 304.53, + 193.32, + 325.08, + 196.38, + 336.19, + 201.93, + 339.52, + 211.65, + 345.77, + 218.04, + 348.13, + 222.48, + 350.07, + 247.89, + 348.41, + 251.92, + 346.88, + 264.84, + 343.69, + 270.11, + 341.05, + 271.36, + 338.13, + 271.92, + 335.35, + 271.64, + 332.86, + 266.78, + 323.41, + 276.92, + 323.55, + 286.78, + 321.33, + 292.47, + 319.66, + 294, + 315.08, + 295.39, + 312.58, + 294.83, + 310.36, + 292.47, + 308.69, + 288.03, + 284.81, + 290.53, + 263.98, + 290.39, + 261.9, + 287.19, + 257.87, + 283.44, + 254.81, + 276.5, + 245.09, + 266.22 + ] + ], + "iscrowd": 0, + "bbox": [ + 232.0, + 193.0, + 118.0, + 102.0 + ], + "area": 8926, + "category_id": 1611841 + }, + { + "id": 57, + "image_id": 4, + "segmentation": [ + [ + 423.82, + 109.43, + 445.55, + 110.52, + 450.74, + 115.71, + 451.95, + 120.9, + 455.82, + 129.23, + 457.75, + 135.39, + 458.11, + 142.52, + 456.06, + 146.26, + 455.57, + 148.07, + 455.57, + 150.12, + 456.18, + 151.69, + 455.82, + 165.94, + 455.09, + 167.88, + 452.07, + 169.81, + 450.38, + 170.17, + 447.48, + 169.93, + 445.67, + 168, + 440.24, + 173.55, + 439.63, + 181.64, + 437.34, + 183.57, + 434.44, + 183.45, + 432.39, + 182.61, + 430.94, + 180.67, + 430.58, + 176.81, + 422.73, + 176.93, + 423.45, + 174.03, + 422.97, + 125.61, + 419.47, + 121.99, + 423.57, + 118.85 + ] + ], + "iscrowd": 0, + "bbox": [ + 420.0, + 109.0, + 38.0, + 75.0 + ], + "area": 2088, + "category_id": 1611841 + }, + { + "id": 58, + "image_id": 4, + "segmentation": [ + [ + 12.52, + 102.15, + 17.66, + 94.48, + 15.77, + 92.17, + 15.56, + 88.71, + 16.4, + 88.39, + 18.4, + 89.23, + 22.39, + 89.44, + 23.86, + 90.6, + 39.72, + 73.17, + 46.02, + 71.17, + 65.76, + 69.28, + 80.04, + 68.97, + 89.91, + 69.7, + 98.1, + 73.48, + 102.51, + 77.79, + 103.77, + 81.15, + 97.89, + 123.68, + 97.89, + 127.35, + 97.05, + 124.31, + 82.66, + 126.93, + 81.61, + 134.39, + 80.46, + 136.38, + 75, + 138.27, + 72.79, + 138.27, + 71.22, + 137.54, + 69.96, + 136.28, + 68.59, + 132.81, + 63.55, + 133.13, + 63.24, + 104.04, + 57.88, + 103.51, + 57.67, + 106.88 + ] + ], + "iscrowd": 0, + "bbox": [ + 13.0, + 69.0, + 91.0, + 69.0 + ], + "area": 3565, + "category_id": 1611841 + }, + { + "id": 59, + "image_id": 4, + "segmentation": [ + [ + 0.41, + 101.91, + 57.82, + 107.46, + 58.02, + 103.56, + 63.37, + 103.97, + 63.17, + 173.31, + 55.76, + 174.96, + 57.2, + 186.07, + 57.2, + 205.21, + 53.08, + 205.42, + 52.06, + 222.5, + 50.41, + 226.82, + 47.32, + 232.17, + 45.88, + 236.49, + 42.18, + 239.78, + 36.42, + 242.25, + 27.57, + 242.46, + 24.28, + 245.13, + 22.42, + 248.63, + 20.78, + 250.28, + 15.02, + 253.16, + 5.76, + 253.77, + 0.41, + 252.13 + ] + ], + "iscrowd": 0, + "bbox": [ + 0.0, + 102.0, + 63.0, + 152.0 + ], + "area": 8215, + "category_id": 1611842 + }, + { + "id": 60, + "image_id": 4, + "segmentation": [ + [ + 222.23, + 143.48, + 232.31, + 141.21, + 234.17, + 142.45, + 239.52, + 142.65, + 242.6, + 140.18, + 244.87, + 135.66, + 245.69, + 116.52, + 262.15, + 116.72, + 261.74, + 109.52, + 265.65, + 100.67, + 261.95, + 83.39, + 253.72, + 81.54, + 214, + 77.42, + 210.5, + 76.39, + 208.65, + 62.4, + 206.8, + 60.75, + 206.59, + 57.25, + 118.52, + 53.96, + 117.9, + 56.64, + 109.26, + 61.16, + 106.38, + 65.49, + 98.56, + 122.69, + 97.94, + 141.62, + 99.18, + 152.74, + 108.02, + 155, + 110.7, + 160.35, + 112.96, + 162.61, + 115.02, + 163.23, + 118.11, + 162.41, + 119.96, + 155.82, + 169.14, + 159.12, + 168.94, + 161.38, + 190.95, + 142.45 + ] + ], + "iscrowd": 0, + "bbox": [ + 98.0, + 54.0, + 168.0, + 109.0 + ], + "area": 13453, + "category_id": 1611842 + }, + { + "id": 61, + "image_id": 4, + "segmentation": [ + [ + 303.1, + 192.66, + 304.75, + 181.96, + 307.84, + 169.2, + 301.66, + 167.96, + 300.84, + 160.56, + 302.69, + 156.44, + 306.4, + 156.44, + 309.48, + 157.68, + 321.01, + 130.92, + 318.95, + 129.28, + 318.95, + 120.84, + 350.64, + 103.14, + 351.46, + 106.64, + 421.84, + 110.14, + 422.66, + 108.7, + 423.28, + 108.7, + 423.28, + 118.58, + 419.16, + 122.08, + 422.45, + 125.78, + 423.07, + 173.73, + 419.16, + 196.77, + 415.46, + 208.91, + 412.99, + 212.82, + 410.52, + 214.06, + 407.84, + 213.85, + 404.55, + 210.35, + 403.93, + 208.3, + 392.41, + 217.76, + 390.76, + 231.76, + 389.74, + 233.4, + 385.83, + 235.67, + 376.57, + 235.67, + 374.3, + 233.81, + 372.66, + 227.85, + 348.37, + 228.46, + 348.58, + 222.29, + 339.73, + 211.59, + 335.82, + 201.3, + 324.92, + 195.95 + ] + ], + "iscrowd": 0, + "bbox": [ + 301.0, + 103.0, + 122.0, + 133.0 + ], + "area": 11773, + "category_id": 1611842 + }, + { + "id": 62, + "image_id": 4, + "segmentation": [ + [ + 462.58, + 200.89, + 463.2, + 193.07, + 468.34, + 173.93, + 459.08, + 172.08, + 461.96, + 158.29, + 467.31, + 158.29, + 467.93, + 165.7, + 471.22, + 165.91, + 481.31, + 128.04, + 490.36, + 110.96, + 486.86, + 109.52, + 486.45, + 99.85, + 489.33, + 82.36, + 518.76, + 62.61, + 517.73, + 80.1, + 586.87, + 88.74, + 585.64, + 91.62, + 589.55, + 95.53, + 589.96, + 160.35, + 587.08, + 178.05, + 582.76, + 190.81, + 581.11, + 211.18, + 579.46, + 214.06, + 576.79, + 215.91, + 572.47, + 216.32, + 568.56, + 214.47, + 559.71, + 226.2, + 556.21, + 228.05, + 551.89, + 234.02, + 552.1, + 250.07, + 548.8, + 249.66, + 545.1, + 246.37, + 544.28, + 243.9, + 543.86, + 236.08, + 519.58, + 237.11, + 516.7, + 229.49, + 514.85, + 227.85, + 508.26, + 207.06, + 493.45, + 202.12 + ] + ], + "iscrowd": 0, + "bbox": [ + 459.0, + 63.0, + 131.0, + 187.0 + ], + "area": 15549, + "category_id": 1611842 + } + ], + "categories": [ + { + "id": 1611841, + "name": "Personal vehicle", + "supercategory": "Personal vehicle", + "isthing": 1, + "color": [ + 65, + 152, + 24 + ] + }, + { + "id": 1611842, + "name": "Large vehicle", + "supercategory": "Large vehicle", + "isthing": 1, + "color": [ + 66, + 152, + 24 + ] + }, + { + "id": 1611843, + "name": "Human", + "supercategory": "Human", + "isthing": 1, + "color": [ + 67, + 152, + 24 + ] + }, + { + "id": 1611844, + "name": "Plant", + "supercategory": "Plant", + "isthing": 1, + "color": [ + 68, + 152, + 24 + ] + } + ] +} \ No newline at end of file diff --git a/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_1.jpg b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_1.jpg new file mode 100644 index 000000000..4dee9355b Binary files /dev/null and b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_1.jpg differ diff --git a/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_1.jpg___fuse.png b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_1.jpg___fuse.png new file mode 100644 index 000000000..d059b8c53 Binary files /dev/null and b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_1.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_2.jpg b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_2.jpg new file mode 100644 index 000000000..3ed3019ec Binary files /dev/null and b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_2.jpg differ diff --git a/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_2.jpg___fuse.png b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_2.jpg___fuse.png new file mode 100644 index 000000000..154007a88 Binary files /dev/null and b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_2.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_3.jpg b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_3.jpg new file mode 100644 index 000000000..be81964b7 Binary files /dev/null and b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_3.jpg differ diff --git a/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_3.jpg___fuse.png b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_3.jpg___fuse.png new file mode 100644 index 000000000..d017770eb Binary files /dev/null and b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_3.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_4.jpg b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_4.jpg new file mode 100644 index 000000000..5a530049d Binary files /dev/null and b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_4.jpg differ diff --git a/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_4.jpg___fuse.png b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_4.jpg___fuse.png new file mode 100644 index 000000000..7289fa46c Binary files /dev/null and b/tests/integration/convertors/data_set/coco_instance_segmentation/image_set/example_image_4.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/coco_object_detection/TestVectorAnnotationImage.json b/tests/integration/convertors/data_set/coco_object_detection/TestVectorAnnotationImage.json new file mode 100644 index 000000000..cef7edc7a --- /dev/null +++ b/tests/integration/convertors/data_set/coco_object_detection/TestVectorAnnotationImage.json @@ -0,0 +1,220 @@ +{ + "info": { + "description": "This is dataset.", + "url": "https://superannotate.ai", + "version": "1.0", + "year": 2023, + "contributor": "Superannotate AI", + "date_created": "25/05/2023" + }, + "licenses": [ + { + "url": "https://superannotate.ai", + "id": 1, + "name": "Superannotate AI" + } + ], + "images": [ + { + "id": 1, + "file_name": "example_image_1.jpg", + "height": 683, + "width": 1024, + "license": 1 + }, + { + "id": 2, + "file_name": "example_image_2.jpg", + "height": 1060, + "width": 1885, + "license": 1 + }, + { + "id": 3, + "file_name": "example_image_3.jpg", + "height": 675, + "width": 1200, + "license": 1 + }, + { + "id": 4, + "file_name": "example_image_4.jpg", + "height": 382, + "width": 680, + "license": 1 + } + ], + "annotations": [ + { + "id": 1, + "image_id": 1, + "segmentation": [ + [ + 437.16, + 341.5, + 437.16, + 357.09, + 465.23, + 357.09, + 465.23, + 341.5 + ] + ], + "iscrowd": 0, + "bbox": [ + 437.16, + 341.5, + 28.069999999999993, + 15.589999999999975 + ], + "area": 437, + "category_id": 1611841 + }, + { + "id": 2, + "image_id": 1, + "segmentation": [ + [ + 480, + 340, + 480, + 350, + 490, + 350, + 490, + 340 + ] + ], + "iscrowd": 0, + "bbox": [ + 480, + 340, + 10, + 10 + ], + "area": 100, + "category_id": -1 + }, + { + "id": 3, + "image_id": 1, + "segmentation": [ + [ + 500, + 340, + 500, + 350, + 510, + 350, + 510, + 340 + ] + ], + "iscrowd": 0, + "bbox": [ + 500, + 340, + 10, + 10 + ], + "area": 100, + "category_id": 1611841 + }, + { + "id": 4, + "image_id": 1, + "segmentation": [ + [ + 520, + 340, + 520, + 350, + 530, + 350, + 530, + 340 + ] + ], + "iscrowd": 0, + "bbox": [ + 520, + 340, + 10, + 10 + ], + "area": 100, + "category_id": 1611841 + }, + { + "id": 5, + "image_id": 1, + "segmentation": [ + [ + 240.68, + 378.93, + 240.68, + 410.11, + 304.61, + 410.11, + 304.61, + 378.93 + ] + ], + "iscrowd": 0, + "bbox": [ + 240.68, + 378.93, + 63.93000000000001, + 31.180000000000007 + ], + "area": 1993, + "category_id": 1611842 + } + ], + "categories": [ + { + "id": 1611841, + "name": "Personal vehicle", + "supercategory": "Personal vehicle", + "isthing": 1, + "color": [ + 65, + 152, + 24 + ] + }, + { + "id": 1611842, + "name": "Large vehicle", + "supercategory": "Large vehicle", + "isthing": 1, + "color": [ + 66, + 152, + 24 + ] + }, + { + "id": 1611843, + "name": "Human", + "supercategory": "Human", + "isthing": 1, + "color": [ + 67, + 152, + 24 + ] + }, + { + "id": 1611844, + "name": "Plant", + "supercategory": "Plant", + "isthing": 1, + "color": [ + 68, + 152, + 24 + ] + } + ] +} \ No newline at end of file diff --git a/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_1.jpg b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_1.jpg new file mode 100644 index 000000000..4dee9355b Binary files /dev/null and b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_1.jpg differ diff --git a/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_1.jpg___fuse.png b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_1.jpg___fuse.png new file mode 100644 index 000000000..d059b8c53 Binary files /dev/null and b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_1.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_2.jpg b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_2.jpg new file mode 100644 index 000000000..3ed3019ec Binary files /dev/null and b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_2.jpg differ diff --git a/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_2.jpg___fuse.png b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_2.jpg___fuse.png new file mode 100644 index 000000000..154007a88 Binary files /dev/null and b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_2.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_3.jpg b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_3.jpg new file mode 100644 index 000000000..be81964b7 Binary files /dev/null and b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_3.jpg differ diff --git a/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_3.jpg___fuse.png b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_3.jpg___fuse.png new file mode 100644 index 000000000..d017770eb Binary files /dev/null and b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_3.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_4.jpg b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_4.jpg new file mode 100644 index 000000000..5a530049d Binary files /dev/null and b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_4.jpg differ diff --git a/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_4.jpg___fuse.png b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_4.jpg___fuse.png new file mode 100644 index 000000000..7289fa46c Binary files /dev/null and b/tests/integration/convertors/data_set/coco_object_detection/image_set/example_image_4.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/sample_project_vector/classes/classes.json b/tests/integration/convertors/data_set/sample_project_vector/classes/classes.json new file mode 100644 index 000000000..810a5a436 --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector/classes/classes.json @@ -0,0 +1,157 @@ +[ + { + "id": 55917, + "project_id": 11979, + "name": "Personal vehicle", + "color": "#ecb65f", + "count": 25, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:48:19.000Z", + "attribute_groups": [ + { + "id": 17245, + "class_id": 55917, + "name": "Num doors", + "is_multiselect": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attributes": [ + { + "id": 62792, + "group_id": 17245, + "project_id": 11979, + "name": "2", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:46:28.000Z" + }, + { + "id": 62793, + "group_id": 17245, + "project_id": 11979, + "name": "4", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + } + ] + } + ] + }, + { + "id": 55918, + "project_id": 11979, + "name": "Large vehicle", + "color": "#737b28", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:48:19.000Z", + "attribute_groups": [ + { + "id": 17246, + "class_id": 55918, + "name": "swedish", + "is_multiselect": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attributes": [ + { + "id": 62794, + "group_id": 17246, + "project_id": 11979, + "name": "yes", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + }, + { + "id": 62795, + "group_id": 17246, + "project_id": 11979, + "name": "no", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:46:28.000Z" + } + ] + }, + { + "id": 17247, + "class_id": 55918, + "name": "Num doors", + "is_multiselect": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attributes": [ + { + "id": 62796, + "group_id": 17247, + "project_id": 11979, + "name": "2", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + }, + { + "id": 62797, + "group_id": 17247, + "project_id": 11979, + "name": "4", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:46:28.000Z" + } + ] + } + ] + }, + { + "id": 55919, + "project_id": 11979, + "name": "Human", + "color": "#e4542b", + "count": 9, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:48:14.000Z", + "attribute_groups": [ + { + "id": 17248, + "class_id": 55919, + "name": "Height", + "is_multiselect": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attributes": [ + { + "id": 62798, + "group_id": 17248, + "project_id": 11979, + "name": "Tall", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + }, + { + "id": 62799, + "group_id": 17248, + "project_id": 11979, + "name": "Short", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + } + ] + } + ] + }, + { + "id": 55920, + "project_id": 11979, + "name": "Plant", + "color": "#46ccb2", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attribute_groups": [] + } +] diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_1.jpg b/tests/integration/convertors/data_set/sample_project_vector/example_image_1.jpg new file mode 100644 index 000000000..4dee9355b Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector/example_image_1.jpg differ diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_1.jpg.json b/tests/integration/convertors/data_set/sample_project_vector/example_image_1.jpg.json new file mode 100644 index 000000000..115cadfe1 --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector/example_image_1.jpg.json @@ -0,0 +1,2943 @@ +{ + "metadata": { + "name": "example_image_1.jpg", + "status": "Completed", + "width": 1024, + "height": 683, + "pinned": false, + "lastAction": { + "email": "shab.prog@gmail.com", + "timestamp": 1644997568 + } + }, + "comments": [ + { + "creationType": "Preannotation", + "x": 621.41, + "y": 631.6, + "resolved": true, + "correspondence": [ + { + "text": "Bordyuri mi mas@ petqa lini parking class-i mej myus mas@ Terrian class-i", + "email": "hovnatan@superannotate.com" + } + ] + }, + { + "creationType": "Preannotation", + "x": 521.41, + "y": 531.6, + "resolved": false, + "correspondence": [ + { + "text": "dd", + "email": "hovnatan@superannotate.com" + } + ] + } + ], + "tags": [], + "instances": [ + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "bbox", + "pointLabels": {}, + "trackingId": "aaa97f80c9e54a5f2dc2e920fc92e5033d9af45b", + "groupId": 0, + "points": { + "x1": 437.16, + "x2": 465.23, + "y1": 341.5, + "y2": 357.09 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle1", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "bbox", + "pointLabels": {}, + "groupId": 0, + "points": { + "x1": 480.0, + "x2": 490.0, + "y1": 340.0, + "y2": 350.0 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [ + { + "id": 117845, + "groupId": 28230, + "name": "10", + "groupName": "Num doors" + } + ], + "type": "bbox", + "pointLabels": {}, + "groupId": 0, + "points": { + "x1": 500.0, + "x2": 510.0, + "y1": 340.0, + "y2": 350.0 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [ + { + "id": 117845, + "groupId": 28230, + "name": "4", + "groupName": "Num doors1" + } + ], + "type": "bbox", + "pointLabels": {}, + "groupId": 0, + "points": { + "x1": 520.0, + "x2": 530.0, + "y1": 340.0, + "y2": 350.0 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [ + { + "id": 117846, + "groupId": 28230, + "name": "4", + "groupName": "Num doors" + } + ], + "type": "template", + "pointLabels": { + "4": "top_left", + "5": "bottom_left" + }, + "trackingId": "cbde2787e76c41be77c1079e8d090252ad701ea", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 800.8311630011381, + "y": 431.7220764160156 + }, + { + "id": 2, + "x": 834.6965942382812, + "y": 431.8820692877566 + }, + { + "id": 3, + "x": 834.6965942382812, + "y": 480.848388671875 + }, + { + "id": 4, + "x": 801.0125574701838, + "y": 480.848388671875 + }, + { + "id": 5, + "x": 702.6083268971072, + "y": 437.5428573337124 + }, + { + "id": 6, + "x": 702.5221557617188, + "y": 474.8859480851478 + } + ], + "connections": [ + { + "id": 1, + "from": 1, + "to": 2 + }, + { + "id": 2, + "from": 2, + "to": 3 + }, + { + "id": 3, + "from": 3, + "to": 4 + }, + { + "id": 4, + "from": 4, + "to": 1 + }, + { + "id": 5, + "from": 1, + "to": 5 + }, + { + "id": 6, + "from": 5, + "to": 6 + }, + { + "id": 7, + "from": 6, + "to": 4 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "bf069efee9e65463824466f442a409a137eabaee", + "groupId": 0, + "points": [ + 281.98, + 383.75, + 282.55, + 378.1, + 287.26, + 376.12, + 297.35, + 372.91, + 311.01, + 372.82, + 319.59, + 375.74, + 323.55, + 378.28, + 325.91, + 381.68, + 326.66, + 385.45, + 325.43, + 387.62, + 324.02, + 388.75, + 317.23, + 388.84, + 315.54, + 390.26, + 312.43, + 390.54, + 308.66, + 388.46, + 306.39, + 388.84, + 297.44, + 389.03, + 291.5, + 388.18, + 287.64, + 384.51 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "a520dde722112d1579ff65260166d02ac1c14e2", + "groupId": 1, + "points": [ + 266.9, + 384.88, + 267.47, + 404.21, + 276.23, + 404.87, + 277.65, + 407.32, + 278.78, + 407.79, + 282.17, + 407.79, + 284.15, + 407.32, + 285.19, + 403.92, + 292.73, + 403.83, + 293.29, + 405.43, + 294.99, + 406.37, + 297.53, + 406.28, + 298.57, + 405.43, + 301.12, + 404.39, + 302.15, + 402.41, + 303.38, + 395.53, + 301.49, + 391.39, + 296.12, + 389.03, + 291.78, + 388.84, + 286.79, + 384.13, + 284.9, + 384.51 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "97e8bcc305b69af97b1a51c102c22a03887410bd", + "groupId": 1, + "points": [ + 262.94, + 385.54, + 263.88, + 404.68, + 262.47, + 404.96, + 262.19, + 406.66, + 261.34, + 408.07, + 259.74, + 408.54, + 256.53, + 408.64, + 255.59, + 408.16, + 254.84, + 407.13, + 254.08, + 403.92, + 252.76, + 402.79, + 250.69, + 402.32, + 249.75, + 401.19, + 250.5, + 389.03, + 254.18, + 384.51, + 262.56, + 384.32 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "15e2bd2a9bf66c4df00df9fbe6fd6db43abc56", + "groupId": 0, + "points": [ + 348.62, + 395.91, + 367.76, + 395.34, + 367, + 384.32, + 364.36, + 378, + 349.09, + 377.81, + 346.55, + 385.54, + 346.55, + 395.82 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "98c3f3a3fdeb809c7a8de125447acce21abda84f", + "groupId": 0, + "points": [ + 325.25, + 402.32, + 321.1, + 410.99, + 321, + 424.47, + 329.21, + 424.75, + 329.49, + 423.06, + 344.57, + 423.15, + 344.85, + 424.85, + 349.94, + 424.38, + 349.09, + 409.2, + 344.57, + 401.47 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "de78e5e22b397426228bed63c15ad2f41bfe653", + "groupId": 0, + "points": [ + 114.81, + 432.5, + 149.32, + 430.8, + 169.65, + 442.24, + 187.65, + 446.05, + 192.94, + 453.25, + 192.31, + 462.14, + 189.77, + 467.44, + 183.84, + 470.83, + 177.48, + 472.52, + 169.65, + 480.57, + 163.93, + 481.62, + 160.54, + 477.18, + 159.27, + 472.73, + 159.91, + 468.28, + 159.49, + 458.76, + 156.94, + 450.71, + 136.62, + 437.37, + 119.04, + 436.52 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "7adde574ed24f845d700b0c8371122bfe667751f", + "groupId": 0, + "points": [ + 120.52, + 437.37, + 135.77, + 437.79, + 156.31, + 450.5, + 158.85, + 459.39, + 159.27, + 468.71, + 158.21, + 474.21, + 152.92, + 480.78, + 147.84, + 483.74, + 142.54, + 484.17, + 139.37, + 482.05, + 140.43, + 477.6, + 144.87, + 475.91, + 146.78, + 471.25, + 144.03, + 457.27 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "4a47c34904d5e6bafdab32f9896c4013b1ddd153", + "groupId": 0, + "points": [ + 81.46, + 437.16, + 94.38, + 435.04, + 110.9, + 433.56, + 117.67, + 434.83, + 133.77, + 448.8, + 144.99, + 457.27, + 147.32, + 471.67, + 145.62, + 475.91, + 141.6, + 477.6, + 136.31, + 485.22, + 131.65, + 487.98, + 126.78, + 488.61, + 122.97, + 472.73, + 118.52, + 464.26, + 110.9, + 455.37, + 103.06, + 441.18, + 99.89, + 438.64 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "eb882a5e0012c77a1557c47bf386b21b6f6848", + "groupId": 0, + "points": [ + 684.8, + 420.93, + 683.1, + 416.3, + 634.11, + 414.48, + 626.68, + 419.72, + 622.9, + 424.35, + 609.62, + 425.69, + 604.63, + 427.76, + 600.73, + 434.34, + 600.48, + 440.19, + 600.97, + 440.92, + 604.02, + 442.01, + 604.99, + 445.67, + 607.18, + 447.99, + 610.96, + 450.18, + 618.64, + 450.91, + 621.2, + 448.72, + 622.54, + 446.16, + 626.8, + 446.16, + 626.92, + 440.67, + 629.6, + 435.31, + 633.75, + 432.39, + 646.79, + 430.32, + 664.09, + 420.81, + 685.05, + 422.4 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "56b1a09c67ce96a1719afe9f8c2b50b3dd08cd1c", + "groupId": 0, + "points": [ + 674.69, + 421.91, + 664.82, + 421.3, + 646.66, + 430.56, + 634.24, + 432.63, + 629.85, + 435.68, + 627.29, + 440.55, + 627.05, + 444.94, + 628.14, + 447.13, + 628.63, + 447.86, + 631.68, + 448.35, + 633.38, + 451.4, + 634.48, + 452.25, + 634.72, + 446.89, + 636.43, + 437.99, + 645.57, + 434.34, + 656.53, + 431.05 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "12a358abc908ad69e8b599ab359e12ecfe1047", + "groupId": 0, + "points": [ + 729.77, + 442.26, + 729.89, + 436.04, + 726.11, + 425.93, + 719.9, + 423.86, + 676.27, + 422.93, + 670.06, + 424.22, + 656.78, + 431.41, + 641.67, + 435.68, + 636.92, + 438.12, + 635.09, + 447.25, + 634.97, + 452.86, + 635.7, + 453.71, + 640.33, + 455.17, + 643.25, + 457.86, + 649.59, + 458.22, + 652.27, + 457.86, + 654.95, + 454.32, + 656.29, + 453.47, + 664.45, + 453.96, + 667.62, + 458.71, + 668.72, + 458.95, + 671.64, + 458.95, + 673.96, + 458.34, + 676.52, + 456.76, + 678.35, + 454.32, + 686.75, + 454.93, + 689.92, + 459.56, + 691.51, + 460.78, + 696.87, + 461.27, + 699.67, + 460.29, + 702.84, + 456.51, + 705.27, + 455.91, + 706.86, + 452.37, + 708.69, + 450.79, + 722.21, + 445.18, + 725.87, + 445.43 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 96, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "8f8ef909a683eaf9852b4d9784ec63b471c58d16", + "groupId": 0, + "points": [ + 703, + 462.81, + 703, + 464.81, + 712, + 472.81, + 712, + 474.81, + 724, + 474.81, + 729, + 471.81, + 741.61, + 472.86, + 745.32, + 476.75, + 753.29, + 476.57, + 756.25, + 473.97, + 770, + 473.81, + 780, + 478.81, + 784, + 478.81, + 792, + 474.81, + 802, + 474.81, + 806, + 478.81, + 812, + 479.81, + 817, + 477.81, + 820, + 473.81, + 832.61, + 472.49, + 834, + 468.81, + 833, + 453.81, + 827, + 448.81, + 805, + 437.81, + 783, + 434.81, + 750, + 434.81, + 739, + 437.81, + 726, + 445.81, + 722, + 445.81, + 709, + 450.81, + 707, + 452.81, + 705.11, + 457.11 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 98, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "d9975dc56b159b1690fbdea7b04dd35f2ba69366", + "groupId": 0, + "points": [ + 1023.86, + 432.09, + 1019, + 434, + 1008, + 440, + 1001, + 447, + 960, + 450, + 952, + 453, + 945, + 460, + 940, + 472, + 942, + 496, + 945, + 500, + 948, + 500, + 954, + 510, + 958, + 514, + 980, + 515, + 992, + 504, + 999, + 506, + 1006, + 513, + 1009, + 514, + 1016.82, + 516.78, + 1023.86, + 515.86 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 98, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "76d42d45e8b0c11a055dff75a405b515bb1dd53f", + "groupId": 0, + "points": [ + 6, + 447, + 0, + 459, + 0, + 528, + 2, + 531, + 12, + 530, + 20, + 536, + 25, + 536, + 33, + 530, + 61, + 530, + 77, + 528, + 86, + 534, + 94, + 535, + 99, + 532, + 100, + 525, + 102, + 522, + 109.39, + 521.38, + 111.09, + 529.47, + 122.6, + 528.2, + 126.44, + 491.97, + 122, + 474, + 118, + 465, + 110, + 456, + 103, + 442, + 99, + 439, + 47, + 438, + 16, + 442 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Large vehicle", + "visible": true, + "locked": false, + "probability": 100, + "attributes": [], + "type": "bbox", + "pointLabels": { + "0": "Top Left", + "4": "Bottom Right" + }, + "trackingId": "ac43151b5ac2d511beac8d2ec15695f421b93882", + "groupId": 0, + "points": { + "x1": 240.68, + "x2": 304.61, + "y1": 378.93, + "y2": 410.11 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": {}, + "trackingId": "2c89e809614523cf56c9aeab932e90b87aaf5e4f", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 590.36328125, + "y": 505.471431864795 + }, + { + "id": 2, + "x": 590.2529541686341, + "y": 504.29565523299704 + }, + { + "id": 3, + "x": 590.0863828554258, + "y": 502.0855402722193 + }, + { + "id": 4, + "x": 589.8926669948704, + "y": 500.1575188822054 + }, + { + "id": 5, + "x": 588.2789742606027, + "y": 491.4069519042969 + }, + { + "id": 6, + "x": 591.6578771570227, + "y": 498.7841862403542 + }, + { + "id": 7, + "x": 592.6675015963041, + "y": 497.5725781649412 + }, + { + "id": 8, + "x": 593.4538138253348, + "y": 495.05589353721325 + }, + { + "id": 9, + "x": 591.9352490770948, + "y": 502.2054028345276 + }, + { + "id": 10, + "x": 591.4315175486134, + "y": 504.8054433249257 + }, + { + "id": 11, + "x": 591.0675032060225, + "y": 506.48433274969244 + }, + { + "id": 12, + "x": 593.6178112658826, + "y": 501.4214392039917 + }, + { + "id": 13, + "x": 592.6682424021291, + "y": 504.65690054240156 + }, + { + "id": 14, + "x": 591.8309557568896, + "y": 507.1707458496094 + }, + { + "id": 15, + "x": 594.685306758671, + "y": 499.50420568423283 + }, + { + "id": 16, + "x": 594.4346668956044, + "y": 503.3523914672602 + }, + { + "id": 17, + "x": 593.4855715573489, + "y": 505.4433191217528 + }, + { + "id": 18, + "x": 592.9555204622038, + "y": 507.0652772868338 + }, + { + "id": 19, + "x": 589.5701713142814, + "y": 496.6512277677259 + }, + { + "id": 20, + "x": 590.8887191604782, + "y": 499.291411604618 + }, + { + "id": 21, + "x": 591.1992693890583, + "y": 501.8345208353304 + }, + { + "id": 22, + "x": 591.0341186523438, + "y": 501.9896778816582 + } + ], + "connections": [ + { + "id": 1, + "from": 5, + "to": 4 + }, + { + "id": 2, + "from": 3, + "to": 4 + }, + { + "id": 3, + "from": 3, + "to": 2 + }, + { + "id": 4, + "from": 2, + "to": 1 + }, + { + "id": 5, + "from": 5, + "to": 6 + }, + { + "id": 6, + "from": 6, + "to": 9 + }, + { + "id": 7, + "from": 9, + "to": 10 + }, + { + "id": 8, + "from": 10, + "to": 11 + }, + { + "id": 9, + "from": 5, + "to": 7 + }, + { + "id": 10, + "from": 7, + "to": 12 + }, + { + "id": 11, + "from": 12, + "to": 13 + }, + { + "id": 12, + "from": 13, + "to": 14 + }, + { + "id": 13, + "from": 5, + "to": 8 + }, + { + "id": 14, + "from": 8, + "to": 15 + }, + { + "id": 15, + "from": 15, + "to": 16 + }, + { + "id": 16, + "from": 16, + "to": 17 + }, + { + "id": 17, + "from": 17, + "to": 18 + }, + { + "id": 18, + "from": 5, + "to": 19 + }, + { + "id": 19, + "from": 19, + "to": 20 + }, + { + "id": 20, + "from": 20, + "to": 21 + }, + { + "id": 21, + "from": 21, + "to": 22 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": {}, + "trackingId": "bab62dc810b0cee390f8d5fb5fa62fade3c8da7", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 332.9866027832032, + "y": 526.2959883676228 + }, + { + "id": 2, + "x": 332.8439004919032, + "y": 527.5132367654812 + }, + { + "id": 3, + "x": 334.35612353649776, + "y": 527.3324179308058 + }, + { + "id": 4, + "x": 336.2640990372543, + "y": 524.0976645502819 + }, + { + "id": 5, + "x": 337.51601736886164, + "y": 516.1050720214844 + }, + { + "id": 6, + "x": 339.060296362573, + "y": 524.7754271337591 + }, + { + "id": 7, + "x": 341.64884537916925, + "y": 526.5125154522543 + }, + { + "id": 8, + "x": 344.0771833147321, + "y": 527.3880219566797 + }, + { + "id": 9, + "x": 335.88342117477254, + "y": 527.9910814406194 + }, + { + "id": 10, + "x": 334.6968087835627, + "y": 529.0659044885928 + }, + { + "id": 11, + "x": 333.86405081277377, + "y": 527.8757251825314 + }, + { + "id": 12, + "x": 339.9883503337483, + "y": 529.320022177355 + }, + { + "id": 13, + "x": 338.46802612975404, + "y": 530.370269900207 + }, + { + "id": 14, + "x": 337.1430909712236, + "y": 530.7341613769531 + }, + { + "id": 15, + "x": 341.9785882300073, + "y": 531.0127476105173 + }, + { + "id": 16, + "x": 340.85258785708925, + "y": 532.1869901255352 + }, + { + "id": 17, + "x": 339.1688606346047, + "y": 532.8862634202454 + }, + { + "id": 18, + "x": 339.0958418793731, + "y": 532.8511886128618 + }, + { + "id": 19, + "x": 342.74045026171336, + "y": 523.5337313474565 + }, + { + "id": 20, + "x": 343.0975823874003, + "y": 525.8059083903495 + }, + { + "id": 21, + "x": 341.95265642103254, + "y": 527.6336142573132 + }, + { + "id": 22, + "x": 340.4774169921875, + "y": 527.7661633949826 + } + ], + "connections": [ + { + "id": 1, + "from": 5, + "to": 4 + }, + { + "id": 2, + "from": 3, + "to": 4 + }, + { + "id": 3, + "from": 3, + "to": 2 + }, + { + "id": 4, + "from": 2, + "to": 1 + }, + { + "id": 5, + "from": 5, + "to": 6 + }, + { + "id": 6, + "from": 6, + "to": 9 + }, + { + "id": 7, + "from": 9, + "to": 10 + }, + { + "id": 8, + "from": 10, + "to": 11 + }, + { + "id": 9, + "from": 5, + "to": 7 + }, + { + "id": 10, + "from": 7, + "to": 12 + }, + { + "id": 11, + "from": 12, + "to": 13 + }, + { + "id": 12, + "from": 13, + "to": 14 + }, + { + "id": 13, + "from": 5, + "to": 8 + }, + { + "id": 14, + "from": 8, + "to": 15 + }, + { + "id": 15, + "from": 15, + "to": 16 + }, + { + "id": 16, + "from": 16, + "to": 17 + }, + { + "id": 17, + "from": 17, + "to": 18 + }, + { + "id": 18, + "from": 5, + "to": 19 + }, + { + "id": 19, + "from": 19, + "to": 20 + }, + { + "id": 20, + "from": 20, + "to": 21 + }, + { + "id": 21, + "from": 21, + "to": 22 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": {}, + "trackingId": "f8f542a9e9da918d5d5cb8eed9052713302089", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 500.7473449707031, + "y": 512.2212813363728 + }, + { + "id": 2, + "x": 499.83990268916875, + "y": 511.0267255350125 + }, + { + "id": 3, + "x": 499.35212573376333, + "y": 508.78712984486833 + }, + { + "id": 4, + "x": 499.49539176186363, + "y": 505.6112143549695 + }, + { + "id": 5, + "x": 505.1166338239397, + "y": 498.2973327636719 + }, + { + "id": 6, + "x": 501.5269101321042, + "y": 506.7595579931341 + }, + { + "id": 7, + "x": 503.99778336745044, + "y": 506.673098948348 + }, + { + "id": 8, + "x": 506.9555402483259, + "y": 505.9015717613673 + }, + { + "id": 9, + "x": 501.35003494430373, + "y": 510.62224599140063 + }, + { + "id": 10, + "x": 501.986939398797, + "y": 512.5206164026553 + }, + { + "id": 11, + "x": 503.15418142800803, + "y": 512.9774707880001 + }, + { + "id": 12, + "x": 503.6314472575764, + "y": 510.3629298921987 + }, + { + "id": 13, + "x": 503.9346398992853, + "y": 513.4720155056757 + }, + { + "id": 14, + "x": 506.3155763227861, + "y": 514.4830017089844 + }, + { + "id": 15, + "x": 506.32755673586666, + "y": 510.11449321598604 + }, + { + "id": 16, + "x": 506.78978268130794, + "y": 513.0534452036602 + }, + { + "id": 17, + "x": 508.6354744041359, + "y": 513.6350427171204 + }, + { + "id": 18, + "x": 508.56245564890435, + "y": 512.0705489644243 + }, + { + "id": 19, + "x": 509.736452458979, + "y": 503.5178622068315 + }, + { + "id": 20, + "x": 510.1524224752909, + "y": 508.84887714034943 + }, + { + "id": 21, + "x": 509.8898512452513, + "y": 511.676521972157 + }, + { + "id": 22, + "x": 509.7675476074219, + "y": 511.8091321449826 + } + ], + "connections": [ + { + "id": 1, + "from": 5, + "to": 4 + }, + { + "id": 2, + "from": 3, + "to": 4 + }, + { + "id": 3, + "from": 3, + "to": 2 + }, + { + "id": 4, + "from": 2, + "to": 1 + }, + { + "id": 5, + "from": 5, + "to": 6 + }, + { + "id": 6, + "from": 6, + "to": 9 + }, + { + "id": 7, + "from": 9, + "to": 10 + }, + { + "id": 8, + "from": 10, + "to": 11 + }, + { + "id": 9, + "from": 5, + "to": 7 + }, + { + "id": 10, + "from": 7, + "to": 12 + }, + { + "id": 11, + "from": 12, + "to": 13 + }, + { + "id": 12, + "from": 13, + "to": 14 + }, + { + "id": 13, + "from": 5, + "to": 8 + }, + { + "id": 14, + "from": 8, + "to": 15 + }, + { + "id": 15, + "from": 15, + "to": 16 + }, + { + "id": 16, + "from": 16, + "to": 17 + }, + { + "id": 17, + "from": 17, + "to": 18 + }, + { + "id": 18, + "from": 5, + "to": 19 + }, + { + "id": 19, + "from": 19, + "to": 20 + }, + { + "id": 20, + "from": 20, + "to": 21 + }, + { + "id": 21, + "from": 21, + "to": 22 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": { + "0": "Nose" + }, + "trackingId": "4fd95b7d6d95b7b84750e65aa89c70b9c86eb3b8", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 460.2714192848242, + "y": 486.08071083487926 + }, + { + "id": 2, + "x": 454.92882596998356, + "y": 481.9066804669699 + }, + { + "id": 3, + "x": 461.0707178220127, + "y": 481.61528130084 + }, + { + "id": 4, + "x": 462.32680898178, + "y": 482.46856689453125 + }, + { + "id": 5, + "x": 444.8684189242054, + "y": 483.808782080494 + }, + { + "id": 6, + "x": 455.8683091235324, + "y": 497.2664014146353 + }, + { + "id": 7, + "x": 439.86159351357213, + "y": 498.91779556832523 + }, + { + "id": 8, + "x": 432.98627658437374, + "y": 519.4614616257791 + }, + { + "id": 9, + "x": 415.8799309258186, + "y": 515.9119205914317 + }, + { + "id": 10, + "x": 467.5532979208077, + "y": 499.0862192385027 + }, + { + "id": 11, + "x": 479.28433580441475, + "y": 514.1935318132136 + }, + { + "id": 12, + "x": 498.51239013671875, + "y": 512.030284394326 + }, + { + "id": 13, + "x": 454.8632612058889, + "y": 546.5478157765722 + }, + { + "id": 14, + "x": 444.0484270284733, + "y": 546.0017547475499 + }, + { + "id": 15, + "x": 464.16791732413037, + "y": 546.2800095783913 + }, + { + "id": 16, + "x": 468.63255127661785, + "y": 573.6905686937465 + }, + { + "id": 17, + "x": 457.1555372435924, + "y": 577.0907707675425 + }, + { + "id": 18, + "x": 432.2792663574219, + "y": 587.0443088500142 + }, + { + "id": 19, + "x": 429.91821938954894, + "y": 606.0040783618011 + }, + { + "id": 20, + "x": 463.69909188680566, + "y": 602.9990721708784 + }, + { + "id": 21, + "x": 484.317011118421, + "y": 607.0152893066406 + } + ], + "connections": [ + { + "id": 1, + "from": 1, + "to": 6 + }, + { + "id": 2, + "from": 6, + "to": 10 + }, + { + "id": 3, + "from": 10, + "to": 11 + }, + { + "id": 4, + "from": 11, + "to": 12 + }, + { + "id": 5, + "from": 7, + "to": 8 + }, + { + "id": 6, + "from": 8, + "to": 9 + }, + { + "id": 7, + "from": 14, + "to": 7 + }, + { + "id": 8, + "from": 14, + "to": 13 + }, + { + "id": 9, + "from": 13, + "to": 15 + }, + { + "id": 10, + "from": 15, + "to": 10 + }, + { + "id": 11, + "from": 7, + "to": 6 + }, + { + "id": 12, + "from": 14, + "to": 16 + }, + { + "id": 13, + "from": 15, + "to": 17 + }, + { + "id": 14, + "from": 16, + "to": 20 + }, + { + "id": 15, + "from": 20, + "to": 21 + }, + { + "id": 16, + "from": 17, + "to": 18 + }, + { + "id": 17, + "from": 18, + "to": 19 + }, + { + "id": 18, + "from": 5, + "to": 2 + }, + { + "id": 19, + "from": 2, + "to": 1 + }, + { + "id": 20, + "from": 1, + "to": 1 + }, + { + "id": 21, + "from": 3, + "to": 1 + }, + { + "id": 22, + "from": 3, + "to": 4 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": { + "0": "Nose" + }, + "trackingId": "8894b2a1727f62631d26e885a5aaf9bc2ac2a578", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 569.4099335784475, + "y": 411.3099511426366 + }, + { + "id": 2, + "x": 565.2798621579027, + "y": 406.3627038525488 + }, + { + "id": 3, + "x": 567.377754831435, + "y": 405.3775634765625 + }, + { + "id": 4, + "x": 562.1341137290701, + "y": 404.67809199715805 + }, + { + "id": 5, + "x": 554.7715578497942, + "y": 408.0821593507321 + }, + { + "id": 6, + "x": 543.3504267346603, + "y": 422.3509408794715 + }, + { + "id": 7, + "x": 530.5325718803996, + "y": 432.4575436529285 + }, + { + "id": 8, + "x": 513.1264329109782, + "y": 468.5712030528786 + }, + { + "id": 9, + "x": 505.0783099316068, + "y": 498.26488325838557 + }, + { + "id": 10, + "x": 564.5019009957019, + "y": 431.59166109918834 + }, + { + "id": 11, + "x": 572.9879904477306, + "y": 466.0899617391194 + }, + { + "id": 12, + "x": 588.320701407949, + "y": 491.39197319472385 + }, + { + "id": 13, + "x": 547.1874731524312, + "y": 499.0241945917735 + }, + { + "id": 14, + "x": 536.2172232162276, + "y": 499.38451563669537 + }, + { + "id": 15, + "x": 558.2200212079587, + "y": 496.61095606638287 + }, + { + "id": 16, + "x": 565.8375729727319, + "y": 546.3956734358432 + }, + { + "id": 17, + "x": 545.4810409910515, + "y": 549.0779244124057 + }, + { + "id": 18, + "x": 502.6168107549702, + "y": 573.1785073042392 + }, + { + "id": 19, + "x": 506.98697907641065, + "y": 599.8044128417969 + }, + { + "id": 20, + "x": 555.6301612734296, + "y": 594.6135561518564 + }, + { + "id": 21, + "x": 585.93212890625, + "y": 602.2106018066406 + } + ], + "connections": [ + { + "id": 1, + "from": 1, + "to": 6 + }, + { + "id": 2, + "from": 6, + "to": 10 + }, + { + "id": 3, + "from": 10, + "to": 11 + }, + { + "id": 4, + "from": 11, + "to": 12 + }, + { + "id": 5, + "from": 7, + "to": 8 + }, + { + "id": 6, + "from": 8, + "to": 9 + }, + { + "id": 7, + "from": 14, + "to": 7 + }, + { + "id": 8, + "from": 14, + "to": 13 + }, + { + "id": 9, + "from": 13, + "to": 15 + }, + { + "id": 10, + "from": 15, + "to": 10 + }, + { + "id": 11, + "from": 7, + "to": 6 + }, + { + "id": 12, + "from": 14, + "to": 16 + }, + { + "id": 13, + "from": 15, + "to": 17 + }, + { + "id": 14, + "from": 16, + "to": 20 + }, + { + "id": 15, + "from": 20, + "to": 21 + }, + { + "id": 16, + "from": 17, + "to": 18 + }, + { + "id": 17, + "from": 18, + "to": 19 + }, + { + "id": 18, + "from": 5, + "to": 2 + }, + { + "id": 19, + "from": 2, + "to": 1 + }, + { + "id": 20, + "from": 1, + "to": 1 + }, + { + "id": 21, + "from": 3, + "to": 1 + }, + { + "id": 22, + "from": 3, + "to": 4 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": { + "0": "Nose" + }, + "trackingId": "2fe1f0c6c4af879955d6f19cfcf113a6b929b73", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 388.9594774956746, + "y": 424.3453820508397 + }, + { + "id": 2, + "x": 383.78257983006284, + "y": 420.2971520947363 + }, + { + "id": 3, + "x": 387.1454388819895, + "y": 419.5367736816406 + }, + { + "id": 4, + "x": 382.7214935156717, + "y": 418.8373022022362 + }, + { + "id": 5, + "x": 369.81775320578504, + "y": 421.3423522218259 + }, + { + "id": 6, + "x": 368.5353785473912, + "y": 441.4006845318153 + }, + { + "id": 7, + "x": 353.1593986570741, + "y": 443.28386811581913 + }, + { + "id": 8, + "x": 340.9145244608405, + "y": 484.88446599233174 + }, + { + "id": 9, + "x": 337.471170384727, + "y": 516.0647184634637 + }, + { + "id": 10, + "x": 380.0734310110131, + "y": 441.19236910700084 + }, + { + "id": 11, + "x": 392.6590966976267, + "y": 481.59771320396317 + }, + { + "id": 12, + "x": 411.22125244140625, + "y": 510.38843315566135 + }, + { + "id": 13, + "x": 368.27931488725477, + "y": 514.5319460566172 + }, + { + "id": 14, + "x": 361.465192188568, + "y": 515.6977785761485 + }, + { + "id": 15, + "x": 378.7043428557912, + "y": 512.1187075312266 + }, + { + "id": 16, + "x": 393.26020935016874, + "y": 556.5333687483432 + }, + { + "id": 17, + "x": 344.09536524138383, + "y": 562.7657295881869 + }, + { + "id": 18, + "x": 321.86363692684523, + "y": 598.4685463667392 + }, + { + "id": 19, + "x": 345.55514438756916, + "y": 610.3072814941406 + }, + { + "id": 20, + "x": 402.05302902711884, + "y": 603.0690004877939 + }, + { + "id": 21, + "x": 426.8170225465453, + "y": 607.0261535644531 + } + ], + "connections": [ + { + "id": 1, + "from": 1, + "to": 6 + }, + { + "id": 2, + "from": 6, + "to": 10 + }, + { + "id": 3, + "from": 10, + "to": 11 + }, + { + "id": 4, + "from": 11, + "to": 12 + }, + { + "id": 5, + "from": 7, + "to": 8 + }, + { + "id": 6, + "from": 8, + "to": 9 + }, + { + "id": 7, + "from": 14, + "to": 7 + }, + { + "id": 8, + "from": 14, + "to": 13 + }, + { + "id": 9, + "from": 13, + "to": 15 + }, + { + "id": 10, + "from": 15, + "to": 10 + }, + { + "id": 11, + "from": 7, + "to": 6 + }, + { + "id": 12, + "from": 14, + "to": 16 + }, + { + "id": 13, + "from": 15, + "to": 17 + }, + { + "id": 14, + "from": 16, + "to": 20 + }, + { + "id": 15, + "from": 20, + "to": 21 + }, + { + "id": 16, + "from": 17, + "to": 18 + }, + { + "id": 17, + "from": 18, + "to": 19 + }, + { + "id": 18, + "from": 5, + "to": 2 + }, + { + "id": 19, + "from": 2, + "to": 1 + }, + { + "id": 20, + "from": 1, + "to": 1 + }, + { + "id": 21, + "from": 3, + "to": 1 + }, + { + "id": 22, + "from": 3, + "to": 4 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "bf7e1885326a2aac18619c30d310c21e8fb89e93", + "groupId": 0, + "points": [ + 496.93, + 506.95, + 500.11, + 499.6, + 499.38, + 494.21, + 500.85, + 490.53, + 502.81, + 490.04, + 503.79, + 488.32, + 505.02, + 480.97, + 507.22, + 477.3, + 510.16, + 466.51, + 520.21, + 451.32, + 522.42, + 446.41, + 524.38, + 435.63, + 541.78, + 412.84, + 543, + 408.92, + 541.78, + 405.73, + 541.78, + 398.13, + 542.51, + 394.95, + 543.74, + 392.74, + 546.19, + 389.8, + 548.4, + 388.82, + 556.97, + 388.82, + 563.35, + 391.27, + 565.06, + 393.23, + 566.29, + 396.42, + 567.76, + 405.24, + 569.23, + 409.41, + 569.23, + 412.59, + 568.25, + 414.55, + 568, + 419.45, + 565.8, + 422.4, + 562.37, + 423.62, + 561.63, + 425.09, + 561.63, + 427.05, + 566.04, + 429.5, + 568, + 433.42, + 569.72, + 445.68, + 594.96, + 498.62, + 594.96, + 502.78, + 593.98, + 505.48, + 591.53, + 508.18, + 589.82, + 508.42, + 588.35, + 505.97, + 586.88, + 500.58, + 585.4, + 499.6, + 582.46, + 499.35, + 568.98, + 481.71, + 571.19, + 508.18, + 569.96, + 510.63, + 567.76, + 510.87, + 572.66, + 595.43, + 574.87, + 597.63, + 580.01, + 598.61, + 586.39, + 598.61, + 588.84, + 599.35, + 589.33, + 601.31, + 587.86, + 604.01, + 586.88, + 604.5, + 553.3, + 604.99, + 551.09, + 601.8, + 551.09, + 592.49, + 552.81, + 589.55, + 548.15, + 554.25, + 530.51, + 572.39, + 511.88, + 586.85, + 509.67, + 587.09, + 508.69, + 593.22, + 508.69, + 596.9, + 509.92, + 599.84, + 509.67, + 601.8, + 506.49, + 602.04, + 502.57, + 598.86, + 499.87, + 594.45, + 496.93, + 584.64, + 492.52, + 581.21, + 489.58, + 576.56, + 489.82, + 571.41, + 491.05, + 570.18, + 498.15, + 569.45, + 509.67, + 565.04, + 525.11, + 547.64, + 532.22, + 546.16, + 531.98, + 541.26, + 537.12, + 538.57, + 530.51, + 510.14, + 526.34, + 513.32, + 522.42, + 489.55, + 521.19, + 477.05, + 517.76, + 485.38, + 515.31, + 489.06, + 514.57, + 493.72, + 512.61, + 495.68, + 511.39, + 498.86, + 509.43, + 506.71, + 508.94, + 514.55, + 505.51, + 515.28, + 501.83, + 514.55, + 498.15, + 510.87, + 497.91, + 507.93 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": true, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": { + "0": "Left Hand", + "21": "Right Hand" + }, + "trackingId": "932bda5b59db89dd68602306c70d8da62e0afdc", + "groupId": 0, + "points": [ + 418.36, + 510.31, + 423.02, + 513.25, + 429.15, + 514.48, + 433.07, + 513.25, + 441.65, + 499.04, + 448.76, + 495.36, + 449.74, + 490.7, + 446.55, + 487.52, + 444.83, + 484.33, + 446.06, + 471.59, + 448.27, + 468.89, + 453.66, + 467.18, + 459.29, + 468.16, + 464.69, + 470.61, + 465.42, + 471.59, + 466.16, + 483.6, + 464.69, + 488.25, + 464.69, + 493.4, + 467.87, + 497.57, + 482.58, + 507.37, + 486.5, + 509.33, + 500.96, + 509.09, + 500.22, + 516.93, + 499.24, + 519.13, + 481.11, + 520.61, + 475.47, + 517.42, + 472.28, + 517.17, + 471.55, + 518.4, + 470.08, + 544.62, + 470.81, + 557.12, + 474.49, + 576, + 473.02, + 599.52, + 482.09, + 602.46, + 488.21, + 605.65, + 488.46, + 608.35, + 487.97, + 609.08, + 464.2, + 610.06, + 463.46, + 603.44, + 461.74, + 600.26, + 461.74, + 597.56, + 463.95, + 595.11, + 463.22, + 591.68, + 463.95, + 580.9, + 452.92, + 587.51, + 442.87, + 590.21, + 443.85, + 591.93, + 443.36, + 592.66, + 441.89, + 591.93, + 439.93, + 592.42, + 439.2, + 593.4, + 438.95, + 597.07, + 435.52, + 601.48, + 434.3, + 608.35, + 433.07, + 609.57, + 431.35, + 603.44, + 429.64, + 602.95, + 427.92, + 584.33, + 437.48, + 582.61, + 456.35, + 572.81, + 454.88, + 567.17, + 453.17, + 563.74, + 453.41, + 559.82, + 450.96, + 556.63, + 447.53, + 554.43, + 445.81, + 551.24, + 442.14, + 550.02, + 438.95, + 522.81, + 423.27, + 523.79, + 417.63, + 521.83, + 413.95, + 516.93, + 413.71, + 515.21 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "b4a35bf808984de199195734dfbb73b1cb5c8b5", + "groupId": 0, + "points": [ + 380.35, + 435.63, + 378.64, + 439.31, + 395.79, + 464.55, + 396.28, + 478.03, + 394.57, + 481.22, + 407.56, + 499.11, + 408.05, + 501.07, + 410.74, + 502.05, + 410.99, + 504.99, + 415.15, + 507.93, + 415.15, + 509.4, + 410.25, + 513.32, + 407.8, + 517, + 399.22, + 516.75, + 390.4, + 510.87, + 389.18, + 512.34, + 397.51, + 539.06, + 397.75, + 559.89, + 400.2, + 568.47, + 409.76, + 593.96, + 417.12, + 602.78, + 422.51, + 604.25, + 428.63, + 603.76, + 429.61, + 606.21, + 428.63, + 608.42, + 402.65, + 614.3, + 396.53, + 611.85, + 395.79, + 609.4, + 397.51, + 602.04, + 395.55, + 599.35, + 394.57, + 599.35, + 383.29, + 574.84, + 380.6, + 555.97, + 369.32, + 542, + 350.45, + 561.61, + 334.03, + 598.86, + 335.01, + 600.82, + 340.65, + 606.21, + 343.34, + 607.44, + 348.49, + 607.93, + 349.47, + 608.66, + 349.72, + 610.62, + 348.25, + 612.09, + 346.78, + 612.58, + 319.82, + 610.62, + 315.89, + 608.17, + 318.1, + 599.84, + 319.08, + 590.77, + 329.13, + 566.02, + 339.42, + 549.11, + 342.61, + 541.51, + 341.38, + 529.74, + 339.18, + 533.91, + 333.79, + 524.6, + 333.3, + 521.9, + 325.94, + 519.45, + 339.42, + 477.54, + 339.18, + 467.98, + 336.48, + 463.82, + 359.52, + 408.92, + 366.38, + 404.5, + 379.62, + 404.5, + 380.84, + 404.99, + 385.5, + 411.12, + 387.7, + 416.27, + 387.7, + 420.68, + 389.42, + 424.6, + 388.44, + 428.03, + 386.97, + 429.75, + 386.23, + 434.65 + ] + } + ] +} diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_1.jpg___fuse.png b/tests/integration/convertors/data_set/sample_project_vector/example_image_1.jpg___fuse.png new file mode 100644 index 000000000..368a0431b Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector/example_image_1.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_2.jpg b/tests/integration/convertors/data_set/sample_project_vector/example_image_2.jpg new file mode 100644 index 000000000..3ed3019ec Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector/example_image_2.jpg differ diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_2.jpg.json b/tests/integration/convertors/data_set/sample_project_vector/example_image_2.jpg.json new file mode 100644 index 000000000..14449884a --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector/example_image_2.jpg.json @@ -0,0 +1,1998 @@ +{ + "metadata": { + "name": "example_image_2.jpg", + "width": 1885, + "height": 1060, + "status": "Completed", + "pinned": false, + "isPredicted": null, + "projectId": null, + "annotatorEmail": null, + "qaEmail": null + }, + "instances": [ + { + "type": "polygon", + "classId": 72274, + "probability": 95, + "points": [ + 1741, + 722, + 1741, + 726, + 1744, + 729, + 1741, + 733, + 1742, + 769, + 1749, + 768, + 1752, + 763, + 1757, + 766, + 1759, + 779, + 1764, + 779, + 1770, + 772, + 1823, + 772, + 1826, + 774, + 1828, + 780, + 1834, + 780, + 1836, + 778, + 1836, + 744, + 1826, + 719, + 1817, + 709, + 1803, + 707, + 1763, + 707, + 1757, + 709, + 1748, + 719 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "9ee0c81d360b5aaeeb083b65f7863d52be7d908", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 96, + "points": [ + 1546, + 1048, + 1542, + 1045, + 1531, + 1043, + 1527, + 1039, + 1526, + 1034, + 1522, + 1033, + 1519, + 1028, + 1513, + 1025, + 1500, + 1022, + 1470, + 1022, + 1459, + 1024, + 1435, + 1024, + 1405, + 1028, + 1400, + 1030, + 1399, + 1033, + 1394, + 1037, + 1393, + 1041, + 1386, + 1047, + 1374, + 1047, + 1368, + 1050, + 1369, + 1055, + 1371, + 1057, + 1382, + 1059, + 1513, + 1059, + 1543, + 1057, + 1546, + 1055 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "fe751485fd9a28b9a39624c5110606f8a13eb497", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 96, + "points": [ + 1370, + 798, + 1367, + 796, + 1361, + 796, + 1349, + 781, + 1341, + 778, + 1304, + 779, + 1282, + 782, + 1277, + 790, + 1276, + 795, + 1273, + 798, + 1264, + 801, + 1266, + 811, + 1264, + 817, + 1265, + 859, + 1267, + 861, + 1272, + 861, + 1276, + 864, + 1277, + 878, + 1285, + 878, + 1288, + 869, + 1292, + 864, + 1318, + 866, + 1344, + 866, + 1353, + 864, + 1359, + 868, + 1361, + 876, + 1364, + 878, + 1370, + 878, + 1372, + 874, + 1375, + 841, + 1371, + 826, + 1371, + 817, + 1364, + 809, + 1364, + 807, + 1371, + 801 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "d4b8b9ee86ab57be7c5afa067f5fa9cb8cc62f83", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 97, + "points": [ + 1563, + 887, + 1563, + 889, + 1569, + 896, + 1569, + 900, + 1566, + 905, + 1567, + 939, + 1568, + 942, + 1573, + 946, + 1579, + 946, + 1581, + 948, + 1582, + 958, + 1589, + 968, + 1594, + 969, + 1597, + 967, + 1603, + 958, + 1613, + 957, + 1677, + 958, + 1687, + 968, + 1690, + 969, + 1694, + 968, + 1698, + 964, + 1699, + 927, + 1694, + 918, + 1693, + 906, + 1689, + 900, + 1690, + 891, + 1680, + 880, + 1679, + 873, + 1673, + 868, + 1650, + 865, + 1596, + 866, + 1588, + 868, + 1582, + 874, + 1581, + 879, + 1578, + 882, + 1569, + 883 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "68ef609bf39454907c1d87b7aabce86739a06b2c", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 98, + "points": [ + 1685, + 835, + 1685, + 874, + 1687, + 877, + 1700, + 879, + 1703, + 882, + 1704, + 890, + 1709, + 894, + 1714, + 895, + 1719, + 891, + 1722, + 886, + 1792, + 886, + 1795, + 888, + 1796, + 893, + 1799, + 895, + 1808, + 895, + 1811, + 892, + 1812, + 848, + 1803, + 839, + 1798, + 827, + 1783, + 813, + 1771, + 810, + 1718, + 811, + 1710, + 815, + 1701, + 824, + 1689, + 829 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "125e64e93ac3c9f1c0d6b74a90529a2a59d587d5", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 98, + "points": [ + 1481, + 781, + 1481, + 824, + 1492, + 833, + 1493, + 842, + 1502, + 842, + 1506, + 836, + 1567, + 836, + 1570, + 839, + 1570, + 841, + 1574, + 844, + 1579, + 844, + 1582, + 841, + 1583, + 801, + 1576, + 792, + 1579, + 783, + 1571, + 781, + 1564, + 771, + 1561, + 769, + 1543, + 766, + 1505, + 766, + 1498, + 768, + 1487, + 780 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "28f5b6c51b70739c2cdc2692af341a7098e056b", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 162, + 777, + 162, + 803, + 167, + 809, + 175, + 808, + 181, + 802, + 193, + 803, + 202, + 801, + 236, + 800, + 241, + 804, + 248, + 805, + 253, + 802, + 257, + 795, + 274, + 794, + 274, + 763, + 267, + 753, + 266, + 748, + 262, + 744, + 262, + 741, + 257, + 735, + 254, + 734, + 192, + 735, + 187, + 738, + 185, + 742, + 175, + 752, + 170, + 753, + 169, + 765, + 166, + 768, + 165, + 774 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "ccfe97f74dece5fea03619ff669dfefe68a5e0ba", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 666, + 700, + 667, + 708, + 663, + 716, + 663, + 741, + 667, + 744, + 671, + 744, + 679, + 739, + 724, + 739, + 732, + 744, + 737, + 744, + 740, + 738, + 747, + 732, + 746, + 701, + 738, + 695, + 738, + 688, + 731, + 681, + 684, + 681, + 678, + 687, + 678, + 690, + 675, + 695 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "c2bf17c4f161e7f0419bb2c41ea07412d42224", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 340, + 911, + 350, + 921, + 350, + 930, + 345, + 935, + 344, + 942, + 339, + 950, + 339, + 983, + 340, + 987, + 346, + 994, + 355, + 994, + 361, + 989, + 361, + 984, + 364, + 981, + 397, + 982, + 432, + 981, + 445, + 979, + 451, + 981, + 454, + 984, + 455, + 990, + 459, + 994, + 470, + 995, + 476, + 990, + 477, + 978, + 482, + 971, + 486, + 969, + 493, + 970, + 501, + 965, + 502, + 949, + 505, + 940, + 505, + 926, + 501, + 916, + 501, + 903, + 499, + 895, + 496, + 890, + 494, + 877, + 490, + 874, + 488, + 866, + 482, + 861, + 402, + 861, + 389, + 865, + 378, + 872, + 370, + 881, + 368, + 889, + 364, + 894, + 362, + 901, + 359, + 904 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "4f0117afcf92115345dba62a9a2585ed294c53d0", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 1137, + 876, + 1130, + 874, + 1122, + 874, + 1118, + 870, + 1112, + 857, + 1107, + 852, + 1101, + 849, + 1032, + 851, + 1027, + 853, + 1020, + 870, + 1014, + 875, + 1002, + 876, + 1001, + 880, + 1003, + 883, + 1007, + 884, + 1010, + 889, + 1004, + 898, + 1006, + 946, + 1011, + 971, + 1018, + 972, + 1022, + 970, + 1024, + 967, + 1024, + 962, + 1027, + 959, + 1045, + 959, + 1059, + 955, + 1079, + 955, + 1089, + 957, + 1111, + 956, + 1117, + 962, + 1118, + 966, + 1121, + 969, + 1130, + 968, + 1132, + 966, + 1132, + 917, + 1129, + 905, + 1132, + 898, + 1127, + 891, + 1126, + 886, + 1129, + 883, + 1136, + 881 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "b54277bb2047b209ceead953f10aed42d553cef", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 396, + 738, + 399, + 743, + 399, + 746, + 392, + 760, + 392, + 785, + 396, + 789, + 400, + 789, + 406, + 784, + 437, + 785, + 444, + 783, + 458, + 783, + 463, + 788, + 469, + 790, + 474, + 787, + 474, + 784, + 478, + 778, + 489, + 777, + 491, + 775, + 490, + 738, + 480, + 727, + 470, + 720, + 419, + 720, + 414, + 723, + 408, + 733, + 404, + 736 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "95f82dd6154efc3a9d9cd45e4db0a3852d5a798d", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 277, + 812, + 271, + 810, + 183, + 810, + 173, + 812, + 163, + 820, + 152, + 826, + 142, + 837, + 141, + 842, + 131, + 850, + 125, + 850, + 121, + 854, + 121, + 858, + 123, + 860, + 122, + 870, + 116, + 876, + 115, + 883, + 110, + 891, + 109, + 933, + 111, + 941, + 118, + 945, + 124, + 945, + 137, + 937, + 150, + 935, + 215, + 936, + 220, + 939, + 226, + 947, + 239, + 947, + 241, + 946, + 242, + 941, + 242, + 926, + 249, + 919, + 255, + 918, + 263, + 922, + 277, + 921, + 280, + 916, + 280, + 890, + 285, + 869, + 281, + 845, + 282, + 831, + 279, + 824, + 279, + 816 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "7940b1490647cc4607eada6f15a7e3f94d6b9577", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1, + 698, + 0, + 747, + 2, + 751, + 23, + 749, + 27, + 747, + 35, + 748, + 45, + 746, + 49, + 751, + 57, + 753, + 66, + 743, + 70, + 741, + 82, + 743, + 86, + 740, + 86, + 704, + 68, + 688, + 16, + 688, + 8, + 691 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "6a6929b0485169689f253af1ad9278b3cce11258", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 997, + 1002, + 998, + 1009, + 1010, + 1012, + 1014, + 1015, + 1008, + 1023, + 1005, + 1030, + 1005, + 1034, + 1000, + 1038, + 998, + 1042, + 998, + 1048, + 1000, + 1050, + 999, + 1053, + 1005, + 1056, + 1124, + 1057, + 1135, + 1055, + 1150, + 1056, + 1151, + 1054, + 1151, + 1036, + 1146, + 1027, + 1146, + 1019, + 1137, + 1009, + 1149, + 1007, + 1155, + 1004, + 1156, + 1000, + 1150, + 995, + 1142, + 995, + 1136, + 997, + 1128, + 982, + 1120, + 977, + 1038, + 977, + 1031, + 979, + 1025, + 983, + 1023, + 995, + 1021, + 997, + 1003, + 997 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "1ce1dbabb3758d266e9217575dc1d4e9ff60b128", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 277, + 811, + 279, + 816, + 277, + 820, + 277, + 827, + 284, + 835, + 284, + 854, + 288, + 861, + 312, + 861, + 342, + 857, + 348, + 858, + 354, + 866, + 359, + 866, + 363, + 863, + 364, + 855, + 368, + 850, + 382, + 849, + 385, + 847, + 384, + 837, + 387, + 829, + 388, + 817, + 384, + 810, + 383, + 799, + 367, + 782, + 305, + 782, + 293, + 792, + 288, + 801 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "654b7f814096da7f4b71e842b6c918c36a08eacf", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1649, + 1011, + 1655, + 1020, + 1653, + 1030, + 1649, + 1038, + 1648, + 1055, + 1651, + 1058, + 1696, + 1058, + 1726, + 1055, + 1800, + 1056, + 1814, + 1058, + 1820, + 1057, + 1821, + 1055, + 1815, + 1047, + 1815, + 1041, + 1811, + 1037, + 1808, + 1027, + 1805, + 1026, + 1803, + 1023, + 1802, + 1011, + 1793, + 1005, + 1789, + 999, + 1775, + 992, + 1735, + 990, + 1687, + 992, + 1680, + 996, + 1673, + 1003, + 1672, + 1007, + 1669, + 1010, + 1652, + 1009 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "32405cbb3cec698d9036f02fed1a973c44b1deff", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1339, + 926, + 1338, + 931, + 1347, + 940, + 1347, + 945, + 1343, + 952, + 1344, + 986, + 1348, + 997, + 1354, + 1002, + 1356, + 1009, + 1356, + 1022, + 1362, + 1031, + 1369, + 1031, + 1374, + 1029, + 1376, + 1022, + 1379, + 1019, + 1397, + 1019, + 1413, + 1021, + 1418, + 1023, + 1444, + 1023, + 1455, + 1020, + 1474, + 1020, + 1486, + 1024, + 1494, + 1023, + 1495, + 970, + 1491, + 963, + 1489, + 953, + 1485, + 949, + 1482, + 936, + 1483, + 932, + 1491, + 925, + 1487, + 922, + 1481, + 923, + 1475, + 920, + 1467, + 911, + 1466, + 906, + 1459, + 899, + 1370, + 899, + 1360, + 906, + 1359, + 917, + 1355, + 922 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "1681fb7d71c3e2b0ce28cbfc24eac3ea1922e8e", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1142, + 764, + 1138, + 761, + 1126, + 763, + 1123, + 759, + 1122, + 747, + 1117, + 742, + 1072, + 742, + 1054, + 744, + 1046, + 747, + 1044, + 750, + 1041, + 764, + 1038, + 767, + 1032, + 768, + 1038, + 773, + 1039, + 776, + 1035, + 785, + 1036, + 844, + 1049, + 844, + 1050, + 836, + 1054, + 833, + 1072, + 835, + 1117, + 833, + 1123, + 837, + 1124, + 842, + 1126, + 844, + 1133, + 845, + 1136, + 841, + 1138, + 806, + 1135, + 798, + 1134, + 784, + 1131, + 781, + 1129, + 775, + 1133, + 770, + 1140, + 769, + 1142, + 767 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "93a1502c2bc706c3fd3884c8ce8fc20ec097ea0", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1252, + 740, + 1252, + 749, + 1256, + 752, + 1255, + 767, + 1257, + 772, + 1257, + 781, + 1262, + 789, + 1263, + 796, + 1271, + 796, + 1280, + 784, + 1284, + 781, + 1292, + 779, + 1308, + 779, + 1321, + 777, + 1336, + 777, + 1341, + 779, + 1346, + 778, + 1347, + 763, + 1345, + 746, + 1342, + 743, + 1342, + 736, + 1346, + 734, + 1346, + 731, + 1337, + 728, + 1325, + 718, + 1307, + 716, + 1277, + 716, + 1270, + 719, + 1258, + 734, + 1256, + 744 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "53b3eb4966d32ad0adcd8acb8623b1942ec7050", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 184, + 638, + 179, + 633, + 173, + 631, + 124, + 631, + 115, + 636, + 109, + 643, + 105, + 651, + 100, + 655, + 94, + 655, + 91, + 662, + 89, + 686, + 93, + 708, + 103, + 708, + 107, + 701, + 115, + 698, + 160, + 698, + 180, + 679, + 192, + 677, + 192, + 654, + 185, + 643 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "3f2f416c69fc616840e064fe6abf6a9f578aa2c7", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 152, + 720, + 152, + 729, + 155, + 736, + 155, + 744, + 159, + 746, + 166, + 746, + 170, + 742, + 173, + 744, + 173, + 746, + 176, + 746, + 189, + 737, + 197, + 734, + 249, + 734, + 253, + 732, + 253, + 702, + 250, + 698, + 249, + 693, + 234, + 680, + 183, + 680, + 170, + 689, + 169, + 692, + 159, + 702 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "e801e4a11f7ad9b390cd4ee6c392435ba8fef570", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 98, + "points": [ + 1048, + 572, + 1045, + 579, + 1040, + 583, + 1041, + 592, + 1040, + 597, + 1037, + 601, + 1037, + 626, + 1035, + 648, + 1037, + 655, + 1036, + 667, + 1038, + 684, + 1041, + 684, + 1045, + 680, + 1053, + 667, + 1058, + 663, + 1082, + 663, + 1097, + 661, + 1102, + 665, + 1105, + 671, + 1113, + 680, + 1117, + 693, + 1123, + 693, + 1125, + 689, + 1125, + 673, + 1127, + 666, + 1126, + 650, + 1128, + 640, + 1126, + 599, + 1120, + 594, + 1099, + 591, + 1092, + 582, + 1091, + 577, + 1086, + 572 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "5874772e1428946f9be2b28ea88ed9cf22e625b3", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 1194, + 583, + 1192, + 601, + 1190, + 604, + 1190, + 608, + 1192, + 611, + 1191, + 629, + 1193, + 647, + 1198, + 651, + 1199, + 656, + 1205, + 657, + 1209, + 649, + 1220, + 649, + 1225, + 638, + 1229, + 634, + 1236, + 634, + 1241, + 636, + 1262, + 635, + 1262, + 595, + 1259, + 591, + 1255, + 589, + 1254, + 583, + 1242, + 577, + 1206, + 577 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "e9c738b1fd328df97c3f51616cdb574737a21eed", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72276, + "probability": 100, + "points": [ + 725.84, + 738.06, + 730.5, + 741, + 736.63, + 742.23, + 740.55, + 741, + 749.13, + 726.79, + 756.24, + 723.11, + 757.22, + 718.45, + 754.03, + 715.27, + 752.31, + 712.08, + 753.54, + 699.34, + 755.75, + 696.64, + 761.14, + 694.93, + 766.77, + 695.91, + 772.17, + 698.36, + 772.9, + 699.34, + 773.64, + 711.35, + 772.17, + 716, + 772.17, + 721.15, + 775.35, + 725.32, + 790.06, + 735.12, + 793.98, + 737.08, + 808.44, + 736.84, + 807.7, + 744.68, + 806.72, + 746.88, + 788.59, + 748.36, + 782.95, + 745.17, + 779.76, + 744.92, + 779.03, + 746.15, + 777.56, + 772.37, + 778.29, + 784.87, + 781.97, + 803.75, + 780.5, + 827.27, + 789.57, + 830.21, + 795.69, + 833.4, + 795.94, + 836.1, + 795.45, + 836.83, + 771.68, + 837.81, + 770.94, + 831.19, + 769.22, + 828.01, + 769.22, + 825.31, + 771.43, + 822.86, + 770.7, + 819.43, + 771.43, + 808.65, + 760.4, + 815.26, + 750.35, + 817.96, + 751.33, + 819.68, + 750.84, + 820.41, + 749.37, + 819.68, + 747.41, + 820.17, + 746.68, + 821.15, + 746.43, + 824.82, + 743, + 829.23, + 741.78, + 836.1, + 741.46, + 838.04, + 740.55, + 837.32, + 738.83, + 831.19, + 737.12, + 830.7, + 735.4, + 812.08, + 744.96, + 810.36, + 763.83, + 800.56, + 762.36, + 794.92, + 760.65, + 791.49, + 760.89, + 787.57, + 758.44, + 784.38, + 755.01, + 782.18, + 753.29, + 778.99, + 749.62, + 777.77, + 746.43, + 750.56, + 730.75, + 751.54, + 725.11, + 749.58, + 721.43, + 744.68, + 721.19, + 742.96 + ], + "groupId": 0, + "pointLabels": { + "0": "Left Hand", + "21": "Right Hand", + "36": "Right Foot", + "53": "Left Foot" + }, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "932bda5b59db89dd68602306c70d8da62e0afdc", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Human" + } + ], + "tags": [ + "tag1", + "tag2" + ], + "comments": [ + { + "x": 521.41, + "y": 531.6, + "resolved": false, + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "correspondence": [ + { + "text": "dd2", + "email": "hovnatan@superannotate.com" + } + ] + } + ] +} diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_2.jpg___fuse.png b/tests/integration/convertors/data_set/sample_project_vector/example_image_2.jpg___fuse.png new file mode 100644 index 000000000..d54f3bdba Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector/example_image_2.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_3.jpg b/tests/integration/convertors/data_set/sample_project_vector/example_image_3.jpg new file mode 100644 index 000000000..be81964b7 Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector/example_image_3.jpg differ diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_3.jpg.json b/tests/integration/convertors/data_set/sample_project_vector/example_image_3.jpg.json new file mode 100644 index 000000000..36c8a9fec --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector/example_image_3.jpg.json @@ -0,0 +1,720 @@ +{ + "metadata": { + "name": "example_image_3.jpg", + "width": 1200, + "height": 675, + "status": "Completed", + "pinned": false, + "isPredicted": null, + "projectId": null, + "annotatorEmail": null, + "qaEmail": null + }, + "instances": [ + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 0.39, + 272.46, + 4.33, + 260.62, + 30.82, + 222.01, + 17.3, + 216.66, + 41.25, + 208.77, + 58.72, + 209.33, + 72.81, + 200.03, + 99.02, + 194.96, + 182.44, + 185.09, + 280.79, + 179.18, + 315.73, + 183.97, + 319.4, + 186.78, + 359.13, + 183.4, + 380.55, + 184.25, + 441.98, + 205.38, + 485.38, + 231.59, + 561.19, + 240.89, + 562.88, + 242.3, + 568.52, + 244.27, + 583.17, + 254.7, + 585.99, + 259.21, + 589.94, + 267.95, + 593.32, + 280.63, + 594.16, + 286.83, + 593.88, + 290.21, + 580.92, + 311.06, + 575.56, + 318.11, + 573.03, + 328.82, + 573.31, + 342.91, + 571.05, + 351.36, + 567.96, + 358.97, + 565.42, + 364.05, + 561.47, + 369.12, + 556.68, + 373.35, + 549.07, + 378.14, + 544, + 380.11, + 531.88, + 382.08, + 521.46, + 381.8, + 502.57, + 372.22, + 495.25, + 364.33, + 492.43, + 359.54, + 306.15, + 408.01, + 302.21, + 414.77, + 300.23, + 415.9, + 295.72, + 416.18, + 291.5, + 418.44, + 284.17, + 441.83, + 277.41, + 449.72, + 272.9, + 457.04, + 267.26, + 463.24, + 257.96, + 468.32, + 245.28, + 471.98, + 238.23, + 472.54, + 228.93, + 474.52, + 218.22, + 474.52, + 204.13, + 470.85, + 190.61, + 462.12, + 183, + 453.94, + 176.23, + 453.1, + 168.63, + 450.84, + 165.81, + 449.43, + 161.3, + 445.49, + 158.48, + 440.7, + 157.63, + 437.88, + 156.51, + 428.02, + 89.44, + 432.81, + 79.01, + 428.3, + 72.81, + 431.4, + 62.66, + 434.5, + 57.87, + 435.34, + 48.57, + 435.63, + 46.88, + 434.5, + 46.04, + 429.99, + 44.06, + 426.04, + 0.39, + 404.91 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1198.84, + 310.57, + 1099.1, + 298.81, + 1059.15, + 297.83, + 1035.87, + 304.93, + 993.48, + 321.84, + 918, + 370.61, + 917.27, + 376.98, + 867.77, + 435.79, + 857.96, + 439.71, + 854.78, + 444.12, + 852.33, + 451.72, + 843.75, + 488.72, + 843.26, + 488.72, + 835.17, + 504.41, + 833.7, + 512.25, + 833.21, + 565.43, + 834.44, + 605.37, + 835.91, + 607.58, + 840.81, + 611.01, + 877.08, + 643.6, + 893.5, + 648.25, + 949.86, + 674.23, + 1199.33, + 674.48 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 981.04, + 326.53, + 979.55, + 317.59, + 972.1, + 288.89, + 933.33, + 276.22, + 923.27, + 270.63, + 884.88, + 245.28, + 849.85, + 237.08, + 783.88, + 227.02, + 709.72, + 229.63, + 608.34, + 256.09, + 607.6, + 256.84, + 604.62, + 264.29, + 606.85, + 267.64, + 591.94, + 294.85, + 574.43, + 320.19, + 572.94, + 328.39, + 572.94, + 340.69, + 574.05, + 343.3, + 574.43, + 347.77, + 574.43, + 360.45, + 571.44, + 368.64, + 569.95, + 375.35, + 570.33, + 394.36, + 575.17, + 413, + 576.66, + 415.98, + 580.76, + 420.08, + 583.37, + 425.67, + 587.84, + 429.77, + 592.69, + 437.22, + 596.42, + 439.46, + 600.89, + 440.58, + 612.07, + 445.42, + 627.35, + 445.79, + 640.02, + 441.69, + 645.24, + 436.1, + 684.75, + 448.03, + 716.8, + 459.96, + 729.84, + 469.65, + 741.77, + 489.77, + 750.34, + 493.87, + 754.81, + 494.62, + 765.25, + 494.62, + 779.41, + 490.52, + 786.12, + 487.16, + 793.57, + 480.45, + 798.79, + 472.25, + 802.14, + 463.68, + 802.89, + 456.6, + 804.01, + 453.62, + 804.38, + 440.58, + 893.83, + 403.31, + 915.82, + 378.33, + 918.05, + 368.27, + 976.19, + 331.75 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 653.44, + 240.81, + 656.42, + 217.7, + 703.01, + 171.86, + 763.76, + 158.44, + 811.84, + 159.19, + 840.16, + 164.41, + 843.51, + 166.64, + 846.87, + 167.76, + 855.81, + 177.08, + 861.4, + 181.18, + 865.88, + 185.65, + 867.74, + 186.77, + 873.33, + 187.51, + 879.29, + 192.36, + 898.67, + 192.73, + 907.25, + 196.83, + 914.7, + 205.03, + 919.17, + 215.09, + 918.43, + 242.3, + 912.84, + 262.43, + 885.26, + 244.16, + 785.75, + 226.27, + 707.85, + 228.88, + 659.03, + 242.3 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 770.09, + 156.21, + 763.76, + 153.23, + 689.96, + 148.01, + 647.1, + 152.85, + 634.06, + 158.44, + 619.15, + 168.51, + 611.7, + 172.23, + 608.71, + 174.84, + 586.35, + 181.92, + 581.51, + 186.02, + 579.64, + 196.83, + 579.64, + 203.54, + 577.78, + 209.88, + 574.05, + 215.47, + 573.68, + 223.29, + 577.78, + 230.75, + 582.25, + 235.96, + 595.3, + 239.69, + 604.99, + 240.81, + 611.32, + 244.16, + 614.68, + 247.15, + 618.4, + 248.64, + 628.84, + 248.64, + 651.95, + 243.42, + 654.93, + 217.7, + 702.26, + 171.11 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1198.32, + 145.4, + 1134.59, + 143.91, + 1118.57, + 145.77, + 1113.72, + 148.38, + 1107.38, + 150.24, + 1102.17, + 154.72, + 1097.32, + 162.54, + 1093.97, + 171.49, + 1090.24, + 177.08, + 1081.67, + 185.28, + 1028.37, + 202.05, + 1022.04, + 212.48, + 1018.31, + 235.22, + 1018.68, + 249.75, + 1020.92, + 253.11, + 1023.53, + 254.97, + 1035.08, + 260.56, + 1037.32, + 264.29, + 1039.93, + 297.09, + 1043.28, + 301.56, + 1058.93, + 297.09, + 1079.06, + 298.2, + 1080.55, + 295.97, + 1082.79, + 288.89, + 1082.79, + 282.18, + 1174.84, + 293.36, + 1178.57, + 306.4, + 1180.43, + 308.27, + 1182.67, + 309.39, + 1197.95, + 309.76 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1104.78, + 149.87, + 1073.84, + 127.14, + 1046.63, + 123.04, + 1016.82, + 120.06, + 948.99, + 128.25, + 947.5, + 129.37, + 929.61, + 161.8, + 928.49, + 168.13, + 928.49, + 194.22, + 930.73, + 199.81, + 932.22, + 200.93, + 935.57, + 201.68, + 938.55, + 203.91, + 938.93, + 209.88, + 940.04, + 213.6, + 946.01, + 224.04, + 959.42, + 224.78, + 963.9, + 220.68, + 965.01, + 218.45, + 965.01, + 215.47, + 1019.06, + 214.72, + 1019.8, + 212.11, + 1026.51, + 201.68, + 1081.3, + 184.53, + 1090.61, + 175.21 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 311.68, + 181.44, + 374.66, + 182.42, + 320.01, + 185.86 + ], + "groupId": 1, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 394.51, + 187.08, + 470.97, + 212.81, + 502.34, + 221.88, + 509.2, + 228.25, + 510.67, + 233.64, + 484.69, + 230.95, + 438.62, + 204.72, + 397.7, + 190.02, + 390.35, + 186.35 + ], + "groupId": 1, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + } + ], + "tags": [ + "tag2", + "tag3" + ], + "comments": [] +} diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_3.jpg___fuse.png b/tests/integration/convertors/data_set/sample_project_vector/example_image_3.jpg___fuse.png new file mode 100644 index 000000000..2c0fe5133 Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector/example_image_3.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_4.jpg b/tests/integration/convertors/data_set/sample_project_vector/example_image_4.jpg new file mode 100644 index 000000000..5a530049d Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector/example_image_4.jpg differ diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_4.jpg.json b/tests/integration/convertors/data_set/sample_project_vector/example_image_4.jpg.json new file mode 100644 index 000000000..6ac232a88 --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector/example_image_4.jpg.json @@ -0,0 +1,1143 @@ +{ + "metadata": { + "name": "example_image_4.jpg", + "width": 680, + "height": 382, + "status": "Completed", + "pinned": false, + "isPredicted": null, + "projectId": null, + "annotatorEmail": null, + "qaEmail": null + }, + "instances": [ + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 150.76, + 215.35, + 151.45, + 224.38, + 152.7, + 226.18, + 158.12, + 226.74, + 159.23, + 226.32, + 160.48, + 219.24, + 188.67, + 223.13, + 214.5, + 223.13, + 217.27, + 229.51, + 222.27, + 229.24, + 226.02, + 227.57, + 228.8, + 217.85, + 243.93, + 206.32, + 245.88, + 210.63, + 250.32, + 211.18, + 252.68, + 210.07, + 255.32, + 204.52, + 257.13, + 186.05, + 254.35, + 164.66, + 244.07, + 147.45, + 236.02, + 146.06, + 215.74, + 144.11, + 190.89, + 143, + 180.75, + 150.64, + 171.45, + 159.53, + 167.14, + 164.66, + 163.39, + 170.36, + 161.03, + 167.3, + 157.14, + 167.86, + 155.06, + 168.97, + 154.51, + 170.22, + 154.64, + 171.33, + 158.53, + 173.83, + 160.06, + 174.25, + 153.53, + 185.08, + 151.73, + 196.88, + 149.23, + 205.91 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 0.07, + 270.84, + 10.21, + 271.08, + 15.77, + 272.77, + 22.89, + 279.29, + 25.43, + 280.5, + 32.31, + 285.93, + 39.8, + 289.07, + 42.7, + 292.09, + 45.47, + 296.32, + 48.25, + 301.27, + 49.22, + 305.13, + 45.71, + 336.53, + 44.39, + 339.91, + 42.94, + 342.2, + 38.83, + 344.38, + 34.24, + 344.98, + 31.22, + 344.98, + 28.33, + 343.41, + 0.07, + 362.49 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 0.15, + 363.3, + 4.62, + 360.62, + 10.53, + 359.01, + 44.89, + 355.07, + 77.63, + 358.11, + 94.09, + 363.3, + 97.49, + 366.34, + 100.89, + 371, + 102.15, + 374.4, + 102.5, + 381.73, + 0.51, + 381.73 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 110.2, + 380.84, + 105.72, + 373.68, + 103.75, + 367.95, + 106.44, + 338.61, + 108.05, + 331.81, + 125.41, + 312.48, + 117, + 308.37, + 115.92, + 307.29, + 115.38, + 304.97, + 115.56, + 301.93, + 116.64, + 300.49, + 117.89, + 299.96, + 120.93, + 299.96, + 125.41, + 301.75, + 126.66, + 302.82, + 128.09, + 308.37, + 151.35, + 276.87, + 169.96, + 261.84, + 178.91, + 256.83, + 223.11, + 258.26, + 244.94, + 266.5, + 254.78, + 276.69, + 258.36, + 283.49, + 263.37, + 288.68, + 266.05, + 293.34, + 267.3, + 300.49, + 267.66, + 313.2, + 262.83, + 348.09, + 262.83, + 347.73, + 259.43, + 355.07, + 258.71, + 355.61, + 249.95, + 356.14, + 246.19, + 353.82, + 245.29, + 351.31, + 226.33, + 369.03, + 225.07, + 381.37 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 396.32, + 381.55, + 397.21, + 364.02, + 391.84, + 345.77, + 388.8, + 338.07, + 387.91, + 337.36, + 380.21, + 333.6, + 374.67, + 331.45, + 371.45, + 330.56, + 308.64, + 325.55, + 296.11, + 328.59, + 289.49, + 333.6, + 273.21, + 353.46, + 264.44, + 369.74, + 255.49, + 367.06, + 252.99, + 368.13, + 250.66, + 371, + 250.66, + 374.22, + 252.27, + 376.36, + 255.85, + 379.05, + 256.03, + 381.37 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 339.59, + 327.16, + 340.67, + 317.31, + 356.59, + 298.35, + 355.88, + 297.45, + 346.75, + 294.23, + 346.57, + 293.52, + 349.62, + 288.86, + 354.8, + 288.5, + 356.95, + 290.29, + 357.67, + 292.62, + 359.64, + 292.98, + 377.89, + 267.21, + 390.59, + 255.76, + 417.61, + 254.33, + 454.29, + 259.7, + 465.21, + 265.24, + 474.51, + 273.83, + 478.09, + 285.64, + 479.52, + 301.93, + 478.27, + 324.11, + 477.02, + 331.81, + 472.37, + 340.04, + 469.5, + 342.37, + 466.64, + 342.72, + 462.53, + 342.01, + 460.38, + 339.14, + 460.2, + 337.18, + 449.1, + 354, + 449.28, + 367.95, + 447.67, + 370.82, + 444.27, + 374.57, + 436.76, + 376.9, + 431.57, + 376.36, + 427.81, + 371.89, + 396.68, + 373.68, + 396.85, + 362.41, + 389.16, + 337.53, + 379.32, + 332.34, + 374.13, + 330.38 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 406.52, + 253.43, + 414.39, + 239.83, + 405.44, + 236.43, + 403.65, + 233.57, + 404.01, + 230.17, + 405.27, + 229.46, + 407.77, + 229.46, + 411.53, + 230.53, + 415.29, + 233.75, + 416.72, + 233.93, + 436.58, + 209.24, + 448.75, + 200.82, + 493.3, + 202.61, + 508.33, + 207.98, + 515.13, + 227.67, + 517.1, + 230.53, + 519.79, + 238.22, + 521.04, + 239.65, + 521.58, + 241.44, + 521.58, + 246.81, + 517.82, + 274.01, + 512.81, + 279.92, + 506.01, + 280.81, + 505.11, + 278.13, + 498.67, + 286.36, + 496.88, + 300.85, + 495.63, + 304.07, + 493.66, + 305.33, + 491.16, + 305.86, + 487.76, + 305.68, + 483.1, + 302.82, + 483.1, + 297.09, + 479.17, + 296.74, + 477.74, + 285.46, + 474.51, + 273.65, + 463.96, + 264.17, + 455.01, + 259.7, + 416.9, + 253.43 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 232.6, + 261.5, + 231.9, + 254.42, + 233.43, + 249.84, + 241.2, + 233.31, + 241.34, + 231.51, + 234.96, + 227.9, + 234.4, + 226.93, + 234.4, + 224.43, + 237.04, + 223.45, + 243.29, + 223.45, + 243.98, + 224.01, + 244.95, + 227.06, + 261.34, + 203.74, + 272.87, + 195.13, + 286.06, + 192.77, + 304.53, + 193.32, + 325.08, + 196.38, + 336.19, + 201.93, + 339.52, + 211.65, + 345.77, + 218.04, + 348.13, + 222.48, + 350.07, + 247.89, + 348.41, + 251.92, + 346.88, + 264.84, + 343.69, + 270.11, + 341.05, + 271.36, + 338.13, + 271.92, + 335.35, + 271.64, + 332.86, + 266.78, + 323.41, + 276.92, + 323.55, + 286.78, + 321.33, + 292.47, + 319.66, + 294, + 315.08, + 295.39, + 312.58, + 294.83, + 310.36, + 292.47, + 308.69, + 288.03, + 284.81, + 290.53, + 263.98, + 290.39, + 261.9, + 287.19, + 257.87, + 283.44, + 254.81, + 276.5, + 245.09, + 266.22 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 423.82, + 109.43, + 445.55, + 110.52, + 450.74, + 115.71, + 451.95, + 120.9, + 455.82, + 129.23, + 457.75, + 135.39, + 458.11, + 142.52, + 456.06, + 146.26, + 455.57, + 148.07, + 455.57, + 150.12, + 456.18, + 151.69, + 455.82, + 165.94, + 455.09, + 167.88, + 452.07, + 169.81, + 450.38, + 170.17, + 447.48, + 169.93, + 445.67, + 168, + 440.24, + 173.55, + 439.63, + 181.64, + 437.34, + 183.57, + 434.44, + 183.45, + 432.39, + 182.61, + 430.94, + 180.67, + 430.58, + 176.81, + 422.73, + 176.93, + 423.45, + 174.03, + 422.97, + 125.61, + 419.47, + 121.99, + 423.57, + 118.85 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 12.52, + 102.15, + 17.66, + 94.48, + 15.77, + 92.17, + 15.56, + 88.71, + 16.4, + 88.39, + 18.4, + 89.23, + 22.39, + 89.44, + 23.86, + 90.6, + 39.72, + 73.17, + 46.02, + 71.17, + 65.76, + 69.28, + 80.04, + 68.97, + 89.91, + 69.7, + 98.1, + 73.48, + 102.51, + 77.79, + 103.77, + 81.15, + 97.89, + 123.68, + 97.89, + 127.35, + 97.05, + 124.31, + 82.66, + 126.93, + 81.61, + 134.39, + 80.46, + 136.38, + 75, + 138.27, + 72.79, + 138.27, + 71.22, + 137.54, + 69.96, + 136.28, + 68.59, + 132.81, + 63.55, + 133.13, + 63.24, + 104.04, + 57.88, + 103.51, + 57.67, + 106.88 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 0.41, + 101.91, + 57.82, + 107.46, + 58.02, + 103.56, + 63.37, + 103.97, + 63.17, + 173.31, + 55.76, + 174.96, + 57.2, + 186.07, + 57.2, + 205.21, + 53.08, + 205.42, + 52.06, + 222.5, + 50.41, + 226.82, + 47.32, + 232.17, + 45.88, + 236.49, + 42.18, + 239.78, + 36.42, + 242.25, + 27.57, + 242.46, + 24.28, + 245.13, + 22.42, + 248.63, + 20.78, + 250.28, + 15.02, + 253.16, + 5.76, + 253.77, + 0.41, + 252.13 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 222.23, + 143.48, + 232.31, + 141.21, + 234.17, + 142.45, + 239.52, + 142.65, + 242.6, + 140.18, + 244.87, + 135.66, + 245.69, + 116.52, + 262.15, + 116.72, + 261.74, + 109.52, + 265.65, + 100.67, + 261.95, + 83.39, + 253.72, + 81.54, + 214, + 77.42, + 210.5, + 76.39, + 208.65, + 62.4, + 206.8, + 60.75, + 206.59, + 57.25, + 118.52, + 53.96, + 117.9, + 56.64, + 109.26, + 61.16, + 106.38, + 65.49, + 98.56, + 122.69, + 97.94, + 141.62, + 99.18, + 152.74, + 108.02, + 155, + 110.7, + 160.35, + 112.96, + 162.61, + 115.02, + 163.23, + 118.11, + 162.41, + 119.96, + 155.82, + 169.14, + 159.12, + 168.94, + 161.38, + 190.95, + 142.45 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 303.1, + 192.66, + 304.75, + 181.96, + 307.84, + 169.2, + 301.66, + 167.96, + 300.84, + 160.56, + 302.69, + 156.44, + 306.4, + 156.44, + 309.48, + 157.68, + 321.01, + 130.92, + 318.95, + 129.28, + 318.95, + 120.84, + 350.64, + 103.14, + 351.46, + 106.64, + 421.84, + 110.14, + 422.66, + 108.7, + 423.28, + 108.7, + 423.28, + 118.58, + 419.16, + 122.08, + 422.45, + 125.78, + 423.07, + 173.73, + 419.16, + 196.77, + 415.46, + 208.91, + 412.99, + 212.82, + 410.52, + 214.06, + 407.84, + 213.85, + 404.55, + 210.35, + 403.93, + 208.3, + 392.41, + 217.76, + 390.76, + 231.76, + 389.74, + 233.4, + 385.83, + 235.67, + 376.57, + 235.67, + 374.3, + 233.81, + 372.66, + 227.85, + 348.37, + 228.46, + 348.58, + 222.29, + 339.73, + 211.59, + 335.82, + 201.3, + 324.92, + 195.95 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 462.58, + 200.89, + 463.2, + 193.07, + 468.34, + 173.93, + 459.08, + 172.08, + 461.96, + 158.29, + 467.31, + 158.29, + 467.93, + 165.7, + 471.22, + 165.91, + 481.31, + 128.04, + 490.36, + 110.96, + 486.86, + 109.52, + 486.45, + 99.85, + 489.33, + 82.36, + 518.76, + 62.61, + 517.73, + 80.1, + 586.87, + 88.74, + 585.64, + 91.62, + 589.55, + 95.53, + 589.96, + 160.35, + 587.08, + 178.05, + 582.76, + 190.81, + 581.11, + 211.18, + 579.46, + 214.06, + 576.79, + 215.91, + 572.47, + 216.32, + 568.56, + 214.47, + 559.71, + 226.2, + 556.21, + 228.05, + 551.89, + 234.02, + 552.1, + 250.07, + 548.8, + 249.66, + 545.1, + 246.37, + 544.28, + 243.9, + 543.86, + 236.08, + 519.58, + 237.11, + 516.7, + 229.49, + 514.85, + 227.85, + 508.26, + 207.06, + 493.45, + 202.12 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + } + ], + "tags": [ + "tag1" + ], + "comments": [] +} diff --git a/tests/integration/convertors/data_set/sample_project_vector/example_image_4.jpg___fuse.png b/tests/integration/convertors/data_set/sample_project_vector/example_image_4.jpg___fuse.png new file mode 100644 index 000000000..10285ee1d Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector/example_image_4.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/classes/classes.json b/tests/integration/convertors/data_set/sample_project_vector_objects_json/classes/classes.json new file mode 100644 index 000000000..810a5a436 --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector_objects_json/classes/classes.json @@ -0,0 +1,157 @@ +[ + { + "id": 55917, + "project_id": 11979, + "name": "Personal vehicle", + "color": "#ecb65f", + "count": 25, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:48:19.000Z", + "attribute_groups": [ + { + "id": 17245, + "class_id": 55917, + "name": "Num doors", + "is_multiselect": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attributes": [ + { + "id": 62792, + "group_id": 17245, + "project_id": 11979, + "name": "2", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:46:28.000Z" + }, + { + "id": 62793, + "group_id": 17245, + "project_id": 11979, + "name": "4", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + } + ] + } + ] + }, + { + "id": 55918, + "project_id": 11979, + "name": "Large vehicle", + "color": "#737b28", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:48:19.000Z", + "attribute_groups": [ + { + "id": 17246, + "class_id": 55918, + "name": "swedish", + "is_multiselect": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attributes": [ + { + "id": 62794, + "group_id": 17246, + "project_id": 11979, + "name": "yes", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + }, + { + "id": 62795, + "group_id": 17246, + "project_id": 11979, + "name": "no", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:46:28.000Z" + } + ] + }, + { + "id": 17247, + "class_id": 55918, + "name": "Num doors", + "is_multiselect": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attributes": [ + { + "id": 62796, + "group_id": 17247, + "project_id": 11979, + "name": "2", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + }, + { + "id": 62797, + "group_id": 17247, + "project_id": 11979, + "name": "4", + "count": 1, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:46:28.000Z" + } + ] + } + ] + }, + { + "id": 55919, + "project_id": 11979, + "name": "Human", + "color": "#e4542b", + "count": 9, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:48:14.000Z", + "attribute_groups": [ + { + "id": 17248, + "class_id": 55919, + "name": "Height", + "is_multiselect": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attributes": [ + { + "id": 62798, + "group_id": 17248, + "project_id": 11979, + "name": "Tall", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + }, + { + "id": 62799, + "group_id": 17248, + "project_id": 11979, + "name": "Short", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z" + } + ] + } + ] + }, + { + "id": 55920, + "project_id": 11979, + "name": "Plant", + "color": "#46ccb2", + "count": 0, + "createdAt": "2020-10-12T11:35:20.000Z", + "updatedAt": "2020-10-12T11:35:20.000Z", + "attribute_groups": [] + } +] diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_1.jpg b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_1.jpg new file mode 100644 index 000000000..4dee9355b Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_1.jpg differ diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_1.jpg___fuse.png b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_1.jpg___fuse.png new file mode 100644 index 000000000..368a0431b Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_1.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_1.jpg___objects.json b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_1.jpg___objects.json new file mode 100644 index 000000000..115cadfe1 --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_1.jpg___objects.json @@ -0,0 +1,2943 @@ +{ + "metadata": { + "name": "example_image_1.jpg", + "status": "Completed", + "width": 1024, + "height": 683, + "pinned": false, + "lastAction": { + "email": "shab.prog@gmail.com", + "timestamp": 1644997568 + } + }, + "comments": [ + { + "creationType": "Preannotation", + "x": 621.41, + "y": 631.6, + "resolved": true, + "correspondence": [ + { + "text": "Bordyuri mi mas@ petqa lini parking class-i mej myus mas@ Terrian class-i", + "email": "hovnatan@superannotate.com" + } + ] + }, + { + "creationType": "Preannotation", + "x": 521.41, + "y": 531.6, + "resolved": false, + "correspondence": [ + { + "text": "dd", + "email": "hovnatan@superannotate.com" + } + ] + } + ], + "tags": [], + "instances": [ + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "bbox", + "pointLabels": {}, + "trackingId": "aaa97f80c9e54a5f2dc2e920fc92e5033d9af45b", + "groupId": 0, + "points": { + "x1": 437.16, + "x2": 465.23, + "y1": 341.5, + "y2": 357.09 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle1", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "bbox", + "pointLabels": {}, + "groupId": 0, + "points": { + "x1": 480.0, + "x2": 490.0, + "y1": 340.0, + "y2": 350.0 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [ + { + "id": 117845, + "groupId": 28230, + "name": "10", + "groupName": "Num doors" + } + ], + "type": "bbox", + "pointLabels": {}, + "groupId": 0, + "points": { + "x1": 500.0, + "x2": 510.0, + "y1": 340.0, + "y2": 350.0 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [ + { + "id": 117845, + "groupId": 28230, + "name": "4", + "groupName": "Num doors1" + } + ], + "type": "bbox", + "pointLabels": {}, + "groupId": 0, + "points": { + "x1": 520.0, + "x2": 530.0, + "y1": 340.0, + "y2": 350.0 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [ + { + "id": 117846, + "groupId": 28230, + "name": "4", + "groupName": "Num doors" + } + ], + "type": "template", + "pointLabels": { + "4": "top_left", + "5": "bottom_left" + }, + "trackingId": "cbde2787e76c41be77c1079e8d090252ad701ea", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 800.8311630011381, + "y": 431.7220764160156 + }, + { + "id": 2, + "x": 834.6965942382812, + "y": 431.8820692877566 + }, + { + "id": 3, + "x": 834.6965942382812, + "y": 480.848388671875 + }, + { + "id": 4, + "x": 801.0125574701838, + "y": 480.848388671875 + }, + { + "id": 5, + "x": 702.6083268971072, + "y": 437.5428573337124 + }, + { + "id": 6, + "x": 702.5221557617188, + "y": 474.8859480851478 + } + ], + "connections": [ + { + "id": 1, + "from": 1, + "to": 2 + }, + { + "id": 2, + "from": 2, + "to": 3 + }, + { + "id": 3, + "from": 3, + "to": 4 + }, + { + "id": 4, + "from": 4, + "to": 1 + }, + { + "id": 5, + "from": 1, + "to": 5 + }, + { + "id": 6, + "from": 5, + "to": 6 + }, + { + "id": 7, + "from": 6, + "to": 4 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "bf069efee9e65463824466f442a409a137eabaee", + "groupId": 0, + "points": [ + 281.98, + 383.75, + 282.55, + 378.1, + 287.26, + 376.12, + 297.35, + 372.91, + 311.01, + 372.82, + 319.59, + 375.74, + 323.55, + 378.28, + 325.91, + 381.68, + 326.66, + 385.45, + 325.43, + 387.62, + 324.02, + 388.75, + 317.23, + 388.84, + 315.54, + 390.26, + 312.43, + 390.54, + 308.66, + 388.46, + 306.39, + 388.84, + 297.44, + 389.03, + 291.5, + 388.18, + 287.64, + 384.51 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "a520dde722112d1579ff65260166d02ac1c14e2", + "groupId": 1, + "points": [ + 266.9, + 384.88, + 267.47, + 404.21, + 276.23, + 404.87, + 277.65, + 407.32, + 278.78, + 407.79, + 282.17, + 407.79, + 284.15, + 407.32, + 285.19, + 403.92, + 292.73, + 403.83, + 293.29, + 405.43, + 294.99, + 406.37, + 297.53, + 406.28, + 298.57, + 405.43, + 301.12, + 404.39, + 302.15, + 402.41, + 303.38, + 395.53, + 301.49, + 391.39, + 296.12, + 389.03, + 291.78, + 388.84, + 286.79, + 384.13, + 284.9, + 384.51 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "97e8bcc305b69af97b1a51c102c22a03887410bd", + "groupId": 1, + "points": [ + 262.94, + 385.54, + 263.88, + 404.68, + 262.47, + 404.96, + 262.19, + 406.66, + 261.34, + 408.07, + 259.74, + 408.54, + 256.53, + 408.64, + 255.59, + 408.16, + 254.84, + 407.13, + 254.08, + 403.92, + 252.76, + 402.79, + 250.69, + 402.32, + 249.75, + 401.19, + 250.5, + 389.03, + 254.18, + 384.51, + 262.56, + 384.32 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "15e2bd2a9bf66c4df00df9fbe6fd6db43abc56", + "groupId": 0, + "points": [ + 348.62, + 395.91, + 367.76, + 395.34, + 367, + 384.32, + 364.36, + 378, + 349.09, + 377.81, + 346.55, + 385.54, + 346.55, + 395.82 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "98c3f3a3fdeb809c7a8de125447acce21abda84f", + "groupId": 0, + "points": [ + 325.25, + 402.32, + 321.1, + 410.99, + 321, + 424.47, + 329.21, + 424.75, + 329.49, + 423.06, + 344.57, + 423.15, + 344.85, + 424.85, + 349.94, + 424.38, + 349.09, + 409.2, + 344.57, + 401.47 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "de78e5e22b397426228bed63c15ad2f41bfe653", + "groupId": 0, + "points": [ + 114.81, + 432.5, + 149.32, + 430.8, + 169.65, + 442.24, + 187.65, + 446.05, + 192.94, + 453.25, + 192.31, + 462.14, + 189.77, + 467.44, + 183.84, + 470.83, + 177.48, + 472.52, + 169.65, + 480.57, + 163.93, + 481.62, + 160.54, + 477.18, + 159.27, + 472.73, + 159.91, + 468.28, + 159.49, + 458.76, + 156.94, + 450.71, + 136.62, + 437.37, + 119.04, + 436.52 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "7adde574ed24f845d700b0c8371122bfe667751f", + "groupId": 0, + "points": [ + 120.52, + 437.37, + 135.77, + 437.79, + 156.31, + 450.5, + 158.85, + 459.39, + 159.27, + 468.71, + 158.21, + 474.21, + 152.92, + 480.78, + 147.84, + 483.74, + 142.54, + 484.17, + 139.37, + 482.05, + 140.43, + 477.6, + 144.87, + 475.91, + 146.78, + 471.25, + 144.03, + 457.27 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "4a47c34904d5e6bafdab32f9896c4013b1ddd153", + "groupId": 0, + "points": [ + 81.46, + 437.16, + 94.38, + 435.04, + 110.9, + 433.56, + 117.67, + 434.83, + 133.77, + 448.8, + 144.99, + 457.27, + 147.32, + 471.67, + 145.62, + 475.91, + 141.6, + 477.6, + 136.31, + 485.22, + 131.65, + 487.98, + 126.78, + 488.61, + 122.97, + 472.73, + 118.52, + 464.26, + 110.9, + 455.37, + 103.06, + 441.18, + 99.89, + 438.64 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "eb882a5e0012c77a1557c47bf386b21b6f6848", + "groupId": 0, + "points": [ + 684.8, + 420.93, + 683.1, + 416.3, + 634.11, + 414.48, + 626.68, + 419.72, + 622.9, + 424.35, + 609.62, + 425.69, + 604.63, + 427.76, + 600.73, + 434.34, + 600.48, + 440.19, + 600.97, + 440.92, + 604.02, + 442.01, + 604.99, + 445.67, + 607.18, + 447.99, + 610.96, + 450.18, + 618.64, + 450.91, + 621.2, + 448.72, + 622.54, + 446.16, + 626.8, + 446.16, + 626.92, + 440.67, + 629.6, + 435.31, + 633.75, + 432.39, + 646.79, + 430.32, + 664.09, + 420.81, + 685.05, + 422.4 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "56b1a09c67ce96a1719afe9f8c2b50b3dd08cd1c", + "groupId": 0, + "points": [ + 674.69, + 421.91, + 664.82, + 421.3, + 646.66, + 430.56, + 634.24, + 432.63, + 629.85, + 435.68, + 627.29, + 440.55, + 627.05, + 444.94, + 628.14, + 447.13, + 628.63, + 447.86, + 631.68, + 448.35, + 633.38, + 451.4, + 634.48, + 452.25, + 634.72, + 446.89, + 636.43, + 437.99, + 645.57, + 434.34, + 656.53, + 431.05 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "12a358abc908ad69e8b599ab359e12ecfe1047", + "groupId": 0, + "points": [ + 729.77, + 442.26, + 729.89, + 436.04, + 726.11, + 425.93, + 719.9, + 423.86, + 676.27, + 422.93, + 670.06, + 424.22, + 656.78, + 431.41, + 641.67, + 435.68, + 636.92, + 438.12, + 635.09, + 447.25, + 634.97, + 452.86, + 635.7, + 453.71, + 640.33, + 455.17, + 643.25, + 457.86, + 649.59, + 458.22, + 652.27, + 457.86, + 654.95, + 454.32, + 656.29, + 453.47, + 664.45, + 453.96, + 667.62, + 458.71, + 668.72, + 458.95, + 671.64, + 458.95, + 673.96, + 458.34, + 676.52, + 456.76, + 678.35, + 454.32, + 686.75, + 454.93, + 689.92, + 459.56, + 691.51, + 460.78, + 696.87, + 461.27, + 699.67, + 460.29, + 702.84, + 456.51, + 705.27, + 455.91, + 706.86, + 452.37, + 708.69, + 450.79, + 722.21, + 445.18, + 725.87, + 445.43 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 96, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "8f8ef909a683eaf9852b4d9784ec63b471c58d16", + "groupId": 0, + "points": [ + 703, + 462.81, + 703, + 464.81, + 712, + 472.81, + 712, + 474.81, + 724, + 474.81, + 729, + 471.81, + 741.61, + 472.86, + 745.32, + 476.75, + 753.29, + 476.57, + 756.25, + 473.97, + 770, + 473.81, + 780, + 478.81, + 784, + 478.81, + 792, + 474.81, + 802, + 474.81, + 806, + 478.81, + 812, + 479.81, + 817, + 477.81, + 820, + 473.81, + 832.61, + 472.49, + 834, + 468.81, + 833, + 453.81, + 827, + 448.81, + 805, + 437.81, + 783, + 434.81, + 750, + 434.81, + 739, + 437.81, + 726, + 445.81, + 722, + 445.81, + 709, + 450.81, + 707, + 452.81, + 705.11, + 457.11 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 98, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "d9975dc56b159b1690fbdea7b04dd35f2ba69366", + "groupId": 0, + "points": [ + 1023.86, + 432.09, + 1019, + 434, + 1008, + 440, + 1001, + 447, + 960, + 450, + 952, + 453, + 945, + 460, + 940, + 472, + 942, + 496, + 945, + 500, + 948, + 500, + 954, + 510, + 958, + 514, + 980, + 515, + 992, + 504, + 999, + 506, + 1006, + 513, + 1009, + 514, + 1016.82, + 516.78, + 1023.86, + 515.86 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Personal vehicle", + "visible": false, + "locked": false, + "probability": 98, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "76d42d45e8b0c11a055dff75a405b515bb1dd53f", + "groupId": 0, + "points": [ + 6, + 447, + 0, + 459, + 0, + 528, + 2, + 531, + 12, + 530, + 20, + 536, + 25, + 536, + 33, + 530, + 61, + 530, + 77, + 528, + 86, + 534, + 94, + 535, + 99, + 532, + 100, + 525, + 102, + 522, + 109.39, + 521.38, + 111.09, + 529.47, + 122.6, + 528.2, + 126.44, + 491.97, + 122, + 474, + 118, + 465, + 110, + 456, + 103, + 442, + 99, + 439, + 47, + 438, + 16, + 442 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Large vehicle", + "visible": true, + "locked": false, + "probability": 100, + "attributes": [], + "type": "bbox", + "pointLabels": { + "0": "Top Left", + "4": "Bottom Right" + }, + "trackingId": "ac43151b5ac2d511beac8d2ec15695f421b93882", + "groupId": 0, + "points": { + "x1": 240.68, + "x2": 304.61, + "y1": 378.93, + "y2": 410.11 + } + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": {}, + "trackingId": "2c89e809614523cf56c9aeab932e90b87aaf5e4f", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 590.36328125, + "y": 505.471431864795 + }, + { + "id": 2, + "x": 590.2529541686341, + "y": 504.29565523299704 + }, + { + "id": 3, + "x": 590.0863828554258, + "y": 502.0855402722193 + }, + { + "id": 4, + "x": 589.8926669948704, + "y": 500.1575188822054 + }, + { + "id": 5, + "x": 588.2789742606027, + "y": 491.4069519042969 + }, + { + "id": 6, + "x": 591.6578771570227, + "y": 498.7841862403542 + }, + { + "id": 7, + "x": 592.6675015963041, + "y": 497.5725781649412 + }, + { + "id": 8, + "x": 593.4538138253348, + "y": 495.05589353721325 + }, + { + "id": 9, + "x": 591.9352490770948, + "y": 502.2054028345276 + }, + { + "id": 10, + "x": 591.4315175486134, + "y": 504.8054433249257 + }, + { + "id": 11, + "x": 591.0675032060225, + "y": 506.48433274969244 + }, + { + "id": 12, + "x": 593.6178112658826, + "y": 501.4214392039917 + }, + { + "id": 13, + "x": 592.6682424021291, + "y": 504.65690054240156 + }, + { + "id": 14, + "x": 591.8309557568896, + "y": 507.1707458496094 + }, + { + "id": 15, + "x": 594.685306758671, + "y": 499.50420568423283 + }, + { + "id": 16, + "x": 594.4346668956044, + "y": 503.3523914672602 + }, + { + "id": 17, + "x": 593.4855715573489, + "y": 505.4433191217528 + }, + { + "id": 18, + "x": 592.9555204622038, + "y": 507.0652772868338 + }, + { + "id": 19, + "x": 589.5701713142814, + "y": 496.6512277677259 + }, + { + "id": 20, + "x": 590.8887191604782, + "y": 499.291411604618 + }, + { + "id": 21, + "x": 591.1992693890583, + "y": 501.8345208353304 + }, + { + "id": 22, + "x": 591.0341186523438, + "y": 501.9896778816582 + } + ], + "connections": [ + { + "id": 1, + "from": 5, + "to": 4 + }, + { + "id": 2, + "from": 3, + "to": 4 + }, + { + "id": 3, + "from": 3, + "to": 2 + }, + { + "id": 4, + "from": 2, + "to": 1 + }, + { + "id": 5, + "from": 5, + "to": 6 + }, + { + "id": 6, + "from": 6, + "to": 9 + }, + { + "id": 7, + "from": 9, + "to": 10 + }, + { + "id": 8, + "from": 10, + "to": 11 + }, + { + "id": 9, + "from": 5, + "to": 7 + }, + { + "id": 10, + "from": 7, + "to": 12 + }, + { + "id": 11, + "from": 12, + "to": 13 + }, + { + "id": 12, + "from": 13, + "to": 14 + }, + { + "id": 13, + "from": 5, + "to": 8 + }, + { + "id": 14, + "from": 8, + "to": 15 + }, + { + "id": 15, + "from": 15, + "to": 16 + }, + { + "id": 16, + "from": 16, + "to": 17 + }, + { + "id": 17, + "from": 17, + "to": 18 + }, + { + "id": 18, + "from": 5, + "to": 19 + }, + { + "id": 19, + "from": 19, + "to": 20 + }, + { + "id": 20, + "from": 20, + "to": 21 + }, + { + "id": 21, + "from": 21, + "to": 22 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": {}, + "trackingId": "bab62dc810b0cee390f8d5fb5fa62fade3c8da7", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 332.9866027832032, + "y": 526.2959883676228 + }, + { + "id": 2, + "x": 332.8439004919032, + "y": 527.5132367654812 + }, + { + "id": 3, + "x": 334.35612353649776, + "y": 527.3324179308058 + }, + { + "id": 4, + "x": 336.2640990372543, + "y": 524.0976645502819 + }, + { + "id": 5, + "x": 337.51601736886164, + "y": 516.1050720214844 + }, + { + "id": 6, + "x": 339.060296362573, + "y": 524.7754271337591 + }, + { + "id": 7, + "x": 341.64884537916925, + "y": 526.5125154522543 + }, + { + "id": 8, + "x": 344.0771833147321, + "y": 527.3880219566797 + }, + { + "id": 9, + "x": 335.88342117477254, + "y": 527.9910814406194 + }, + { + "id": 10, + "x": 334.6968087835627, + "y": 529.0659044885928 + }, + { + "id": 11, + "x": 333.86405081277377, + "y": 527.8757251825314 + }, + { + "id": 12, + "x": 339.9883503337483, + "y": 529.320022177355 + }, + { + "id": 13, + "x": 338.46802612975404, + "y": 530.370269900207 + }, + { + "id": 14, + "x": 337.1430909712236, + "y": 530.7341613769531 + }, + { + "id": 15, + "x": 341.9785882300073, + "y": 531.0127476105173 + }, + { + "id": 16, + "x": 340.85258785708925, + "y": 532.1869901255352 + }, + { + "id": 17, + "x": 339.1688606346047, + "y": 532.8862634202454 + }, + { + "id": 18, + "x": 339.0958418793731, + "y": 532.8511886128618 + }, + { + "id": 19, + "x": 342.74045026171336, + "y": 523.5337313474565 + }, + { + "id": 20, + "x": 343.0975823874003, + "y": 525.8059083903495 + }, + { + "id": 21, + "x": 341.95265642103254, + "y": 527.6336142573132 + }, + { + "id": 22, + "x": 340.4774169921875, + "y": 527.7661633949826 + } + ], + "connections": [ + { + "id": 1, + "from": 5, + "to": 4 + }, + { + "id": 2, + "from": 3, + "to": 4 + }, + { + "id": 3, + "from": 3, + "to": 2 + }, + { + "id": 4, + "from": 2, + "to": 1 + }, + { + "id": 5, + "from": 5, + "to": 6 + }, + { + "id": 6, + "from": 6, + "to": 9 + }, + { + "id": 7, + "from": 9, + "to": 10 + }, + { + "id": 8, + "from": 10, + "to": 11 + }, + { + "id": 9, + "from": 5, + "to": 7 + }, + { + "id": 10, + "from": 7, + "to": 12 + }, + { + "id": 11, + "from": 12, + "to": 13 + }, + { + "id": 12, + "from": 13, + "to": 14 + }, + { + "id": 13, + "from": 5, + "to": 8 + }, + { + "id": 14, + "from": 8, + "to": 15 + }, + { + "id": 15, + "from": 15, + "to": 16 + }, + { + "id": 16, + "from": 16, + "to": 17 + }, + { + "id": 17, + "from": 17, + "to": 18 + }, + { + "id": 18, + "from": 5, + "to": 19 + }, + { + "id": 19, + "from": 19, + "to": 20 + }, + { + "id": 20, + "from": 20, + "to": 21 + }, + { + "id": 21, + "from": 21, + "to": 22 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": {}, + "trackingId": "f8f542a9e9da918d5d5cb8eed9052713302089", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 500.7473449707031, + "y": 512.2212813363728 + }, + { + "id": 2, + "x": 499.83990268916875, + "y": 511.0267255350125 + }, + { + "id": 3, + "x": 499.35212573376333, + "y": 508.78712984486833 + }, + { + "id": 4, + "x": 499.49539176186363, + "y": 505.6112143549695 + }, + { + "id": 5, + "x": 505.1166338239397, + "y": 498.2973327636719 + }, + { + "id": 6, + "x": 501.5269101321042, + "y": 506.7595579931341 + }, + { + "id": 7, + "x": 503.99778336745044, + "y": 506.673098948348 + }, + { + "id": 8, + "x": 506.9555402483259, + "y": 505.9015717613673 + }, + { + "id": 9, + "x": 501.35003494430373, + "y": 510.62224599140063 + }, + { + "id": 10, + "x": 501.986939398797, + "y": 512.5206164026553 + }, + { + "id": 11, + "x": 503.15418142800803, + "y": 512.9774707880001 + }, + { + "id": 12, + "x": 503.6314472575764, + "y": 510.3629298921987 + }, + { + "id": 13, + "x": 503.9346398992853, + "y": 513.4720155056757 + }, + { + "id": 14, + "x": 506.3155763227861, + "y": 514.4830017089844 + }, + { + "id": 15, + "x": 506.32755673586666, + "y": 510.11449321598604 + }, + { + "id": 16, + "x": 506.78978268130794, + "y": 513.0534452036602 + }, + { + "id": 17, + "x": 508.6354744041359, + "y": 513.6350427171204 + }, + { + "id": 18, + "x": 508.56245564890435, + "y": 512.0705489644243 + }, + { + "id": 19, + "x": 509.736452458979, + "y": 503.5178622068315 + }, + { + "id": 20, + "x": 510.1524224752909, + "y": 508.84887714034943 + }, + { + "id": 21, + "x": 509.8898512452513, + "y": 511.676521972157 + }, + { + "id": 22, + "x": 509.7675476074219, + "y": 511.8091321449826 + } + ], + "connections": [ + { + "id": 1, + "from": 5, + "to": 4 + }, + { + "id": 2, + "from": 3, + "to": 4 + }, + { + "id": 3, + "from": 3, + "to": 2 + }, + { + "id": 4, + "from": 2, + "to": 1 + }, + { + "id": 5, + "from": 5, + "to": 6 + }, + { + "id": 6, + "from": 6, + "to": 9 + }, + { + "id": 7, + "from": 9, + "to": 10 + }, + { + "id": 8, + "from": 10, + "to": 11 + }, + { + "id": 9, + "from": 5, + "to": 7 + }, + { + "id": 10, + "from": 7, + "to": 12 + }, + { + "id": 11, + "from": 12, + "to": 13 + }, + { + "id": 12, + "from": 13, + "to": 14 + }, + { + "id": 13, + "from": 5, + "to": 8 + }, + { + "id": 14, + "from": 8, + "to": 15 + }, + { + "id": 15, + "from": 15, + "to": 16 + }, + { + "id": 16, + "from": 16, + "to": 17 + }, + { + "id": 17, + "from": 17, + "to": 18 + }, + { + "id": 18, + "from": 5, + "to": 19 + }, + { + "id": 19, + "from": 19, + "to": 20 + }, + { + "id": 20, + "from": 20, + "to": 21 + }, + { + "id": 21, + "from": 21, + "to": 22 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": { + "0": "Nose" + }, + "trackingId": "4fd95b7d6d95b7b84750e65aa89c70b9c86eb3b8", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 460.2714192848242, + "y": 486.08071083487926 + }, + { + "id": 2, + "x": 454.92882596998356, + "y": 481.9066804669699 + }, + { + "id": 3, + "x": 461.0707178220127, + "y": 481.61528130084 + }, + { + "id": 4, + "x": 462.32680898178, + "y": 482.46856689453125 + }, + { + "id": 5, + "x": 444.8684189242054, + "y": 483.808782080494 + }, + { + "id": 6, + "x": 455.8683091235324, + "y": 497.2664014146353 + }, + { + "id": 7, + "x": 439.86159351357213, + "y": 498.91779556832523 + }, + { + "id": 8, + "x": 432.98627658437374, + "y": 519.4614616257791 + }, + { + "id": 9, + "x": 415.8799309258186, + "y": 515.9119205914317 + }, + { + "id": 10, + "x": 467.5532979208077, + "y": 499.0862192385027 + }, + { + "id": 11, + "x": 479.28433580441475, + "y": 514.1935318132136 + }, + { + "id": 12, + "x": 498.51239013671875, + "y": 512.030284394326 + }, + { + "id": 13, + "x": 454.8632612058889, + "y": 546.5478157765722 + }, + { + "id": 14, + "x": 444.0484270284733, + "y": 546.0017547475499 + }, + { + "id": 15, + "x": 464.16791732413037, + "y": 546.2800095783913 + }, + { + "id": 16, + "x": 468.63255127661785, + "y": 573.6905686937465 + }, + { + "id": 17, + "x": 457.1555372435924, + "y": 577.0907707675425 + }, + { + "id": 18, + "x": 432.2792663574219, + "y": 587.0443088500142 + }, + { + "id": 19, + "x": 429.91821938954894, + "y": 606.0040783618011 + }, + { + "id": 20, + "x": 463.69909188680566, + "y": 602.9990721708784 + }, + { + "id": 21, + "x": 484.317011118421, + "y": 607.0152893066406 + } + ], + "connections": [ + { + "id": 1, + "from": 1, + "to": 6 + }, + { + "id": 2, + "from": 6, + "to": 10 + }, + { + "id": 3, + "from": 10, + "to": 11 + }, + { + "id": 4, + "from": 11, + "to": 12 + }, + { + "id": 5, + "from": 7, + "to": 8 + }, + { + "id": 6, + "from": 8, + "to": 9 + }, + { + "id": 7, + "from": 14, + "to": 7 + }, + { + "id": 8, + "from": 14, + "to": 13 + }, + { + "id": 9, + "from": 13, + "to": 15 + }, + { + "id": 10, + "from": 15, + "to": 10 + }, + { + "id": 11, + "from": 7, + "to": 6 + }, + { + "id": 12, + "from": 14, + "to": 16 + }, + { + "id": 13, + "from": 15, + "to": 17 + }, + { + "id": 14, + "from": 16, + "to": 20 + }, + { + "id": 15, + "from": 20, + "to": 21 + }, + { + "id": 16, + "from": 17, + "to": 18 + }, + { + "id": 17, + "from": 18, + "to": 19 + }, + { + "id": 18, + "from": 5, + "to": 2 + }, + { + "id": 19, + "from": 2, + "to": 1 + }, + { + "id": 20, + "from": 1, + "to": 1 + }, + { + "id": 21, + "from": 3, + "to": 1 + }, + { + "id": 22, + "from": 3, + "to": 4 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": { + "0": "Nose" + }, + "trackingId": "8894b2a1727f62631d26e885a5aaf9bc2ac2a578", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 569.4099335784475, + "y": 411.3099511426366 + }, + { + "id": 2, + "x": 565.2798621579027, + "y": 406.3627038525488 + }, + { + "id": 3, + "x": 567.377754831435, + "y": 405.3775634765625 + }, + { + "id": 4, + "x": 562.1341137290701, + "y": 404.67809199715805 + }, + { + "id": 5, + "x": 554.7715578497942, + "y": 408.0821593507321 + }, + { + "id": 6, + "x": 543.3504267346603, + "y": 422.3509408794715 + }, + { + "id": 7, + "x": 530.5325718803996, + "y": 432.4575436529285 + }, + { + "id": 8, + "x": 513.1264329109782, + "y": 468.5712030528786 + }, + { + "id": 9, + "x": 505.0783099316068, + "y": 498.26488325838557 + }, + { + "id": 10, + "x": 564.5019009957019, + "y": 431.59166109918834 + }, + { + "id": 11, + "x": 572.9879904477306, + "y": 466.0899617391194 + }, + { + "id": 12, + "x": 588.320701407949, + "y": 491.39197319472385 + }, + { + "id": 13, + "x": 547.1874731524312, + "y": 499.0241945917735 + }, + { + "id": 14, + "x": 536.2172232162276, + "y": 499.38451563669537 + }, + { + "id": 15, + "x": 558.2200212079587, + "y": 496.61095606638287 + }, + { + "id": 16, + "x": 565.8375729727319, + "y": 546.3956734358432 + }, + { + "id": 17, + "x": 545.4810409910515, + "y": 549.0779244124057 + }, + { + "id": 18, + "x": 502.6168107549702, + "y": 573.1785073042392 + }, + { + "id": 19, + "x": 506.98697907641065, + "y": 599.8044128417969 + }, + { + "id": 20, + "x": 555.6301612734296, + "y": 594.6135561518564 + }, + { + "id": 21, + "x": 585.93212890625, + "y": 602.2106018066406 + } + ], + "connections": [ + { + "id": 1, + "from": 1, + "to": 6 + }, + { + "id": 2, + "from": 6, + "to": 10 + }, + { + "id": 3, + "from": 10, + "to": 11 + }, + { + "id": 4, + "from": 11, + "to": 12 + }, + { + "id": 5, + "from": 7, + "to": 8 + }, + { + "id": 6, + "from": 8, + "to": 9 + }, + { + "id": 7, + "from": 14, + "to": 7 + }, + { + "id": 8, + "from": 14, + "to": 13 + }, + { + "id": 9, + "from": 13, + "to": 15 + }, + { + "id": 10, + "from": 15, + "to": 10 + }, + { + "id": 11, + "from": 7, + "to": 6 + }, + { + "id": 12, + "from": 14, + "to": 16 + }, + { + "id": 13, + "from": 15, + "to": 17 + }, + { + "id": 14, + "from": 16, + "to": 20 + }, + { + "id": 15, + "from": 20, + "to": 21 + }, + { + "id": 16, + "from": 17, + "to": 18 + }, + { + "id": 17, + "from": 18, + "to": 19 + }, + { + "id": 18, + "from": 5, + "to": 2 + }, + { + "id": 19, + "from": 2, + "to": 1 + }, + { + "id": 20, + "from": 1, + "to": 1 + }, + { + "id": 21, + "from": 3, + "to": 1 + }, + { + "id": 22, + "from": 3, + "to": 4 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "template", + "pointLabels": { + "0": "Nose" + }, + "trackingId": "2fe1f0c6c4af879955d6f19cfcf113a6b929b73", + "groupId": 0, + "points": [ + { + "id": 1, + "x": 388.9594774956746, + "y": 424.3453820508397 + }, + { + "id": 2, + "x": 383.78257983006284, + "y": 420.2971520947363 + }, + { + "id": 3, + "x": 387.1454388819895, + "y": 419.5367736816406 + }, + { + "id": 4, + "x": 382.7214935156717, + "y": 418.8373022022362 + }, + { + "id": 5, + "x": 369.81775320578504, + "y": 421.3423522218259 + }, + { + "id": 6, + "x": 368.5353785473912, + "y": 441.4006845318153 + }, + { + "id": 7, + "x": 353.1593986570741, + "y": 443.28386811581913 + }, + { + "id": 8, + "x": 340.9145244608405, + "y": 484.88446599233174 + }, + { + "id": 9, + "x": 337.471170384727, + "y": 516.0647184634637 + }, + { + "id": 10, + "x": 380.0734310110131, + "y": 441.19236910700084 + }, + { + "id": 11, + "x": 392.6590966976267, + "y": 481.59771320396317 + }, + { + "id": 12, + "x": 411.22125244140625, + "y": 510.38843315566135 + }, + { + "id": 13, + "x": 368.27931488725477, + "y": 514.5319460566172 + }, + { + "id": 14, + "x": 361.465192188568, + "y": 515.6977785761485 + }, + { + "id": 15, + "x": 378.7043428557912, + "y": 512.1187075312266 + }, + { + "id": 16, + "x": 393.26020935016874, + "y": 556.5333687483432 + }, + { + "id": 17, + "x": 344.09536524138383, + "y": 562.7657295881869 + }, + { + "id": 18, + "x": 321.86363692684523, + "y": 598.4685463667392 + }, + { + "id": 19, + "x": 345.55514438756916, + "y": 610.3072814941406 + }, + { + "id": 20, + "x": 402.05302902711884, + "y": 603.0690004877939 + }, + { + "id": 21, + "x": 426.8170225465453, + "y": 607.0261535644531 + } + ], + "connections": [ + { + "id": 1, + "from": 1, + "to": 6 + }, + { + "id": 2, + "from": 6, + "to": 10 + }, + { + "id": 3, + "from": 10, + "to": 11 + }, + { + "id": 4, + "from": 11, + "to": 12 + }, + { + "id": 5, + "from": 7, + "to": 8 + }, + { + "id": 6, + "from": 8, + "to": 9 + }, + { + "id": 7, + "from": 14, + "to": 7 + }, + { + "id": 8, + "from": 14, + "to": 13 + }, + { + "id": 9, + "from": 13, + "to": 15 + }, + { + "id": 10, + "from": 15, + "to": 10 + }, + { + "id": 11, + "from": 7, + "to": 6 + }, + { + "id": 12, + "from": 14, + "to": 16 + }, + { + "id": 13, + "from": 15, + "to": 17 + }, + { + "id": 14, + "from": 16, + "to": 20 + }, + { + "id": 15, + "from": 20, + "to": 21 + }, + { + "id": 16, + "from": 17, + "to": 18 + }, + { + "id": 17, + "from": 18, + "to": 19 + }, + { + "id": 18, + "from": 5, + "to": 2 + }, + { + "id": 19, + "from": 2, + "to": 1 + }, + { + "id": 20, + "from": 1, + "to": 1 + }, + { + "id": 21, + "from": 3, + "to": 1 + }, + { + "id": 22, + "from": 3, + "to": 4 + } + ], + "templateName": "HandPose", + "templateId": -1 + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "bf7e1885326a2aac18619c30d310c21e8fb89e93", + "groupId": 0, + "points": [ + 496.93, + 506.95, + 500.11, + 499.6, + 499.38, + 494.21, + 500.85, + 490.53, + 502.81, + 490.04, + 503.79, + 488.32, + 505.02, + 480.97, + 507.22, + 477.3, + 510.16, + 466.51, + 520.21, + 451.32, + 522.42, + 446.41, + 524.38, + 435.63, + 541.78, + 412.84, + 543, + 408.92, + 541.78, + 405.73, + 541.78, + 398.13, + 542.51, + 394.95, + 543.74, + 392.74, + 546.19, + 389.8, + 548.4, + 388.82, + 556.97, + 388.82, + 563.35, + 391.27, + 565.06, + 393.23, + 566.29, + 396.42, + 567.76, + 405.24, + 569.23, + 409.41, + 569.23, + 412.59, + 568.25, + 414.55, + 568, + 419.45, + 565.8, + 422.4, + 562.37, + 423.62, + 561.63, + 425.09, + 561.63, + 427.05, + 566.04, + 429.5, + 568, + 433.42, + 569.72, + 445.68, + 594.96, + 498.62, + 594.96, + 502.78, + 593.98, + 505.48, + 591.53, + 508.18, + 589.82, + 508.42, + 588.35, + 505.97, + 586.88, + 500.58, + 585.4, + 499.6, + 582.46, + 499.35, + 568.98, + 481.71, + 571.19, + 508.18, + 569.96, + 510.63, + 567.76, + 510.87, + 572.66, + 595.43, + 574.87, + 597.63, + 580.01, + 598.61, + 586.39, + 598.61, + 588.84, + 599.35, + 589.33, + 601.31, + 587.86, + 604.01, + 586.88, + 604.5, + 553.3, + 604.99, + 551.09, + 601.8, + 551.09, + 592.49, + 552.81, + 589.55, + 548.15, + 554.25, + 530.51, + 572.39, + 511.88, + 586.85, + 509.67, + 587.09, + 508.69, + 593.22, + 508.69, + 596.9, + 509.92, + 599.84, + 509.67, + 601.8, + 506.49, + 602.04, + 502.57, + 598.86, + 499.87, + 594.45, + 496.93, + 584.64, + 492.52, + 581.21, + 489.58, + 576.56, + 489.82, + 571.41, + 491.05, + 570.18, + 498.15, + 569.45, + 509.67, + 565.04, + 525.11, + 547.64, + 532.22, + 546.16, + 531.98, + 541.26, + 537.12, + 538.57, + 530.51, + 510.14, + 526.34, + 513.32, + 522.42, + 489.55, + 521.19, + 477.05, + 517.76, + 485.38, + 515.31, + 489.06, + 514.57, + 493.72, + 512.61, + 495.68, + 511.39, + 498.86, + 509.43, + 506.71, + 508.94, + 514.55, + 505.51, + 515.28, + 501.83, + 514.55, + 498.15, + 510.87, + 497.91, + 507.93 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": true, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": { + "0": "Left Hand", + "21": "Right Hand" + }, + "trackingId": "932bda5b59db89dd68602306c70d8da62e0afdc", + "groupId": 0, + "points": [ + 418.36, + 510.31, + 423.02, + 513.25, + 429.15, + 514.48, + 433.07, + 513.25, + 441.65, + 499.04, + 448.76, + 495.36, + 449.74, + 490.7, + 446.55, + 487.52, + 444.83, + 484.33, + 446.06, + 471.59, + 448.27, + 468.89, + 453.66, + 467.18, + 459.29, + 468.16, + 464.69, + 470.61, + 465.42, + 471.59, + 466.16, + 483.6, + 464.69, + 488.25, + 464.69, + 493.4, + 467.87, + 497.57, + 482.58, + 507.37, + 486.5, + 509.33, + 500.96, + 509.09, + 500.22, + 516.93, + 499.24, + 519.13, + 481.11, + 520.61, + 475.47, + 517.42, + 472.28, + 517.17, + 471.55, + 518.4, + 470.08, + 544.62, + 470.81, + 557.12, + 474.49, + 576, + 473.02, + 599.52, + 482.09, + 602.46, + 488.21, + 605.65, + 488.46, + 608.35, + 487.97, + 609.08, + 464.2, + 610.06, + 463.46, + 603.44, + 461.74, + 600.26, + 461.74, + 597.56, + 463.95, + 595.11, + 463.22, + 591.68, + 463.95, + 580.9, + 452.92, + 587.51, + 442.87, + 590.21, + 443.85, + 591.93, + 443.36, + 592.66, + 441.89, + 591.93, + 439.93, + 592.42, + 439.2, + 593.4, + 438.95, + 597.07, + 435.52, + 601.48, + 434.3, + 608.35, + 433.07, + 609.57, + 431.35, + 603.44, + 429.64, + 602.95, + 427.92, + 584.33, + 437.48, + 582.61, + 456.35, + 572.81, + 454.88, + 567.17, + 453.17, + 563.74, + 453.41, + 559.82, + 450.96, + 556.63, + 447.53, + 554.43, + 445.81, + 551.24, + 442.14, + 550.02, + 438.95, + 522.81, + 423.27, + 523.79, + 417.63, + 521.83, + 413.95, + 516.93, + 413.71, + 515.21 + ] + }, + { + "creationType": "Preannotation", + "classId": -1, + "className": "Human", + "visible": false, + "locked": false, + "probability": 100, + "attributes": [], + "type": "polygon", + "pointLabels": {}, + "trackingId": "b4a35bf808984de199195734dfbb73b1cb5c8b5", + "groupId": 0, + "points": [ + 380.35, + 435.63, + 378.64, + 439.31, + 395.79, + 464.55, + 396.28, + 478.03, + 394.57, + 481.22, + 407.56, + 499.11, + 408.05, + 501.07, + 410.74, + 502.05, + 410.99, + 504.99, + 415.15, + 507.93, + 415.15, + 509.4, + 410.25, + 513.32, + 407.8, + 517, + 399.22, + 516.75, + 390.4, + 510.87, + 389.18, + 512.34, + 397.51, + 539.06, + 397.75, + 559.89, + 400.2, + 568.47, + 409.76, + 593.96, + 417.12, + 602.78, + 422.51, + 604.25, + 428.63, + 603.76, + 429.61, + 606.21, + 428.63, + 608.42, + 402.65, + 614.3, + 396.53, + 611.85, + 395.79, + 609.4, + 397.51, + 602.04, + 395.55, + 599.35, + 394.57, + 599.35, + 383.29, + 574.84, + 380.6, + 555.97, + 369.32, + 542, + 350.45, + 561.61, + 334.03, + 598.86, + 335.01, + 600.82, + 340.65, + 606.21, + 343.34, + 607.44, + 348.49, + 607.93, + 349.47, + 608.66, + 349.72, + 610.62, + 348.25, + 612.09, + 346.78, + 612.58, + 319.82, + 610.62, + 315.89, + 608.17, + 318.1, + 599.84, + 319.08, + 590.77, + 329.13, + 566.02, + 339.42, + 549.11, + 342.61, + 541.51, + 341.38, + 529.74, + 339.18, + 533.91, + 333.79, + 524.6, + 333.3, + 521.9, + 325.94, + 519.45, + 339.42, + 477.54, + 339.18, + 467.98, + 336.48, + 463.82, + 359.52, + 408.92, + 366.38, + 404.5, + 379.62, + 404.5, + 380.84, + 404.99, + 385.5, + 411.12, + 387.7, + 416.27, + 387.7, + 420.68, + 389.42, + 424.6, + 388.44, + 428.03, + 386.97, + 429.75, + 386.23, + 434.65 + ] + } + ] +} diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_2.jpg b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_2.jpg new file mode 100644 index 000000000..3ed3019ec Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_2.jpg differ diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_2.jpg___fuse.png b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_2.jpg___fuse.png new file mode 100644 index 000000000..d54f3bdba Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_2.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_2.jpg___objects.json b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_2.jpg___objects.json new file mode 100644 index 000000000..14449884a --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_2.jpg___objects.json @@ -0,0 +1,1998 @@ +{ + "metadata": { + "name": "example_image_2.jpg", + "width": 1885, + "height": 1060, + "status": "Completed", + "pinned": false, + "isPredicted": null, + "projectId": null, + "annotatorEmail": null, + "qaEmail": null + }, + "instances": [ + { + "type": "polygon", + "classId": 72274, + "probability": 95, + "points": [ + 1741, + 722, + 1741, + 726, + 1744, + 729, + 1741, + 733, + 1742, + 769, + 1749, + 768, + 1752, + 763, + 1757, + 766, + 1759, + 779, + 1764, + 779, + 1770, + 772, + 1823, + 772, + 1826, + 774, + 1828, + 780, + 1834, + 780, + 1836, + 778, + 1836, + 744, + 1826, + 719, + 1817, + 709, + 1803, + 707, + 1763, + 707, + 1757, + 709, + 1748, + 719 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "9ee0c81d360b5aaeeb083b65f7863d52be7d908", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 96, + "points": [ + 1546, + 1048, + 1542, + 1045, + 1531, + 1043, + 1527, + 1039, + 1526, + 1034, + 1522, + 1033, + 1519, + 1028, + 1513, + 1025, + 1500, + 1022, + 1470, + 1022, + 1459, + 1024, + 1435, + 1024, + 1405, + 1028, + 1400, + 1030, + 1399, + 1033, + 1394, + 1037, + 1393, + 1041, + 1386, + 1047, + 1374, + 1047, + 1368, + 1050, + 1369, + 1055, + 1371, + 1057, + 1382, + 1059, + 1513, + 1059, + 1543, + 1057, + 1546, + 1055 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "fe751485fd9a28b9a39624c5110606f8a13eb497", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 96, + "points": [ + 1370, + 798, + 1367, + 796, + 1361, + 796, + 1349, + 781, + 1341, + 778, + 1304, + 779, + 1282, + 782, + 1277, + 790, + 1276, + 795, + 1273, + 798, + 1264, + 801, + 1266, + 811, + 1264, + 817, + 1265, + 859, + 1267, + 861, + 1272, + 861, + 1276, + 864, + 1277, + 878, + 1285, + 878, + 1288, + 869, + 1292, + 864, + 1318, + 866, + 1344, + 866, + 1353, + 864, + 1359, + 868, + 1361, + 876, + 1364, + 878, + 1370, + 878, + 1372, + 874, + 1375, + 841, + 1371, + 826, + 1371, + 817, + 1364, + 809, + 1364, + 807, + 1371, + 801 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "d4b8b9ee86ab57be7c5afa067f5fa9cb8cc62f83", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 97, + "points": [ + 1563, + 887, + 1563, + 889, + 1569, + 896, + 1569, + 900, + 1566, + 905, + 1567, + 939, + 1568, + 942, + 1573, + 946, + 1579, + 946, + 1581, + 948, + 1582, + 958, + 1589, + 968, + 1594, + 969, + 1597, + 967, + 1603, + 958, + 1613, + 957, + 1677, + 958, + 1687, + 968, + 1690, + 969, + 1694, + 968, + 1698, + 964, + 1699, + 927, + 1694, + 918, + 1693, + 906, + 1689, + 900, + 1690, + 891, + 1680, + 880, + 1679, + 873, + 1673, + 868, + 1650, + 865, + 1596, + 866, + 1588, + 868, + 1582, + 874, + 1581, + 879, + 1578, + 882, + 1569, + 883 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "68ef609bf39454907c1d87b7aabce86739a06b2c", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 98, + "points": [ + 1685, + 835, + 1685, + 874, + 1687, + 877, + 1700, + 879, + 1703, + 882, + 1704, + 890, + 1709, + 894, + 1714, + 895, + 1719, + 891, + 1722, + 886, + 1792, + 886, + 1795, + 888, + 1796, + 893, + 1799, + 895, + 1808, + 895, + 1811, + 892, + 1812, + 848, + 1803, + 839, + 1798, + 827, + 1783, + 813, + 1771, + 810, + 1718, + 811, + 1710, + 815, + 1701, + 824, + 1689, + 829 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "125e64e93ac3c9f1c0d6b74a90529a2a59d587d5", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 98, + "points": [ + 1481, + 781, + 1481, + 824, + 1492, + 833, + 1493, + 842, + 1502, + 842, + 1506, + 836, + 1567, + 836, + 1570, + 839, + 1570, + 841, + 1574, + 844, + 1579, + 844, + 1582, + 841, + 1583, + 801, + 1576, + 792, + 1579, + 783, + 1571, + 781, + 1564, + 771, + 1561, + 769, + 1543, + 766, + 1505, + 766, + 1498, + 768, + 1487, + 780 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "28f5b6c51b70739c2cdc2692af341a7098e056b", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 162, + 777, + 162, + 803, + 167, + 809, + 175, + 808, + 181, + 802, + 193, + 803, + 202, + 801, + 236, + 800, + 241, + 804, + 248, + 805, + 253, + 802, + 257, + 795, + 274, + 794, + 274, + 763, + 267, + 753, + 266, + 748, + 262, + 744, + 262, + 741, + 257, + 735, + 254, + 734, + 192, + 735, + 187, + 738, + 185, + 742, + 175, + 752, + 170, + 753, + 169, + 765, + 166, + 768, + 165, + 774 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "ccfe97f74dece5fea03619ff669dfefe68a5e0ba", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 666, + 700, + 667, + 708, + 663, + 716, + 663, + 741, + 667, + 744, + 671, + 744, + 679, + 739, + 724, + 739, + 732, + 744, + 737, + 744, + 740, + 738, + 747, + 732, + 746, + 701, + 738, + 695, + 738, + 688, + 731, + 681, + 684, + 681, + 678, + 687, + 678, + 690, + 675, + 695 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "c2bf17c4f161e7f0419bb2c41ea07412d42224", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 340, + 911, + 350, + 921, + 350, + 930, + 345, + 935, + 344, + 942, + 339, + 950, + 339, + 983, + 340, + 987, + 346, + 994, + 355, + 994, + 361, + 989, + 361, + 984, + 364, + 981, + 397, + 982, + 432, + 981, + 445, + 979, + 451, + 981, + 454, + 984, + 455, + 990, + 459, + 994, + 470, + 995, + 476, + 990, + 477, + 978, + 482, + 971, + 486, + 969, + 493, + 970, + 501, + 965, + 502, + 949, + 505, + 940, + 505, + 926, + 501, + 916, + 501, + 903, + 499, + 895, + 496, + 890, + 494, + 877, + 490, + 874, + 488, + 866, + 482, + 861, + 402, + 861, + 389, + 865, + 378, + 872, + 370, + 881, + 368, + 889, + 364, + 894, + 362, + 901, + 359, + 904 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "4f0117afcf92115345dba62a9a2585ed294c53d0", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 1137, + 876, + 1130, + 874, + 1122, + 874, + 1118, + 870, + 1112, + 857, + 1107, + 852, + 1101, + 849, + 1032, + 851, + 1027, + 853, + 1020, + 870, + 1014, + 875, + 1002, + 876, + 1001, + 880, + 1003, + 883, + 1007, + 884, + 1010, + 889, + 1004, + 898, + 1006, + 946, + 1011, + 971, + 1018, + 972, + 1022, + 970, + 1024, + 967, + 1024, + 962, + 1027, + 959, + 1045, + 959, + 1059, + 955, + 1079, + 955, + 1089, + 957, + 1111, + 956, + 1117, + 962, + 1118, + 966, + 1121, + 969, + 1130, + 968, + 1132, + 966, + 1132, + 917, + 1129, + 905, + 1132, + 898, + 1127, + 891, + 1126, + 886, + 1129, + 883, + 1136, + 881 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "b54277bb2047b209ceead953f10aed42d553cef", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 396, + 738, + 399, + 743, + 399, + 746, + 392, + 760, + 392, + 785, + 396, + 789, + 400, + 789, + 406, + 784, + 437, + 785, + 444, + 783, + 458, + 783, + 463, + 788, + 469, + 790, + 474, + 787, + 474, + 784, + 478, + 778, + 489, + 777, + 491, + 775, + 490, + 738, + 480, + 727, + 470, + 720, + 419, + 720, + 414, + 723, + 408, + 733, + 404, + 736 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "95f82dd6154efc3a9d9cd45e4db0a3852d5a798d", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 99, + "points": [ + 277, + 812, + 271, + 810, + 183, + 810, + 173, + 812, + 163, + 820, + 152, + 826, + 142, + 837, + 141, + 842, + 131, + 850, + 125, + 850, + 121, + 854, + 121, + 858, + 123, + 860, + 122, + 870, + 116, + 876, + 115, + 883, + 110, + 891, + 109, + 933, + 111, + 941, + 118, + 945, + 124, + 945, + 137, + 937, + 150, + 935, + 215, + 936, + 220, + 939, + 226, + 947, + 239, + 947, + 241, + 946, + 242, + 941, + 242, + 926, + 249, + 919, + 255, + 918, + 263, + 922, + 277, + 921, + 280, + 916, + 280, + 890, + 285, + 869, + 281, + 845, + 282, + 831, + 279, + 824, + 279, + 816 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "7940b1490647cc4607eada6f15a7e3f94d6b9577", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1, + 698, + 0, + 747, + 2, + 751, + 23, + 749, + 27, + 747, + 35, + 748, + 45, + 746, + 49, + 751, + 57, + 753, + 66, + 743, + 70, + 741, + 82, + 743, + 86, + 740, + 86, + 704, + 68, + 688, + 16, + 688, + 8, + 691 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "6a6929b0485169689f253af1ad9278b3cce11258", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 997, + 1002, + 998, + 1009, + 1010, + 1012, + 1014, + 1015, + 1008, + 1023, + 1005, + 1030, + 1005, + 1034, + 1000, + 1038, + 998, + 1042, + 998, + 1048, + 1000, + 1050, + 999, + 1053, + 1005, + 1056, + 1124, + 1057, + 1135, + 1055, + 1150, + 1056, + 1151, + 1054, + 1151, + 1036, + 1146, + 1027, + 1146, + 1019, + 1137, + 1009, + 1149, + 1007, + 1155, + 1004, + 1156, + 1000, + 1150, + 995, + 1142, + 995, + 1136, + 997, + 1128, + 982, + 1120, + 977, + 1038, + 977, + 1031, + 979, + 1025, + 983, + 1023, + 995, + 1021, + 997, + 1003, + 997 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "1ce1dbabb3758d266e9217575dc1d4e9ff60b128", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 277, + 811, + 279, + 816, + 277, + 820, + 277, + 827, + 284, + 835, + 284, + 854, + 288, + 861, + 312, + 861, + 342, + 857, + 348, + 858, + 354, + 866, + 359, + 866, + 363, + 863, + 364, + 855, + 368, + 850, + 382, + 849, + 385, + 847, + 384, + 837, + 387, + 829, + 388, + 817, + 384, + 810, + 383, + 799, + 367, + 782, + 305, + 782, + 293, + 792, + 288, + 801 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "654b7f814096da7f4b71e842b6c918c36a08eacf", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1649, + 1011, + 1655, + 1020, + 1653, + 1030, + 1649, + 1038, + 1648, + 1055, + 1651, + 1058, + 1696, + 1058, + 1726, + 1055, + 1800, + 1056, + 1814, + 1058, + 1820, + 1057, + 1821, + 1055, + 1815, + 1047, + 1815, + 1041, + 1811, + 1037, + 1808, + 1027, + 1805, + 1026, + 1803, + 1023, + 1802, + 1011, + 1793, + 1005, + 1789, + 999, + 1775, + 992, + 1735, + 990, + 1687, + 992, + 1680, + 996, + 1673, + 1003, + 1672, + 1007, + 1669, + 1010, + 1652, + 1009 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "32405cbb3cec698d9036f02fed1a973c44b1deff", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1339, + 926, + 1338, + 931, + 1347, + 940, + 1347, + 945, + 1343, + 952, + 1344, + 986, + 1348, + 997, + 1354, + 1002, + 1356, + 1009, + 1356, + 1022, + 1362, + 1031, + 1369, + 1031, + 1374, + 1029, + 1376, + 1022, + 1379, + 1019, + 1397, + 1019, + 1413, + 1021, + 1418, + 1023, + 1444, + 1023, + 1455, + 1020, + 1474, + 1020, + 1486, + 1024, + 1494, + 1023, + 1495, + 970, + 1491, + 963, + 1489, + 953, + 1485, + 949, + 1482, + 936, + 1483, + 932, + 1491, + 925, + 1487, + 922, + 1481, + 923, + 1475, + 920, + 1467, + 911, + 1466, + 906, + 1459, + 899, + 1370, + 899, + 1360, + 906, + 1359, + 917, + 1355, + 922 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "1681fb7d71c3e2b0ce28cbfc24eac3ea1922e8e", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1142, + 764, + 1138, + 761, + 1126, + 763, + 1123, + 759, + 1122, + 747, + 1117, + 742, + 1072, + 742, + 1054, + 744, + 1046, + 747, + 1044, + 750, + 1041, + 764, + 1038, + 767, + 1032, + 768, + 1038, + 773, + 1039, + 776, + 1035, + 785, + 1036, + 844, + 1049, + 844, + 1050, + 836, + 1054, + 833, + 1072, + 835, + 1117, + 833, + 1123, + 837, + 1124, + 842, + 1126, + 844, + 1133, + 845, + 1136, + 841, + 1138, + 806, + 1135, + 798, + 1134, + 784, + 1131, + 781, + 1129, + 775, + 1133, + 770, + 1140, + 769, + 1142, + 767 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "93a1502c2bc706c3fd3884c8ce8fc20ec097ea0", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1252, + 740, + 1252, + 749, + 1256, + 752, + 1255, + 767, + 1257, + 772, + 1257, + 781, + 1262, + 789, + 1263, + 796, + 1271, + 796, + 1280, + 784, + 1284, + 781, + 1292, + 779, + 1308, + 779, + 1321, + 777, + 1336, + 777, + 1341, + 779, + 1346, + 778, + 1347, + 763, + 1345, + 746, + 1342, + 743, + 1342, + 736, + 1346, + 734, + 1346, + 731, + 1337, + 728, + 1325, + 718, + 1307, + 716, + 1277, + 716, + 1270, + 719, + 1258, + 734, + 1256, + 744 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "53b3eb4966d32ad0adcd8acb8623b1942ec7050", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 184, + 638, + 179, + 633, + 173, + 631, + 124, + 631, + 115, + 636, + 109, + 643, + 105, + 651, + 100, + 655, + 94, + 655, + 91, + 662, + 89, + 686, + 93, + 708, + 103, + 708, + 107, + 701, + 115, + 698, + 160, + 698, + 180, + 679, + 192, + 677, + 192, + 654, + 185, + 643 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "3f2f416c69fc616840e064fe6abf6a9f578aa2c7", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 152, + 720, + 152, + 729, + 155, + 736, + 155, + 744, + 159, + 746, + 166, + 746, + 170, + 742, + 173, + 744, + 173, + 746, + 176, + 746, + 189, + 737, + 197, + 734, + 249, + 734, + 253, + 732, + 253, + 702, + 250, + 698, + 249, + 693, + 234, + 680, + 183, + 680, + 170, + 689, + 169, + 692, + 159, + 702 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "e801e4a11f7ad9b390cd4ee6c392435ba8fef570", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 98, + "points": [ + 1048, + 572, + 1045, + 579, + 1040, + 583, + 1041, + 592, + 1040, + 597, + 1037, + 601, + 1037, + 626, + 1035, + 648, + 1037, + 655, + 1036, + 667, + 1038, + 684, + 1041, + 684, + 1045, + 680, + 1053, + 667, + 1058, + 663, + 1082, + 663, + 1097, + 661, + 1102, + 665, + 1105, + 671, + 1113, + 680, + 1117, + 693, + 1123, + 693, + 1125, + 689, + 1125, + 673, + 1127, + 666, + 1126, + 650, + 1128, + 640, + 1126, + 599, + 1120, + 594, + 1099, + 591, + 1092, + 582, + 1091, + 577, + 1086, + 572 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "5874772e1428946f9be2b28ea88ed9cf22e625b3", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 1194, + 583, + 1192, + 601, + 1190, + 604, + 1190, + 608, + 1192, + 611, + 1191, + 629, + 1193, + 647, + 1198, + 651, + 1199, + 656, + 1205, + 657, + 1209, + 649, + 1220, + 649, + 1225, + 638, + 1229, + 634, + 1236, + 634, + 1241, + 636, + 1262, + 635, + 1262, + 595, + 1259, + 591, + 1255, + 589, + 1254, + 583, + 1242, + 577, + 1206, + 577 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "e9c738b1fd328df97c3f51616cdb574737a21eed", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72276, + "probability": 100, + "points": [ + 725.84, + 738.06, + 730.5, + 741, + 736.63, + 742.23, + 740.55, + 741, + 749.13, + 726.79, + 756.24, + 723.11, + 757.22, + 718.45, + 754.03, + 715.27, + 752.31, + 712.08, + 753.54, + 699.34, + 755.75, + 696.64, + 761.14, + 694.93, + 766.77, + 695.91, + 772.17, + 698.36, + 772.9, + 699.34, + 773.64, + 711.35, + 772.17, + 716, + 772.17, + 721.15, + 775.35, + 725.32, + 790.06, + 735.12, + 793.98, + 737.08, + 808.44, + 736.84, + 807.7, + 744.68, + 806.72, + 746.88, + 788.59, + 748.36, + 782.95, + 745.17, + 779.76, + 744.92, + 779.03, + 746.15, + 777.56, + 772.37, + 778.29, + 784.87, + 781.97, + 803.75, + 780.5, + 827.27, + 789.57, + 830.21, + 795.69, + 833.4, + 795.94, + 836.1, + 795.45, + 836.83, + 771.68, + 837.81, + 770.94, + 831.19, + 769.22, + 828.01, + 769.22, + 825.31, + 771.43, + 822.86, + 770.7, + 819.43, + 771.43, + 808.65, + 760.4, + 815.26, + 750.35, + 817.96, + 751.33, + 819.68, + 750.84, + 820.41, + 749.37, + 819.68, + 747.41, + 820.17, + 746.68, + 821.15, + 746.43, + 824.82, + 743, + 829.23, + 741.78, + 836.1, + 741.46, + 838.04, + 740.55, + 837.32, + 738.83, + 831.19, + 737.12, + 830.7, + 735.4, + 812.08, + 744.96, + 810.36, + 763.83, + 800.56, + 762.36, + 794.92, + 760.65, + 791.49, + 760.89, + 787.57, + 758.44, + 784.38, + 755.01, + 782.18, + 753.29, + 778.99, + 749.62, + 777.77, + 746.43, + 750.56, + 730.75, + 751.54, + 725.11, + 749.58, + 721.43, + 744.68, + 721.19, + 742.96 + ], + "groupId": 0, + "pointLabels": { + "0": "Left Hand", + "21": "Right Hand", + "36": "Right Foot", + "53": "Left Foot" + }, + "locked": false, + "visible": true, + "attributes": [], + "trackingId": "932bda5b59db89dd68602306c70d8da62e0afdc", + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Human" + } + ], + "tags": [ + "tag1", + "tag2" + ], + "comments": [ + { + "x": 521.41, + "y": 531.6, + "resolved": false, + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "correspondence": [ + { + "text": "dd2", + "email": "hovnatan@superannotate.com" + } + ] + } + ] +} diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_3.jpg b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_3.jpg new file mode 100644 index 000000000..be81964b7 Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_3.jpg differ diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_3.jpg___fuse.png b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_3.jpg___fuse.png new file mode 100644 index 000000000..2c0fe5133 Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_3.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_3.jpg___objects.json b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_3.jpg___objects.json new file mode 100644 index 000000000..36c8a9fec --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_3.jpg___objects.json @@ -0,0 +1,720 @@ +{ + "metadata": { + "name": "example_image_3.jpg", + "width": 1200, + "height": 675, + "status": "Completed", + "pinned": false, + "isPredicted": null, + "projectId": null, + "annotatorEmail": null, + "qaEmail": null + }, + "instances": [ + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 0.39, + 272.46, + 4.33, + 260.62, + 30.82, + 222.01, + 17.3, + 216.66, + 41.25, + 208.77, + 58.72, + 209.33, + 72.81, + 200.03, + 99.02, + 194.96, + 182.44, + 185.09, + 280.79, + 179.18, + 315.73, + 183.97, + 319.4, + 186.78, + 359.13, + 183.4, + 380.55, + 184.25, + 441.98, + 205.38, + 485.38, + 231.59, + 561.19, + 240.89, + 562.88, + 242.3, + 568.52, + 244.27, + 583.17, + 254.7, + 585.99, + 259.21, + 589.94, + 267.95, + 593.32, + 280.63, + 594.16, + 286.83, + 593.88, + 290.21, + 580.92, + 311.06, + 575.56, + 318.11, + 573.03, + 328.82, + 573.31, + 342.91, + 571.05, + 351.36, + 567.96, + 358.97, + 565.42, + 364.05, + 561.47, + 369.12, + 556.68, + 373.35, + 549.07, + 378.14, + 544, + 380.11, + 531.88, + 382.08, + 521.46, + 381.8, + 502.57, + 372.22, + 495.25, + 364.33, + 492.43, + 359.54, + 306.15, + 408.01, + 302.21, + 414.77, + 300.23, + 415.9, + 295.72, + 416.18, + 291.5, + 418.44, + 284.17, + 441.83, + 277.41, + 449.72, + 272.9, + 457.04, + 267.26, + 463.24, + 257.96, + 468.32, + 245.28, + 471.98, + 238.23, + 472.54, + 228.93, + 474.52, + 218.22, + 474.52, + 204.13, + 470.85, + 190.61, + 462.12, + 183, + 453.94, + 176.23, + 453.1, + 168.63, + 450.84, + 165.81, + 449.43, + 161.3, + 445.49, + 158.48, + 440.7, + 157.63, + 437.88, + 156.51, + 428.02, + 89.44, + 432.81, + 79.01, + 428.3, + 72.81, + 431.4, + 62.66, + 434.5, + 57.87, + 435.34, + 48.57, + 435.63, + 46.88, + 434.5, + 46.04, + 429.99, + 44.06, + 426.04, + 0.39, + 404.91 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1198.84, + 310.57, + 1099.1, + 298.81, + 1059.15, + 297.83, + 1035.87, + 304.93, + 993.48, + 321.84, + 918, + 370.61, + 917.27, + 376.98, + 867.77, + 435.79, + 857.96, + 439.71, + 854.78, + 444.12, + 852.33, + 451.72, + 843.75, + 488.72, + 843.26, + 488.72, + 835.17, + 504.41, + 833.7, + 512.25, + 833.21, + 565.43, + 834.44, + 605.37, + 835.91, + 607.58, + 840.81, + 611.01, + 877.08, + 643.6, + 893.5, + 648.25, + 949.86, + 674.23, + 1199.33, + 674.48 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 981.04, + 326.53, + 979.55, + 317.59, + 972.1, + 288.89, + 933.33, + 276.22, + 923.27, + 270.63, + 884.88, + 245.28, + 849.85, + 237.08, + 783.88, + 227.02, + 709.72, + 229.63, + 608.34, + 256.09, + 607.6, + 256.84, + 604.62, + 264.29, + 606.85, + 267.64, + 591.94, + 294.85, + 574.43, + 320.19, + 572.94, + 328.39, + 572.94, + 340.69, + 574.05, + 343.3, + 574.43, + 347.77, + 574.43, + 360.45, + 571.44, + 368.64, + 569.95, + 375.35, + 570.33, + 394.36, + 575.17, + 413, + 576.66, + 415.98, + 580.76, + 420.08, + 583.37, + 425.67, + 587.84, + 429.77, + 592.69, + 437.22, + 596.42, + 439.46, + 600.89, + 440.58, + 612.07, + 445.42, + 627.35, + 445.79, + 640.02, + 441.69, + 645.24, + 436.1, + 684.75, + 448.03, + 716.8, + 459.96, + 729.84, + 469.65, + 741.77, + 489.77, + 750.34, + 493.87, + 754.81, + 494.62, + 765.25, + 494.62, + 779.41, + 490.52, + 786.12, + 487.16, + 793.57, + 480.45, + 798.79, + 472.25, + 802.14, + 463.68, + 802.89, + 456.6, + 804.01, + 453.62, + 804.38, + 440.58, + 893.83, + 403.31, + 915.82, + 378.33, + 918.05, + 368.27, + 976.19, + 331.75 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 653.44, + 240.81, + 656.42, + 217.7, + 703.01, + 171.86, + 763.76, + 158.44, + 811.84, + 159.19, + 840.16, + 164.41, + 843.51, + 166.64, + 846.87, + 167.76, + 855.81, + 177.08, + 861.4, + 181.18, + 865.88, + 185.65, + 867.74, + 186.77, + 873.33, + 187.51, + 879.29, + 192.36, + 898.67, + 192.73, + 907.25, + 196.83, + 914.7, + 205.03, + 919.17, + 215.09, + 918.43, + 242.3, + 912.84, + 262.43, + 885.26, + 244.16, + 785.75, + 226.27, + 707.85, + 228.88, + 659.03, + 242.3 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 770.09, + 156.21, + 763.76, + 153.23, + 689.96, + 148.01, + 647.1, + 152.85, + 634.06, + 158.44, + 619.15, + 168.51, + 611.7, + 172.23, + 608.71, + 174.84, + 586.35, + 181.92, + 581.51, + 186.02, + 579.64, + 196.83, + 579.64, + 203.54, + 577.78, + 209.88, + 574.05, + 215.47, + 573.68, + 223.29, + 577.78, + 230.75, + 582.25, + 235.96, + 595.3, + 239.69, + 604.99, + 240.81, + 611.32, + 244.16, + 614.68, + 247.15, + 618.4, + 248.64, + 628.84, + 248.64, + 651.95, + 243.42, + 654.93, + 217.7, + 702.26, + 171.11 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1198.32, + 145.4, + 1134.59, + 143.91, + 1118.57, + 145.77, + 1113.72, + 148.38, + 1107.38, + 150.24, + 1102.17, + 154.72, + 1097.32, + 162.54, + 1093.97, + 171.49, + 1090.24, + 177.08, + 1081.67, + 185.28, + 1028.37, + 202.05, + 1022.04, + 212.48, + 1018.31, + 235.22, + 1018.68, + 249.75, + 1020.92, + 253.11, + 1023.53, + 254.97, + 1035.08, + 260.56, + 1037.32, + 264.29, + 1039.93, + 297.09, + 1043.28, + 301.56, + 1058.93, + 297.09, + 1079.06, + 298.2, + 1080.55, + 295.97, + 1082.79, + 288.89, + 1082.79, + 282.18, + 1174.84, + 293.36, + 1178.57, + 306.4, + 1180.43, + 308.27, + 1182.67, + 309.39, + 1197.95, + 309.76 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 1104.78, + 149.87, + 1073.84, + 127.14, + 1046.63, + 123.04, + 1016.82, + 120.06, + 948.99, + 128.25, + 947.5, + 129.37, + 929.61, + 161.8, + 928.49, + 168.13, + 928.49, + 194.22, + 930.73, + 199.81, + 932.22, + 200.93, + 935.57, + 201.68, + 938.55, + 203.91, + 938.93, + 209.88, + 940.04, + 213.6, + 946.01, + 224.04, + 959.42, + 224.78, + 963.9, + 220.68, + 965.01, + 218.45, + 965.01, + 215.47, + 1019.06, + 214.72, + 1019.8, + 212.11, + 1026.51, + 201.68, + 1081.3, + 184.53, + 1090.61, + 175.21 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 311.68, + 181.44, + 374.66, + 182.42, + 320.01, + 185.86 + ], + "groupId": 1, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 394.51, + 187.08, + 470.97, + 212.81, + 502.34, + 221.88, + 509.2, + 228.25, + 510.67, + 233.64, + 484.69, + 230.95, + 438.62, + 204.72, + 397.7, + 190.02, + 390.35, + 186.35 + ], + "groupId": 1, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + } + ], + "tags": [ + "tag2", + "tag3" + ], + "comments": [] +} diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_4.jpg b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_4.jpg new file mode 100644 index 000000000..5a530049d Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_4.jpg differ diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_4.jpg___fuse.png b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_4.jpg___fuse.png new file mode 100644 index 000000000..10285ee1d Binary files /dev/null and b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_4.jpg___fuse.png differ diff --git a/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_4.jpg___objects.json b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_4.jpg___objects.json new file mode 100644 index 000000000..6ac232a88 --- /dev/null +++ b/tests/integration/convertors/data_set/sample_project_vector_objects_json/example_image_4.jpg___objects.json @@ -0,0 +1,1143 @@ +{ + "metadata": { + "name": "example_image_4.jpg", + "width": 680, + "height": 382, + "status": "Completed", + "pinned": false, + "isPredicted": null, + "projectId": null, + "annotatorEmail": null, + "qaEmail": null + }, + "instances": [ + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 150.76, + 215.35, + 151.45, + 224.38, + 152.7, + 226.18, + 158.12, + 226.74, + 159.23, + 226.32, + 160.48, + 219.24, + 188.67, + 223.13, + 214.5, + 223.13, + 217.27, + 229.51, + 222.27, + 229.24, + 226.02, + 227.57, + 228.8, + 217.85, + 243.93, + 206.32, + 245.88, + 210.63, + 250.32, + 211.18, + 252.68, + 210.07, + 255.32, + 204.52, + 257.13, + 186.05, + 254.35, + 164.66, + 244.07, + 147.45, + 236.02, + 146.06, + 215.74, + 144.11, + 190.89, + 143, + 180.75, + 150.64, + 171.45, + 159.53, + 167.14, + 164.66, + 163.39, + 170.36, + 161.03, + 167.3, + 157.14, + 167.86, + 155.06, + 168.97, + 154.51, + 170.22, + 154.64, + 171.33, + 158.53, + 173.83, + 160.06, + 174.25, + 153.53, + 185.08, + 151.73, + 196.88, + 149.23, + 205.91 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 0.07, + 270.84, + 10.21, + 271.08, + 15.77, + 272.77, + 22.89, + 279.29, + 25.43, + 280.5, + 32.31, + 285.93, + 39.8, + 289.07, + 42.7, + 292.09, + 45.47, + 296.32, + 48.25, + 301.27, + 49.22, + 305.13, + 45.71, + 336.53, + 44.39, + 339.91, + 42.94, + 342.2, + 38.83, + 344.38, + 34.24, + 344.98, + 31.22, + 344.98, + 28.33, + 343.41, + 0.07, + 362.49 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 0.15, + 363.3, + 4.62, + 360.62, + 10.53, + 359.01, + 44.89, + 355.07, + 77.63, + 358.11, + 94.09, + 363.3, + 97.49, + 366.34, + 100.89, + 371, + 102.15, + 374.4, + 102.5, + 381.73, + 0.51, + 381.73 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 110.2, + 380.84, + 105.72, + 373.68, + 103.75, + 367.95, + 106.44, + 338.61, + 108.05, + 331.81, + 125.41, + 312.48, + 117, + 308.37, + 115.92, + 307.29, + 115.38, + 304.97, + 115.56, + 301.93, + 116.64, + 300.49, + 117.89, + 299.96, + 120.93, + 299.96, + 125.41, + 301.75, + 126.66, + 302.82, + 128.09, + 308.37, + 151.35, + 276.87, + 169.96, + 261.84, + 178.91, + 256.83, + 223.11, + 258.26, + 244.94, + 266.5, + 254.78, + 276.69, + 258.36, + 283.49, + 263.37, + 288.68, + 266.05, + 293.34, + 267.3, + 300.49, + 267.66, + 313.2, + 262.83, + 348.09, + 262.83, + 347.73, + 259.43, + 355.07, + 258.71, + 355.61, + 249.95, + 356.14, + 246.19, + 353.82, + 245.29, + 351.31, + 226.33, + 369.03, + 225.07, + 381.37 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 396.32, + 381.55, + 397.21, + 364.02, + 391.84, + 345.77, + 388.8, + 338.07, + 387.91, + 337.36, + 380.21, + 333.6, + 374.67, + 331.45, + 371.45, + 330.56, + 308.64, + 325.55, + 296.11, + 328.59, + 289.49, + 333.6, + 273.21, + 353.46, + 264.44, + 369.74, + 255.49, + 367.06, + 252.99, + 368.13, + 250.66, + 371, + 250.66, + 374.22, + 252.27, + 376.36, + 255.85, + 379.05, + 256.03, + 381.37 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 339.59, + 327.16, + 340.67, + 317.31, + 356.59, + 298.35, + 355.88, + 297.45, + 346.75, + 294.23, + 346.57, + 293.52, + 349.62, + 288.86, + 354.8, + 288.5, + 356.95, + 290.29, + 357.67, + 292.62, + 359.64, + 292.98, + 377.89, + 267.21, + 390.59, + 255.76, + 417.61, + 254.33, + 454.29, + 259.7, + 465.21, + 265.24, + 474.51, + 273.83, + 478.09, + 285.64, + 479.52, + 301.93, + 478.27, + 324.11, + 477.02, + 331.81, + 472.37, + 340.04, + 469.5, + 342.37, + 466.64, + 342.72, + 462.53, + 342.01, + 460.38, + 339.14, + 460.2, + 337.18, + 449.1, + 354, + 449.28, + 367.95, + 447.67, + 370.82, + 444.27, + 374.57, + 436.76, + 376.9, + 431.57, + 376.36, + 427.81, + 371.89, + 396.68, + 373.68, + 396.85, + 362.41, + 389.16, + 337.53, + 379.32, + 332.34, + 374.13, + 330.38 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 406.52, + 253.43, + 414.39, + 239.83, + 405.44, + 236.43, + 403.65, + 233.57, + 404.01, + 230.17, + 405.27, + 229.46, + 407.77, + 229.46, + 411.53, + 230.53, + 415.29, + 233.75, + 416.72, + 233.93, + 436.58, + 209.24, + 448.75, + 200.82, + 493.3, + 202.61, + 508.33, + 207.98, + 515.13, + 227.67, + 517.1, + 230.53, + 519.79, + 238.22, + 521.04, + 239.65, + 521.58, + 241.44, + 521.58, + 246.81, + 517.82, + 274.01, + 512.81, + 279.92, + 506.01, + 280.81, + 505.11, + 278.13, + 498.67, + 286.36, + 496.88, + 300.85, + 495.63, + 304.07, + 493.66, + 305.33, + 491.16, + 305.86, + 487.76, + 305.68, + 483.1, + 302.82, + 483.1, + 297.09, + 479.17, + 296.74, + 477.74, + 285.46, + 474.51, + 273.65, + 463.96, + 264.17, + 455.01, + 259.7, + 416.9, + 253.43 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 232.6, + 261.5, + 231.9, + 254.42, + 233.43, + 249.84, + 241.2, + 233.31, + 241.34, + 231.51, + 234.96, + 227.9, + 234.4, + 226.93, + 234.4, + 224.43, + 237.04, + 223.45, + 243.29, + 223.45, + 243.98, + 224.01, + 244.95, + 227.06, + 261.34, + 203.74, + 272.87, + 195.13, + 286.06, + 192.77, + 304.53, + 193.32, + 325.08, + 196.38, + 336.19, + 201.93, + 339.52, + 211.65, + 345.77, + 218.04, + 348.13, + 222.48, + 350.07, + 247.89, + 348.41, + 251.92, + 346.88, + 264.84, + 343.69, + 270.11, + 341.05, + 271.36, + 338.13, + 271.92, + 335.35, + 271.64, + 332.86, + 266.78, + 323.41, + 276.92, + 323.55, + 286.78, + 321.33, + 292.47, + 319.66, + 294, + 315.08, + 295.39, + 312.58, + 294.83, + 310.36, + 292.47, + 308.69, + 288.03, + 284.81, + 290.53, + 263.98, + 290.39, + 261.9, + 287.19, + 257.87, + 283.44, + 254.81, + 276.5, + 245.09, + 266.22 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 423.82, + 109.43, + 445.55, + 110.52, + 450.74, + 115.71, + 451.95, + 120.9, + 455.82, + 129.23, + 457.75, + 135.39, + 458.11, + 142.52, + 456.06, + 146.26, + 455.57, + 148.07, + 455.57, + 150.12, + 456.18, + 151.69, + 455.82, + 165.94, + 455.09, + 167.88, + 452.07, + 169.81, + 450.38, + 170.17, + 447.48, + 169.93, + 445.67, + 168, + 440.24, + 173.55, + 439.63, + 181.64, + 437.34, + 183.57, + 434.44, + 183.45, + 432.39, + 182.61, + 430.94, + 180.67, + 430.58, + 176.81, + 422.73, + 176.93, + 423.45, + 174.03, + 422.97, + 125.61, + 419.47, + 121.99, + 423.57, + 118.85 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72274, + "probability": 100, + "points": [ + 12.52, + 102.15, + 17.66, + 94.48, + 15.77, + 92.17, + 15.56, + 88.71, + 16.4, + 88.39, + 18.4, + 89.23, + 22.39, + 89.44, + 23.86, + 90.6, + 39.72, + 73.17, + 46.02, + 71.17, + 65.76, + 69.28, + 80.04, + 68.97, + 89.91, + 69.7, + 98.1, + 73.48, + 102.51, + 77.79, + 103.77, + 81.15, + 97.89, + 123.68, + 97.89, + 127.35, + 97.05, + 124.31, + 82.66, + 126.93, + 81.61, + 134.39, + 80.46, + 136.38, + 75, + 138.27, + 72.79, + 138.27, + 71.22, + 137.54, + 69.96, + 136.28, + 68.59, + 132.81, + 63.55, + 133.13, + 63.24, + 104.04, + 57.88, + 103.51, + 57.67, + 106.88 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Personal vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 0.41, + 101.91, + 57.82, + 107.46, + 58.02, + 103.56, + 63.37, + 103.97, + 63.17, + 173.31, + 55.76, + 174.96, + 57.2, + 186.07, + 57.2, + 205.21, + 53.08, + 205.42, + 52.06, + 222.5, + 50.41, + 226.82, + 47.32, + 232.17, + 45.88, + 236.49, + 42.18, + 239.78, + 36.42, + 242.25, + 27.57, + 242.46, + 24.28, + 245.13, + 22.42, + 248.63, + 20.78, + 250.28, + 15.02, + 253.16, + 5.76, + 253.77, + 0.41, + 252.13 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 222.23, + 143.48, + 232.31, + 141.21, + 234.17, + 142.45, + 239.52, + 142.65, + 242.6, + 140.18, + 244.87, + 135.66, + 245.69, + 116.52, + 262.15, + 116.72, + 261.74, + 109.52, + 265.65, + 100.67, + 261.95, + 83.39, + 253.72, + 81.54, + 214, + 77.42, + 210.5, + 76.39, + 208.65, + 62.4, + 206.8, + 60.75, + 206.59, + 57.25, + 118.52, + 53.96, + 117.9, + 56.64, + 109.26, + 61.16, + 106.38, + 65.49, + 98.56, + 122.69, + 97.94, + 141.62, + 99.18, + 152.74, + 108.02, + 155, + 110.7, + 160.35, + 112.96, + 162.61, + 115.02, + 163.23, + 118.11, + 162.41, + 119.96, + 155.82, + 169.14, + 159.12, + 168.94, + 161.38, + 190.95, + 142.45 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 303.1, + 192.66, + 304.75, + 181.96, + 307.84, + 169.2, + 301.66, + 167.96, + 300.84, + 160.56, + 302.69, + 156.44, + 306.4, + 156.44, + 309.48, + 157.68, + 321.01, + 130.92, + 318.95, + 129.28, + 318.95, + 120.84, + 350.64, + 103.14, + 351.46, + 106.64, + 421.84, + 110.14, + 422.66, + 108.7, + 423.28, + 108.7, + 423.28, + 118.58, + 419.16, + 122.08, + 422.45, + 125.78, + 423.07, + 173.73, + 419.16, + 196.77, + 415.46, + 208.91, + 412.99, + 212.82, + 410.52, + 214.06, + 407.84, + 213.85, + 404.55, + 210.35, + 403.93, + 208.3, + 392.41, + 217.76, + 390.76, + 231.76, + 389.74, + 233.4, + 385.83, + 235.67, + 376.57, + 235.67, + 374.3, + 233.81, + 372.66, + 227.85, + 348.37, + 228.46, + 348.58, + 222.29, + 339.73, + 211.59, + 335.82, + 201.3, + 324.92, + 195.95 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + }, + { + "type": "polygon", + "classId": 72275, + "probability": 100, + "points": [ + 462.58, + 200.89, + 463.2, + 193.07, + 468.34, + 173.93, + 459.08, + 172.08, + 461.96, + 158.29, + 467.31, + 158.29, + 467.93, + 165.7, + 471.22, + 165.91, + 481.31, + 128.04, + 490.36, + 110.96, + 486.86, + 109.52, + 486.45, + 99.85, + 489.33, + 82.36, + 518.76, + 62.61, + 517.73, + 80.1, + 586.87, + 88.74, + 585.64, + 91.62, + 589.55, + 95.53, + 589.96, + 160.35, + 587.08, + 178.05, + 582.76, + 190.81, + 581.11, + 211.18, + 579.46, + 214.06, + 576.79, + 215.91, + 572.47, + 216.32, + 568.56, + 214.47, + 559.71, + 226.2, + 556.21, + 228.05, + 551.89, + 234.02, + 552.1, + 250.07, + 548.8, + 249.66, + 545.1, + 246.37, + 544.28, + 243.9, + 543.86, + 236.08, + 519.58, + 237.11, + 516.7, + 229.49, + 514.85, + 227.85, + 508.26, + 207.06, + 493.45, + 202.12 + ], + "groupId": 0, + "pointLabels": {}, + "locked": false, + "visible": true, + "attributes": [], + "createdAt": null, + "createdBy": null, + "creationType": null, + "updatedAt": null, + "updatedBy": null, + "className": "Large vehicle" + } + ], + "tags": [ + "tag1" + ], + "comments": [] +} diff --git a/tests/integration/convertors/test_exprort_annotation_instance_segmentation.py b/tests/integration/convertors/test_exprort_annotation_instance_segmentation.py new file mode 100644 index 000000000..c47342ab5 --- /dev/null +++ b/tests/integration/convertors/test_exprort_annotation_instance_segmentation.py @@ -0,0 +1,45 @@ +import filecmp +import tempfile +from unittest import TestCase + +from src.superannotate import export_annotation +from tests.integration.convertors import DATA_SET_PATH + + +class TestExportInstanceSegmentation(TestCase): + DATA_SET_NAME = "TestVectorAnnotationImage" + VECTOR_DATA_PATH = DATA_SET_PATH / "sample_project_vector" + VECTOR_DATA_OBJECTS_JSON_PATH = DATA_SET_PATH / "sample_project_vector_objects_json" + COCO_INSTANCE_SEGMENTATION = DATA_SET_PATH / "coco_instance_segmentation" + + def test_convertor(self): + with tempfile.TemporaryDirectory() as tmp_dir: + export_annotation( + self.VECTOR_DATA_PATH, + tmp_dir, + dataset_name=self.DATA_SET_NAME, + dataset_format="COCO", + project_type="Vector", + task="instance_segmentation", + ) + dircmp = filecmp.dircmp( + DATA_SET_PATH / self.COCO_INSTANCE_SEGMENTATION, + tmp_dir, + ) + assert not any([dircmp.left_only, dircmp.right_only]) + + def test_convertor_objects_json(self): + with tempfile.TemporaryDirectory() as tmp_dir: + export_annotation( + self.VECTOR_DATA_OBJECTS_JSON_PATH, + tmp_dir, + dataset_name=self.DATA_SET_NAME, + dataset_format="COCO", + project_type="Vector", + task="instance_segmentation", + ) + dircmp = filecmp.dircmp( + DATA_SET_PATH / self.COCO_INSTANCE_SEGMENTATION, + tmp_dir, + ) + assert not any([dircmp.left_only, dircmp.right_only]) diff --git a/tests/integration/convertors/test_exprort_annotation_object_detection.py b/tests/integration/convertors/test_exprort_annotation_object_detection.py new file mode 100644 index 000000000..16b9a114c --- /dev/null +++ b/tests/integration/convertors/test_exprort_annotation_object_detection.py @@ -0,0 +1,45 @@ +import filecmp +import tempfile +from unittest import TestCase + +from src.superannotate import export_annotation +from tests.integration.convertors import DATA_SET_PATH + + +class TestExportObjectDetection(TestCase): + DATA_SET_NAME = "TestVectorAnnotationImage" + VECTOR_DATA_PATH = DATA_SET_PATH / "sample_project_vector" + VECTOR_DATA_OBJECTS_JSON_PATH = DATA_SET_PATH / "sample_project_vector_objects_json" + COCO_OBJECT_DETECTION = DATA_SET_PATH / "coco_object_detection" + + def test_convertor(self): + with tempfile.TemporaryDirectory() as tmp_dir: + export_annotation( + self.VECTOR_DATA_PATH, + tmp_dir, + dataset_name=self.DATA_SET_NAME, + dataset_format="COCO", + project_type="Vector", + task="object_detection", + ) + dircmp = filecmp.dircmp( + DATA_SET_PATH / self.COCO_OBJECT_DETECTION, + tmp_dir, + ) + assert not any([dircmp.left_only, dircmp.right_only]) + + def test_convertor_objects_json(self): + with tempfile.TemporaryDirectory() as tmp_dir: + export_annotation( + self.VECTOR_DATA_OBJECTS_JSON_PATH, + tmp_dir, + dataset_name=self.DATA_SET_NAME, + dataset_format="COCO", + project_type="Vector", + task="object_detection", + ) + dircmp = filecmp.dircmp( + DATA_SET_PATH / self.COCO_OBJECT_DETECTION, + tmp_dir, + ) + assert not any([dircmp.left_only, dircmp.right_only])