@luxonis/visualizer-protobuf 1.8.8 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/apps/depthai-visualizer/src/components/Panel.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/components/Panel.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/components/PanelToolbar.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/components/PanelToolbar.js +14 -1
- package/dist/apps/depthai-visualizer/src/components/PanelToolbar.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/connection/BaseConnection.d.ts +10 -3
- package/dist/apps/depthai-visualizer/src/connection/BaseConnection.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/connection/BaseConnection.js +23 -38
- package/dist/apps/depthai-visualizer/src/connection/BaseConnection.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/connection/ws/Connection.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/connection/ws/Connection.js +1 -2
- package/dist/apps/depthai-visualizer/src/connection/ws/Connection.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.d.ts +4 -0
- package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.js +4 -0
- package/dist/apps/depthai-visualizer/src/context/ConnectionsProvider.js.map +1 -0
- package/dist/apps/depthai-visualizer/src/context/MessagePipelineProvider.d.ts +1 -4
- package/dist/apps/depthai-visualizer/src/context/MessagePipelineProvider.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/MessagePipelineProvider.js +3 -2
- package/dist/apps/depthai-visualizer/src/context/MessagePipelineProvider.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/VisualizerContext.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/context/VisualizerContext.js +3 -1
- package/dist/apps/depthai-visualizer/src/context/VisualizerContext.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/pointcloud/point-cloud.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/pointcloud/point-cloud.js +5 -1
- package/dist/apps/depthai-visualizer/src/messaging/deserialization/pointcloud/point-cloud.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/panels/ImagePanel.d.ts +4 -2
- package/dist/apps/depthai-visualizer/src/panels/ImagePanel.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/panels/ImagePanel.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.d.ts +2 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.js +19 -2
- package/dist/apps/depthai-visualizer/src/protobuf.generated/EncodedFrame.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.d.ts +2 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.js +18 -2
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgDetections.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.d.ts +2 -2
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.js +10 -10
- package/dist/apps/depthai-visualizer/src/protobuf.generated/ImgFrame.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.d.ts +2 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.js +18 -2
- package/dist/apps/depthai-visualizer/src/protobuf.generated/SpatialImgDetections.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/common.d.ts +14 -36
- package/dist/apps/depthai-visualizer/src/protobuf.generated/common.d.ts.map +1 -1
- package/dist/apps/depthai-visualizer/src/protobuf.generated/common.js +100 -280
- package/dist/apps/depthai-visualizer/src/protobuf.generated/common.js.map +1 -1
- package/dist/apps/depthai-visualizer/src/utils/metrics-manager.d.ts +6 -0
- package/dist/apps/depthai-visualizer/src/utils/metrics-manager.d.ts.map +1 -0
- package/dist/apps/depthai-visualizer/src/utils/metrics-manager.js +25 -0
- package/dist/apps/depthai-visualizer/src/utils/metrics-manager.js.map +1 -0
- package/dist/{index-DAPJpbdc.js → index-B90SOlyW.js} +2 -2
- package/dist/{index-lDSplInz.js → index-BC0mvy9n.js} +2 -2
- package/dist/{index-DlKZDt0v.js → index-BHB02ggP.js} +2 -2
- package/dist/{index-ovt0UKFi.js → index-BKL2MC-f.js} +2 -2
- package/dist/{index-Bpjac43y.js → index-BiY9B9Hp.js} +2 -2
- package/dist/{index-CbLiW7lk.js → index-Bw-Q_7-v.js} +2 -2
- package/dist/{index-Cl5tDqdc.js → index-Bw8PEeXU.js} +2 -2
- package/dist/{index-BBXW7Wxj.js → index-C_gk0bw5.js} +112 -73
- package/dist/{index-DkQzCBNS.js → index-CgAqNIiJ.js} +2 -2
- package/dist/{index-zKmjws_7.js → index-Cngl5F-F.js} +2 -2
- package/dist/{index-DUnP2Xma.js → index-CuGn8iKw.js} +3 -3
- package/dist/{index-DCbNqqQc.js → index-DHbA32BQ.js} +2 -2
- package/dist/{index-QEJn3K9v.js → index-DMZhlvho.js} +2 -2
- package/dist/{index-0Q6EqxBW.js → index-DhuAGhcS.js} +2 -2
- package/dist/{index-CF21cEJo.js → index-DuGBc6J-.js} +2 -2
- package/dist/{index-W-M5T20d.js → index-EvfybjSU.js} +2 -2
- package/dist/{index-pNYe-U8V.js → index-LU4UNxxi.js} +2 -2
- package/dist/{index-H6bxF3CN.js → index-N0R0IEbS.js} +2 -2
- package/dist/{index-F8-9liAo.js → index-p-TovfmA.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{worker-D2k1TTky.js → worker-ChM3ax4q.js} +1 -1
- package/dist/{worker-utils-Jii8lIsy.js → worker-utils-wwKCGQOc.js} +149 -292
- package/package.json +1 -1
|
@@ -1505,57 +1505,45 @@ Long.fromBytesBE = function fromBytesBE(bytes, unsigned) {
|
|
|
1505
1505
|
// protoc v3.19.6
|
|
1506
1506
|
// source: common.proto
|
|
1507
1507
|
|
|
1508
|
-
let
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
Transformation[Transformation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1516
|
-
return Transformation;
|
|
1508
|
+
let CameraModel = /*#__PURE__*/function (CameraModel) {
|
|
1509
|
+
CameraModel[CameraModel["PERSPECTIVE"] = 0] = "PERSPECTIVE";
|
|
1510
|
+
CameraModel[CameraModel["FISHEYE"] = 1] = "FISHEYE";
|
|
1511
|
+
CameraModel[CameraModel["EQUIRECTANGULAR"] = 2] = "EQUIRECTANGULAR";
|
|
1512
|
+
CameraModel[CameraModel["RADIALDIVISION"] = 3] = "RADIALDIVISION";
|
|
1513
|
+
CameraModel[CameraModel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
1514
|
+
return CameraModel;
|
|
1517
1515
|
}({});
|
|
1518
|
-
function
|
|
1516
|
+
function cameraModelFromJSON(object) {
|
|
1519
1517
|
switch (object) {
|
|
1520
1518
|
case 0:
|
|
1521
|
-
case "
|
|
1522
|
-
return
|
|
1519
|
+
case "PERSPECTIVE":
|
|
1520
|
+
return CameraModel.PERSPECTIVE;
|
|
1523
1521
|
case 1:
|
|
1524
|
-
case "
|
|
1525
|
-
return
|
|
1522
|
+
case "FISHEYE":
|
|
1523
|
+
return CameraModel.FISHEYE;
|
|
1526
1524
|
case 2:
|
|
1527
|
-
case "
|
|
1528
|
-
return
|
|
1525
|
+
case "EQUIRECTANGULAR":
|
|
1526
|
+
return CameraModel.EQUIRECTANGULAR;
|
|
1529
1527
|
case 3:
|
|
1530
|
-
case "
|
|
1531
|
-
return
|
|
1532
|
-
case 4:
|
|
1533
|
-
case "FLIP":
|
|
1534
|
-
return Transformation.FLIP;
|
|
1535
|
-
case 5:
|
|
1536
|
-
case "SCALE":
|
|
1537
|
-
return Transformation.SCALE;
|
|
1528
|
+
case "RADIALDIVISION":
|
|
1529
|
+
return CameraModel.RADIALDIVISION;
|
|
1538
1530
|
case -1:
|
|
1539
1531
|
case "UNRECOGNIZED":
|
|
1540
1532
|
default:
|
|
1541
|
-
return
|
|
1533
|
+
return CameraModel.UNRECOGNIZED;
|
|
1542
1534
|
}
|
|
1543
1535
|
}
|
|
1544
|
-
function
|
|
1536
|
+
function cameraModelToJSON(object) {
|
|
1545
1537
|
switch (object) {
|
|
1546
|
-
case
|
|
1547
|
-
return "
|
|
1548
|
-
case
|
|
1549
|
-
return "
|
|
1550
|
-
case
|
|
1551
|
-
return "
|
|
1552
|
-
case
|
|
1553
|
-
return "
|
|
1554
|
-
case
|
|
1555
|
-
return "FLIP";
|
|
1556
|
-
case Transformation.SCALE:
|
|
1557
|
-
return "SCALE";
|
|
1558
|
-
case Transformation.UNRECOGNIZED:
|
|
1538
|
+
case CameraModel.PERSPECTIVE:
|
|
1539
|
+
return "PERSPECTIVE";
|
|
1540
|
+
case CameraModel.FISHEYE:
|
|
1541
|
+
return "FISHEYE";
|
|
1542
|
+
case CameraModel.EQUIRECTANGULAR:
|
|
1543
|
+
return "EQUIRECTANGULAR";
|
|
1544
|
+
case CameraModel.RADIALDIVISION:
|
|
1545
|
+
return "RADIALDIVISION";
|
|
1546
|
+
case CameraModel.UNRECOGNIZED:
|
|
1559
1547
|
default:
|
|
1560
1548
|
return "UNRECOGNIZED";
|
|
1561
1549
|
}
|
|
@@ -1565,8 +1553,6 @@ function transformationToJSON(object) {
|
|
|
1565
1553
|
|
|
1566
1554
|
/** Shared CameraSettings message */
|
|
1567
1555
|
|
|
1568
|
-
/** Shared ImgTransformations message */
|
|
1569
|
-
|
|
1570
1556
|
function createBaseTimestamp() {
|
|
1571
1557
|
return {
|
|
1572
1558
|
sec: 0,
|
|
@@ -1750,140 +1736,43 @@ const CameraSettings = {
|
|
|
1750
1736
|
return message;
|
|
1751
1737
|
}
|
|
1752
1738
|
};
|
|
1753
|
-
function createBaseImgTransformations() {
|
|
1754
|
-
return {
|
|
1755
|
-
transformations: [],
|
|
1756
|
-
invalidFlag: false
|
|
1757
|
-
};
|
|
1758
|
-
}
|
|
1759
|
-
const ImgTransformations = {
|
|
1760
|
-
encode(message, writer = _m0.Writer.create()) {
|
|
1761
|
-
for (const v of message.transformations) {
|
|
1762
|
-
ImgTransformation.encode(v, writer.uint32(10).fork()).ldelim();
|
|
1763
|
-
}
|
|
1764
|
-
if (message.invalidFlag !== false) {
|
|
1765
|
-
writer.uint32(16).bool(message.invalidFlag);
|
|
1766
|
-
}
|
|
1767
|
-
return writer;
|
|
1768
|
-
},
|
|
1769
|
-
decode(input, length) {
|
|
1770
|
-
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
1771
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1772
|
-
const message = createBaseImgTransformations();
|
|
1773
|
-
while (reader.pos < end) {
|
|
1774
|
-
const tag = reader.uint32();
|
|
1775
|
-
switch (tag >>> 3) {
|
|
1776
|
-
case 1:
|
|
1777
|
-
if (tag !== 10) {
|
|
1778
|
-
break;
|
|
1779
|
-
}
|
|
1780
|
-
message.transformations.push(ImgTransformation.decode(reader, reader.uint32()));
|
|
1781
|
-
continue;
|
|
1782
|
-
case 2:
|
|
1783
|
-
if (tag !== 16) {
|
|
1784
|
-
break;
|
|
1785
|
-
}
|
|
1786
|
-
message.invalidFlag = reader.bool();
|
|
1787
|
-
continue;
|
|
1788
|
-
}
|
|
1789
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
1790
|
-
break;
|
|
1791
|
-
}
|
|
1792
|
-
reader.skipType(tag & 7);
|
|
1793
|
-
}
|
|
1794
|
-
return message;
|
|
1795
|
-
},
|
|
1796
|
-
fromJSON(object) {
|
|
1797
|
-
return {
|
|
1798
|
-
transformations: globalThis.Array.isArray(object?.transformations) ? object.transformations.map(e => ImgTransformation.fromJSON(e)) : [],
|
|
1799
|
-
invalidFlag: isSet$6(object.invalidFlag) ? globalThis.Boolean(object.invalidFlag) : false
|
|
1800
|
-
};
|
|
1801
|
-
},
|
|
1802
|
-
toJSON(message) {
|
|
1803
|
-
const obj = {};
|
|
1804
|
-
if (message.transformations?.length) {
|
|
1805
|
-
obj.transformations = message.transformations.map(e => ImgTransformation.toJSON(e));
|
|
1806
|
-
}
|
|
1807
|
-
if (message.invalidFlag !== false) {
|
|
1808
|
-
obj.invalidFlag = message.invalidFlag;
|
|
1809
|
-
}
|
|
1810
|
-
return obj;
|
|
1811
|
-
},
|
|
1812
|
-
create(base) {
|
|
1813
|
-
return ImgTransformations.fromPartial(base ?? {});
|
|
1814
|
-
},
|
|
1815
|
-
fromPartial(object) {
|
|
1816
|
-
const message = createBaseImgTransformations();
|
|
1817
|
-
message.transformations = object.transformations?.map(e => ImgTransformation.fromPartial(e)) || [];
|
|
1818
|
-
message.invalidFlag = object.invalidFlag ?? false;
|
|
1819
|
-
return message;
|
|
1820
|
-
}
|
|
1821
|
-
};
|
|
1822
1739
|
function createBaseImgTransformation() {
|
|
1823
1740
|
return {
|
|
1824
|
-
transformationType: 0,
|
|
1825
|
-
topLeftCropX: 0,
|
|
1826
|
-
topLeftCropY: 0,
|
|
1827
|
-
bottomRightCropX: 0,
|
|
1828
|
-
bottomRightCropY: 0,
|
|
1829
|
-
topPadding: 0,
|
|
1830
|
-
bottomPadding: 0,
|
|
1831
|
-
leftPadding: 0,
|
|
1832
|
-
rightPadding: 0,
|
|
1833
1741
|
transformationMatrix: undefined,
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1742
|
+
sourceIntrinsicMatrix: undefined,
|
|
1743
|
+
distortionModel: 0,
|
|
1744
|
+
distortionCoefficients: undefined,
|
|
1745
|
+
srcWidth: 0,
|
|
1746
|
+
srcHeight: 0,
|
|
1747
|
+
width: 0,
|
|
1748
|
+
height: 0
|
|
1839
1749
|
};
|
|
1840
1750
|
}
|
|
1841
1751
|
const ImgTransformation = {
|
|
1842
1752
|
encode(message, writer = _m0.Writer.create()) {
|
|
1843
|
-
if (message.
|
|
1844
|
-
writer.uint32(
|
|
1845
|
-
}
|
|
1846
|
-
if (message.topLeftCropX !== 0) {
|
|
1847
|
-
writer.uint32(16).int32(message.topLeftCropX);
|
|
1848
|
-
}
|
|
1849
|
-
if (message.topLeftCropY !== 0) {
|
|
1850
|
-
writer.uint32(24).int32(message.topLeftCropY);
|
|
1851
|
-
}
|
|
1852
|
-
if (message.bottomRightCropX !== 0) {
|
|
1853
|
-
writer.uint32(32).int32(message.bottomRightCropX);
|
|
1854
|
-
}
|
|
1855
|
-
if (message.bottomRightCropY !== 0) {
|
|
1856
|
-
writer.uint32(40).int32(message.bottomRightCropY);
|
|
1857
|
-
}
|
|
1858
|
-
if (message.topPadding !== 0) {
|
|
1859
|
-
writer.uint32(48).int32(message.topPadding);
|
|
1860
|
-
}
|
|
1861
|
-
if (message.bottomPadding !== 0) {
|
|
1862
|
-
writer.uint32(56).int32(message.bottomPadding);
|
|
1863
|
-
}
|
|
1864
|
-
if (message.leftPadding !== 0) {
|
|
1865
|
-
writer.uint32(64).int32(message.leftPadding);
|
|
1753
|
+
if (message.transformationMatrix !== undefined) {
|
|
1754
|
+
TransformationMatrix.encode(message.transformationMatrix, writer.uint32(10).fork()).ldelim();
|
|
1866
1755
|
}
|
|
1867
|
-
if (message.
|
|
1868
|
-
writer.uint32(
|
|
1756
|
+
if (message.sourceIntrinsicMatrix !== undefined) {
|
|
1757
|
+
TransformationMatrix.encode(message.sourceIntrinsicMatrix, writer.uint32(18).fork()).ldelim();
|
|
1869
1758
|
}
|
|
1870
|
-
if (message.
|
|
1871
|
-
|
|
1759
|
+
if (message.distortionModel !== 0) {
|
|
1760
|
+
writer.uint32(24).int32(message.distortionModel);
|
|
1872
1761
|
}
|
|
1873
|
-
if (message.
|
|
1874
|
-
|
|
1762
|
+
if (message.distortionCoefficients !== undefined) {
|
|
1763
|
+
FloatArray.encode(message.distortionCoefficients, writer.uint32(34).fork()).ldelim();
|
|
1875
1764
|
}
|
|
1876
|
-
if (message.
|
|
1877
|
-
writer.uint32(
|
|
1765
|
+
if (message.srcWidth !== 0) {
|
|
1766
|
+
writer.uint32(40).uint32(message.srcWidth);
|
|
1878
1767
|
}
|
|
1879
|
-
if (message.
|
|
1880
|
-
writer.uint32(
|
|
1768
|
+
if (message.srcHeight !== 0) {
|
|
1769
|
+
writer.uint32(48).uint32(message.srcHeight);
|
|
1881
1770
|
}
|
|
1882
|
-
if (message.
|
|
1883
|
-
writer.uint32(
|
|
1771
|
+
if (message.width !== 0) {
|
|
1772
|
+
writer.uint32(56).uint32(message.width);
|
|
1884
1773
|
}
|
|
1885
|
-
if (message.
|
|
1886
|
-
writer.uint32(
|
|
1774
|
+
if (message.height !== 0) {
|
|
1775
|
+
writer.uint32(64).uint32(message.height);
|
|
1887
1776
|
}
|
|
1888
1777
|
return writer;
|
|
1889
1778
|
},
|
|
@@ -1895,94 +1784,52 @@ const ImgTransformation = {
|
|
|
1895
1784
|
const tag = reader.uint32();
|
|
1896
1785
|
switch (tag >>> 3) {
|
|
1897
1786
|
case 1:
|
|
1898
|
-
if (tag !==
|
|
1787
|
+
if (tag !== 10) {
|
|
1899
1788
|
break;
|
|
1900
1789
|
}
|
|
1901
|
-
message.
|
|
1790
|
+
message.transformationMatrix = TransformationMatrix.decode(reader, reader.uint32());
|
|
1902
1791
|
continue;
|
|
1903
1792
|
case 2:
|
|
1904
|
-
if (tag !==
|
|
1793
|
+
if (tag !== 18) {
|
|
1905
1794
|
break;
|
|
1906
1795
|
}
|
|
1907
|
-
message.
|
|
1796
|
+
message.sourceIntrinsicMatrix = TransformationMatrix.decode(reader, reader.uint32());
|
|
1908
1797
|
continue;
|
|
1909
1798
|
case 3:
|
|
1910
1799
|
if (tag !== 24) {
|
|
1911
1800
|
break;
|
|
1912
1801
|
}
|
|
1913
|
-
message.
|
|
1802
|
+
message.distortionModel = reader.int32();
|
|
1914
1803
|
continue;
|
|
1915
1804
|
case 4:
|
|
1916
|
-
if (tag !==
|
|
1805
|
+
if (tag !== 34) {
|
|
1917
1806
|
break;
|
|
1918
1807
|
}
|
|
1919
|
-
message.
|
|
1808
|
+
message.distortionCoefficients = FloatArray.decode(reader, reader.uint32());
|
|
1920
1809
|
continue;
|
|
1921
1810
|
case 5:
|
|
1922
1811
|
if (tag !== 40) {
|
|
1923
1812
|
break;
|
|
1924
1813
|
}
|
|
1925
|
-
message.
|
|
1814
|
+
message.srcWidth = reader.uint32();
|
|
1926
1815
|
continue;
|
|
1927
1816
|
case 6:
|
|
1928
1817
|
if (tag !== 48) {
|
|
1929
1818
|
break;
|
|
1930
1819
|
}
|
|
1931
|
-
message.
|
|
1820
|
+
message.srcHeight = reader.uint32();
|
|
1932
1821
|
continue;
|
|
1933
1822
|
case 7:
|
|
1934
1823
|
if (tag !== 56) {
|
|
1935
1824
|
break;
|
|
1936
1825
|
}
|
|
1937
|
-
message.
|
|
1826
|
+
message.width = reader.uint32();
|
|
1938
1827
|
continue;
|
|
1939
1828
|
case 8:
|
|
1940
1829
|
if (tag !== 64) {
|
|
1941
1830
|
break;
|
|
1942
1831
|
}
|
|
1943
|
-
message.
|
|
1944
|
-
continue;
|
|
1945
|
-
case 9:
|
|
1946
|
-
if (tag !== 72) {
|
|
1947
|
-
break;
|
|
1948
|
-
}
|
|
1949
|
-
message.rightPadding = reader.int32();
|
|
1950
|
-
continue;
|
|
1951
|
-
case 10:
|
|
1952
|
-
if (tag !== 82) {
|
|
1953
|
-
break;
|
|
1954
|
-
}
|
|
1955
|
-
message.transformationMatrix = TransformationMatrix.decode(reader, reader.uint32());
|
|
1956
|
-
continue;
|
|
1957
|
-
case 11:
|
|
1958
|
-
if (tag !== 90) {
|
|
1959
|
-
break;
|
|
1960
|
-
}
|
|
1961
|
-
message.invTransformationMatrix = TransformationMatrix.decode(reader, reader.uint32());
|
|
1962
|
-
continue;
|
|
1963
|
-
case 12:
|
|
1964
|
-
if (tag !== 96) {
|
|
1965
|
-
break;
|
|
1966
|
-
}
|
|
1967
|
-
message.afterTransformWidth = reader.uint32();
|
|
1968
|
-
continue;
|
|
1969
|
-
case 13:
|
|
1970
|
-
if (tag !== 104) {
|
|
1971
|
-
break;
|
|
1972
|
-
}
|
|
1973
|
-
message.afterTransformHeight = reader.uint32();
|
|
1974
|
-
continue;
|
|
1975
|
-
case 14:
|
|
1976
|
-
if (tag !== 112) {
|
|
1977
|
-
break;
|
|
1978
|
-
}
|
|
1979
|
-
message.beforeTransformWidth = reader.uint32();
|
|
1980
|
-
continue;
|
|
1981
|
-
case 15:
|
|
1982
|
-
if (tag !== 120) {
|
|
1983
|
-
break;
|
|
1984
|
-
}
|
|
1985
|
-
message.beforeTransformHeight = reader.uint32();
|
|
1832
|
+
message.height = reader.uint32();
|
|
1986
1833
|
continue;
|
|
1987
1834
|
}
|
|
1988
1835
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -1994,69 +1841,41 @@ const ImgTransformation = {
|
|
|
1994
1841
|
},
|
|
1995
1842
|
fromJSON(object) {
|
|
1996
1843
|
return {
|
|
1997
|
-
transformationType: isSet$6(object.transformationType) ? transformationFromJSON(object.transformationType) : 0,
|
|
1998
|
-
topLeftCropX: isSet$6(object.topLeftCropX) ? globalThis.Number(object.topLeftCropX) : 0,
|
|
1999
|
-
topLeftCropY: isSet$6(object.topLeftCropY) ? globalThis.Number(object.topLeftCropY) : 0,
|
|
2000
|
-
bottomRightCropX: isSet$6(object.bottomRightCropX) ? globalThis.Number(object.bottomRightCropX) : 0,
|
|
2001
|
-
bottomRightCropY: isSet$6(object.bottomRightCropY) ? globalThis.Number(object.bottomRightCropY) : 0,
|
|
2002
|
-
topPadding: isSet$6(object.topPadding) ? globalThis.Number(object.topPadding) : 0,
|
|
2003
|
-
bottomPadding: isSet$6(object.bottomPadding) ? globalThis.Number(object.bottomPadding) : 0,
|
|
2004
|
-
leftPadding: isSet$6(object.leftPadding) ? globalThis.Number(object.leftPadding) : 0,
|
|
2005
|
-
rightPadding: isSet$6(object.rightPadding) ? globalThis.Number(object.rightPadding) : 0,
|
|
2006
1844
|
transformationMatrix: isSet$6(object.transformationMatrix) ? TransformationMatrix.fromJSON(object.transformationMatrix) : undefined,
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
1845
|
+
sourceIntrinsicMatrix: isSet$6(object.sourceIntrinsicMatrix) ? TransformationMatrix.fromJSON(object.sourceIntrinsicMatrix) : undefined,
|
|
1846
|
+
distortionModel: isSet$6(object.distortionModel) ? cameraModelFromJSON(object.distortionModel) : 0,
|
|
1847
|
+
distortionCoefficients: isSet$6(object.distortionCoefficients) ? FloatArray.fromJSON(object.distortionCoefficients) : undefined,
|
|
1848
|
+
srcWidth: isSet$6(object.srcWidth) ? globalThis.Number(object.srcWidth) : 0,
|
|
1849
|
+
srcHeight: isSet$6(object.srcHeight) ? globalThis.Number(object.srcHeight) : 0,
|
|
1850
|
+
width: isSet$6(object.width) ? globalThis.Number(object.width) : 0,
|
|
1851
|
+
height: isSet$6(object.height) ? globalThis.Number(object.height) : 0
|
|
2012
1852
|
};
|
|
2013
1853
|
},
|
|
2014
1854
|
toJSON(message) {
|
|
2015
1855
|
const obj = {};
|
|
2016
|
-
if (message.transformationType !== 0) {
|
|
2017
|
-
obj.transformationType = transformationToJSON(message.transformationType);
|
|
2018
|
-
}
|
|
2019
|
-
if (message.topLeftCropX !== 0) {
|
|
2020
|
-
obj.topLeftCropX = Math.round(message.topLeftCropX);
|
|
2021
|
-
}
|
|
2022
|
-
if (message.topLeftCropY !== 0) {
|
|
2023
|
-
obj.topLeftCropY = Math.round(message.topLeftCropY);
|
|
2024
|
-
}
|
|
2025
|
-
if (message.bottomRightCropX !== 0) {
|
|
2026
|
-
obj.bottomRightCropX = Math.round(message.bottomRightCropX);
|
|
2027
|
-
}
|
|
2028
|
-
if (message.bottomRightCropY !== 0) {
|
|
2029
|
-
obj.bottomRightCropY = Math.round(message.bottomRightCropY);
|
|
2030
|
-
}
|
|
2031
|
-
if (message.topPadding !== 0) {
|
|
2032
|
-
obj.topPadding = Math.round(message.topPadding);
|
|
2033
|
-
}
|
|
2034
|
-
if (message.bottomPadding !== 0) {
|
|
2035
|
-
obj.bottomPadding = Math.round(message.bottomPadding);
|
|
2036
|
-
}
|
|
2037
|
-
if (message.leftPadding !== 0) {
|
|
2038
|
-
obj.leftPadding = Math.round(message.leftPadding);
|
|
2039
|
-
}
|
|
2040
|
-
if (message.rightPadding !== 0) {
|
|
2041
|
-
obj.rightPadding = Math.round(message.rightPadding);
|
|
2042
|
-
}
|
|
2043
1856
|
if (message.transformationMatrix !== undefined) {
|
|
2044
1857
|
obj.transformationMatrix = TransformationMatrix.toJSON(message.transformationMatrix);
|
|
2045
1858
|
}
|
|
2046
|
-
if (message.
|
|
2047
|
-
obj.
|
|
1859
|
+
if (message.sourceIntrinsicMatrix !== undefined) {
|
|
1860
|
+
obj.sourceIntrinsicMatrix = TransformationMatrix.toJSON(message.sourceIntrinsicMatrix);
|
|
1861
|
+
}
|
|
1862
|
+
if (message.distortionModel !== 0) {
|
|
1863
|
+
obj.distortionModel = cameraModelToJSON(message.distortionModel);
|
|
2048
1864
|
}
|
|
2049
|
-
if (message.
|
|
2050
|
-
obj.
|
|
1865
|
+
if (message.distortionCoefficients !== undefined) {
|
|
1866
|
+
obj.distortionCoefficients = FloatArray.toJSON(message.distortionCoefficients);
|
|
2051
1867
|
}
|
|
2052
|
-
if (message.
|
|
2053
|
-
obj.
|
|
1868
|
+
if (message.srcWidth !== 0) {
|
|
1869
|
+
obj.srcWidth = Math.round(message.srcWidth);
|
|
2054
1870
|
}
|
|
2055
|
-
if (message.
|
|
2056
|
-
obj.
|
|
1871
|
+
if (message.srcHeight !== 0) {
|
|
1872
|
+
obj.srcHeight = Math.round(message.srcHeight);
|
|
2057
1873
|
}
|
|
2058
|
-
if (message.
|
|
2059
|
-
obj.
|
|
1874
|
+
if (message.width !== 0) {
|
|
1875
|
+
obj.width = Math.round(message.width);
|
|
1876
|
+
}
|
|
1877
|
+
if (message.height !== 0) {
|
|
1878
|
+
obj.height = Math.round(message.height);
|
|
2060
1879
|
}
|
|
2061
1880
|
return obj;
|
|
2062
1881
|
},
|
|
@@ -2065,21 +1884,14 @@ const ImgTransformation = {
|
|
|
2065
1884
|
},
|
|
2066
1885
|
fromPartial(object) {
|
|
2067
1886
|
const message = createBaseImgTransformation();
|
|
2068
|
-
message.transformationType = object.transformationType ?? 0;
|
|
2069
|
-
message.topLeftCropX = object.topLeftCropX ?? 0;
|
|
2070
|
-
message.topLeftCropY = object.topLeftCropY ?? 0;
|
|
2071
|
-
message.bottomRightCropX = object.bottomRightCropX ?? 0;
|
|
2072
|
-
message.bottomRightCropY = object.bottomRightCropY ?? 0;
|
|
2073
|
-
message.topPadding = object.topPadding ?? 0;
|
|
2074
|
-
message.bottomPadding = object.bottomPadding ?? 0;
|
|
2075
|
-
message.leftPadding = object.leftPadding ?? 0;
|
|
2076
|
-
message.rightPadding = object.rightPadding ?? 0;
|
|
2077
1887
|
message.transformationMatrix = object.transformationMatrix !== undefined && object.transformationMatrix !== null ? TransformationMatrix.fromPartial(object.transformationMatrix) : undefined;
|
|
2078
|
-
message.
|
|
2079
|
-
message.
|
|
2080
|
-
message.
|
|
2081
|
-
message.
|
|
2082
|
-
message.
|
|
1888
|
+
message.sourceIntrinsicMatrix = object.sourceIntrinsicMatrix !== undefined && object.sourceIntrinsicMatrix !== null ? TransformationMatrix.fromPartial(object.sourceIntrinsicMatrix) : undefined;
|
|
1889
|
+
message.distortionModel = object.distortionModel ?? 0;
|
|
1890
|
+
message.distortionCoefficients = object.distortionCoefficients !== undefined && object.distortionCoefficients !== null ? FloatArray.fromPartial(object.distortionCoefficients) : undefined;
|
|
1891
|
+
message.srcWidth = object.srcWidth ?? 0;
|
|
1892
|
+
message.srcHeight = object.srcHeight ?? 0;
|
|
1893
|
+
message.width = object.width ?? 0;
|
|
1894
|
+
message.height = object.height ?? 0;
|
|
2083
1895
|
return message;
|
|
2084
1896
|
}
|
|
2085
1897
|
};
|
|
@@ -2625,7 +2437,7 @@ function createBaseImgFrame() {
|
|
|
2625
2437
|
cam: undefined,
|
|
2626
2438
|
HFovDegrees: 0,
|
|
2627
2439
|
instanceNum: 0,
|
|
2628
|
-
|
|
2440
|
+
transformation: undefined,
|
|
2629
2441
|
category: 0,
|
|
2630
2442
|
data: new Uint8Array(0)
|
|
2631
2443
|
};
|
|
@@ -2656,8 +2468,8 @@ const ImgFrame = {
|
|
|
2656
2468
|
if (message.instanceNum !== 0) {
|
|
2657
2469
|
writer.uint32(64).uint32(message.instanceNum);
|
|
2658
2470
|
}
|
|
2659
|
-
if (message.
|
|
2660
|
-
|
|
2471
|
+
if (message.transformation !== undefined) {
|
|
2472
|
+
ImgTransformation.encode(message.transformation, writer.uint32(74).fork()).ldelim();
|
|
2661
2473
|
}
|
|
2662
2474
|
if (message.category !== 0) {
|
|
2663
2475
|
writer.uint32(80).uint32(message.category);
|
|
@@ -2726,7 +2538,7 @@ const ImgFrame = {
|
|
|
2726
2538
|
if (tag !== 74) {
|
|
2727
2539
|
break;
|
|
2728
2540
|
}
|
|
2729
|
-
message.
|
|
2541
|
+
message.transformation = ImgTransformation.decode(reader, reader.uint32());
|
|
2730
2542
|
continue;
|
|
2731
2543
|
case 10:
|
|
2732
2544
|
if (tag !== 80) {
|
|
@@ -2758,7 +2570,7 @@ const ImgFrame = {
|
|
|
2758
2570
|
cam: isSet$5(object.cam) ? CameraSettings.fromJSON(object.cam) : undefined,
|
|
2759
2571
|
HFovDegrees: isSet$5(object.HFovDegrees) ? globalThis.Number(object.HFovDegrees) : 0,
|
|
2760
2572
|
instanceNum: isSet$5(object.instanceNum) ? globalThis.Number(object.instanceNum) : 0,
|
|
2761
|
-
|
|
2573
|
+
transformation: isSet$5(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
|
|
2762
2574
|
category: isSet$5(object.category) ? globalThis.Number(object.category) : 0,
|
|
2763
2575
|
data: isSet$5(object.data) ? bytesFromBase64$2(object.data) : new Uint8Array(0)
|
|
2764
2576
|
};
|
|
@@ -2789,8 +2601,8 @@ const ImgFrame = {
|
|
|
2789
2601
|
if (message.instanceNum !== 0) {
|
|
2790
2602
|
obj.instanceNum = Math.round(message.instanceNum);
|
|
2791
2603
|
}
|
|
2792
|
-
if (message.
|
|
2793
|
-
obj.
|
|
2604
|
+
if (message.transformation !== undefined) {
|
|
2605
|
+
obj.transformation = ImgTransformation.toJSON(message.transformation);
|
|
2794
2606
|
}
|
|
2795
2607
|
if (message.category !== 0) {
|
|
2796
2608
|
obj.category = Math.round(message.category);
|
|
@@ -2813,7 +2625,7 @@ const ImgFrame = {
|
|
|
2813
2625
|
message.cam = object.cam !== undefined && object.cam !== null ? CameraSettings.fromPartial(object.cam) : undefined;
|
|
2814
2626
|
message.HFovDegrees = object.HFovDegrees ?? 0;
|
|
2815
2627
|
message.instanceNum = object.instanceNum ?? 0;
|
|
2816
|
-
message.
|
|
2628
|
+
message.transformation = object.transformation !== undefined && object.transformation !== null ? ImgTransformation.fromPartial(object.transformation) : undefined;
|
|
2817
2629
|
message.category = object.category ?? 0;
|
|
2818
2630
|
message.data = object.data ?? new Uint8Array(0);
|
|
2819
2631
|
return message;
|
|
@@ -3122,6 +2934,7 @@ function createBaseEncodedFrame() {
|
|
|
3122
2934
|
sequenceNum: 0,
|
|
3123
2935
|
ts: undefined,
|
|
3124
2936
|
tsDevice: undefined,
|
|
2937
|
+
transformation: undefined,
|
|
3125
2938
|
data: new Uint8Array(0)
|
|
3126
2939
|
};
|
|
3127
2940
|
}
|
|
@@ -3169,8 +2982,11 @@ const EncodedFrame = {
|
|
|
3169
2982
|
if (message.tsDevice !== undefined) {
|
|
3170
2983
|
Timestamp.encode(message.tsDevice, writer.uint32(114).fork()).ldelim();
|
|
3171
2984
|
}
|
|
2985
|
+
if (message.transformation !== undefined) {
|
|
2986
|
+
ImgTransformation.encode(message.transformation, writer.uint32(122).fork()).ldelim();
|
|
2987
|
+
}
|
|
3172
2988
|
if (message.data.length !== 0) {
|
|
3173
|
-
writer.uint32(
|
|
2989
|
+
writer.uint32(130).bytes(message.data);
|
|
3174
2990
|
}
|
|
3175
2991
|
return writer;
|
|
3176
2992
|
},
|
|
@@ -3269,6 +3085,12 @@ const EncodedFrame = {
|
|
|
3269
3085
|
if (tag !== 122) {
|
|
3270
3086
|
break;
|
|
3271
3087
|
}
|
|
3088
|
+
message.transformation = ImgTransformation.decode(reader, reader.uint32());
|
|
3089
|
+
continue;
|
|
3090
|
+
case 16:
|
|
3091
|
+
if (tag !== 130) {
|
|
3092
|
+
break;
|
|
3093
|
+
}
|
|
3272
3094
|
message.data = reader.bytes();
|
|
3273
3095
|
continue;
|
|
3274
3096
|
}
|
|
@@ -3295,6 +3117,7 @@ const EncodedFrame = {
|
|
|
3295
3117
|
sequenceNum: isSet$4(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
|
|
3296
3118
|
ts: isSet$4(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
|
|
3297
3119
|
tsDevice: isSet$4(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
|
|
3120
|
+
transformation: isSet$4(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined,
|
|
3298
3121
|
data: isSet$4(object.data) ? bytesFromBase64$1(object.data) : new Uint8Array(0)
|
|
3299
3122
|
};
|
|
3300
3123
|
},
|
|
@@ -3342,6 +3165,9 @@ const EncodedFrame = {
|
|
|
3342
3165
|
if (message.tsDevice !== undefined) {
|
|
3343
3166
|
obj.tsDevice = Timestamp.toJSON(message.tsDevice);
|
|
3344
3167
|
}
|
|
3168
|
+
if (message.transformation !== undefined) {
|
|
3169
|
+
obj.transformation = ImgTransformation.toJSON(message.transformation);
|
|
3170
|
+
}
|
|
3345
3171
|
if (message.data.length !== 0) {
|
|
3346
3172
|
obj.data = base64FromBytes$1(message.data);
|
|
3347
3173
|
}
|
|
@@ -3366,6 +3192,7 @@ const EncodedFrame = {
|
|
|
3366
3192
|
message.sequenceNum = object.sequenceNum ?? 0;
|
|
3367
3193
|
message.ts = object.ts !== undefined && object.ts !== null ? Timestamp.fromPartial(object.ts) : undefined;
|
|
3368
3194
|
message.tsDevice = object.tsDevice !== undefined && object.tsDevice !== null ? Timestamp.fromPartial(object.tsDevice) : undefined;
|
|
3195
|
+
message.transformation = object.transformation !== undefined && object.transformation !== null ? ImgTransformation.fromPartial(object.transformation) : undefined;
|
|
3369
3196
|
message.data = object.data ?? new Uint8Array(0);
|
|
3370
3197
|
return message;
|
|
3371
3198
|
}
|
|
@@ -4037,7 +3864,8 @@ function createBaseImgDetections() {
|
|
|
4037
3864
|
sequenceNum: 0,
|
|
4038
3865
|
ts: undefined,
|
|
4039
3866
|
tsDevice: undefined,
|
|
4040
|
-
detections: []
|
|
3867
|
+
detections: [],
|
|
3868
|
+
transformation: undefined
|
|
4041
3869
|
};
|
|
4042
3870
|
}
|
|
4043
3871
|
const ImgDetections = {
|
|
@@ -4054,6 +3882,9 @@ const ImgDetections = {
|
|
|
4054
3882
|
for (const v of message.detections) {
|
|
4055
3883
|
ImgDetection.encode(v, writer.uint32(34).fork()).ldelim();
|
|
4056
3884
|
}
|
|
3885
|
+
if (message.transformation !== undefined) {
|
|
3886
|
+
ImgTransformation.encode(message.transformation, writer.uint32(42).fork()).ldelim();
|
|
3887
|
+
}
|
|
4057
3888
|
return writer;
|
|
4058
3889
|
},
|
|
4059
3890
|
decode(input, length) {
|
|
@@ -4087,6 +3918,12 @@ const ImgDetections = {
|
|
|
4087
3918
|
}
|
|
4088
3919
|
message.detections.push(ImgDetection.decode(reader, reader.uint32()));
|
|
4089
3920
|
continue;
|
|
3921
|
+
case 5:
|
|
3922
|
+
if (tag !== 42) {
|
|
3923
|
+
break;
|
|
3924
|
+
}
|
|
3925
|
+
message.transformation = ImgTransformation.decode(reader, reader.uint32());
|
|
3926
|
+
continue;
|
|
4090
3927
|
}
|
|
4091
3928
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4092
3929
|
break;
|
|
@@ -4100,7 +3937,8 @@ const ImgDetections = {
|
|
|
4100
3937
|
sequenceNum: isSet$2(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
|
|
4101
3938
|
ts: isSet$2(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
|
|
4102
3939
|
tsDevice: isSet$2(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
|
|
4103
|
-
detections: globalThis.Array.isArray(object?.detections) ? object.detections.map(e => ImgDetection.fromJSON(e)) : []
|
|
3940
|
+
detections: globalThis.Array.isArray(object?.detections) ? object.detections.map(e => ImgDetection.fromJSON(e)) : [],
|
|
3941
|
+
transformation: isSet$2(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined
|
|
4104
3942
|
};
|
|
4105
3943
|
},
|
|
4106
3944
|
toJSON(message) {
|
|
@@ -4117,6 +3955,9 @@ const ImgDetections = {
|
|
|
4117
3955
|
if (message.detections?.length) {
|
|
4118
3956
|
obj.detections = message.detections.map(e => ImgDetection.toJSON(e));
|
|
4119
3957
|
}
|
|
3958
|
+
if (message.transformation !== undefined) {
|
|
3959
|
+
obj.transformation = ImgTransformation.toJSON(message.transformation);
|
|
3960
|
+
}
|
|
4120
3961
|
return obj;
|
|
4121
3962
|
},
|
|
4122
3963
|
create(base) {
|
|
@@ -4128,6 +3969,7 @@ const ImgDetections = {
|
|
|
4128
3969
|
message.ts = object.ts !== undefined && object.ts !== null ? Timestamp.fromPartial(object.ts) : undefined;
|
|
4129
3970
|
message.tsDevice = object.tsDevice !== undefined && object.tsDevice !== null ? Timestamp.fromPartial(object.tsDevice) : undefined;
|
|
4130
3971
|
message.detections = object.detections?.map(e => ImgDetection.fromPartial(e)) || [];
|
|
3972
|
+
message.transformation = object.transformation !== undefined && object.transformation !== null ? ImgTransformation.fromPartial(object.transformation) : undefined;
|
|
4131
3973
|
return message;
|
|
4132
3974
|
}
|
|
4133
3975
|
};
|
|
@@ -4345,7 +4187,8 @@ function createBaseSpatialImgDetections() {
|
|
|
4345
4187
|
sequenceNum: 0,
|
|
4346
4188
|
ts: undefined,
|
|
4347
4189
|
tsDevice: undefined,
|
|
4348
|
-
detections: []
|
|
4190
|
+
detections: [],
|
|
4191
|
+
transformation: undefined
|
|
4349
4192
|
};
|
|
4350
4193
|
}
|
|
4351
4194
|
const SpatialImgDetections = {
|
|
@@ -4362,6 +4205,9 @@ const SpatialImgDetections = {
|
|
|
4362
4205
|
for (const v of message.detections) {
|
|
4363
4206
|
SpatialImgDetection.encode(v, writer.uint32(34).fork()).ldelim();
|
|
4364
4207
|
}
|
|
4208
|
+
if (message.transformation !== undefined) {
|
|
4209
|
+
ImgTransformation.encode(message.transformation, writer.uint32(42).fork()).ldelim();
|
|
4210
|
+
}
|
|
4365
4211
|
return writer;
|
|
4366
4212
|
},
|
|
4367
4213
|
decode(input, length) {
|
|
@@ -4395,6 +4241,12 @@ const SpatialImgDetections = {
|
|
|
4395
4241
|
}
|
|
4396
4242
|
message.detections.push(SpatialImgDetection.decode(reader, reader.uint32()));
|
|
4397
4243
|
continue;
|
|
4244
|
+
case 5:
|
|
4245
|
+
if (tag !== 42) {
|
|
4246
|
+
break;
|
|
4247
|
+
}
|
|
4248
|
+
message.transformation = ImgTransformation.decode(reader, reader.uint32());
|
|
4249
|
+
continue;
|
|
4398
4250
|
}
|
|
4399
4251
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4400
4252
|
break;
|
|
@@ -4408,7 +4260,8 @@ const SpatialImgDetections = {
|
|
|
4408
4260
|
sequenceNum: isSet$1(object.sequenceNum) ? globalThis.Number(object.sequenceNum) : 0,
|
|
4409
4261
|
ts: isSet$1(object.ts) ? Timestamp.fromJSON(object.ts) : undefined,
|
|
4410
4262
|
tsDevice: isSet$1(object.tsDevice) ? Timestamp.fromJSON(object.tsDevice) : undefined,
|
|
4411
|
-
detections: globalThis.Array.isArray(object?.detections) ? object.detections.map(e => SpatialImgDetection.fromJSON(e)) : []
|
|
4263
|
+
detections: globalThis.Array.isArray(object?.detections) ? object.detections.map(e => SpatialImgDetection.fromJSON(e)) : [],
|
|
4264
|
+
transformation: isSet$1(object.transformation) ? ImgTransformation.fromJSON(object.transformation) : undefined
|
|
4412
4265
|
};
|
|
4413
4266
|
},
|
|
4414
4267
|
toJSON(message) {
|
|
@@ -4425,6 +4278,9 @@ const SpatialImgDetections = {
|
|
|
4425
4278
|
if (message.detections?.length) {
|
|
4426
4279
|
obj.detections = message.detections.map(e => SpatialImgDetection.toJSON(e));
|
|
4427
4280
|
}
|
|
4281
|
+
if (message.transformation !== undefined) {
|
|
4282
|
+
obj.transformation = ImgTransformation.toJSON(message.transformation);
|
|
4283
|
+
}
|
|
4428
4284
|
return obj;
|
|
4429
4285
|
},
|
|
4430
4286
|
create(base) {
|
|
@@ -4436,6 +4292,7 @@ const SpatialImgDetections = {
|
|
|
4436
4292
|
message.ts = object.ts !== undefined && object.ts !== null ? Timestamp.fromPartial(object.ts) : undefined;
|
|
4437
4293
|
message.tsDevice = object.tsDevice !== undefined && object.tsDevice !== null ? Timestamp.fromPartial(object.tsDevice) : undefined;
|
|
4438
4294
|
message.detections = object.detections?.map(e => SpatialImgDetection.fromPartial(e)) || [];
|
|
4295
|
+
message.transformation = object.transformation !== undefined && object.transformation !== null ? ImgTransformation.fromPartial(object.transformation) : undefined;
|
|
4439
4296
|
return message;
|
|
4440
4297
|
}
|
|
4441
4298
|
};
|