From d48cc53e76dbdc18a95fc9955d0a99518cfc75fe Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Wed, 27 Jan 2021 16:36:59 +0300 Subject: [PATCH] Fixed: Cuboids are missed in annotations statistics (#2704) * Fixed: Cuboids are missed in annotations statistics * Updated changelog & version --- CHANGELOG.md | 1 + cvat-ui/package-lock.json | 2 +- cvat-ui/package.json | 2 +- .../annotation-page/top-bar/statistics-modal.tsx | 11 +++++++++-- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bec9fa89781c..161beee174d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - The cursor jumps to the end of the line when renaming a task () - SSLCertVerificationError when remote source is used () - Fixed filters select overflow () +- Cuboids are missed in annotations statistics () ### Security diff --git a/cvat-ui/package-lock.json b/cvat-ui/package-lock.json index 2b863d789d3f..1d03be1d5a19 100644 --- a/cvat-ui/package-lock.json +++ b/cvat-ui/package-lock.json @@ -1,6 +1,6 @@ { "name": "cvat-ui", - "version": "1.13.5", + "version": "1.13.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/cvat-ui/package.json b/cvat-ui/package.json index f852b8b495f8..6cf51d2bf6fd 100644 --- a/cvat-ui/package.json +++ b/cvat-ui/package.json @@ -1,6 +1,6 @@ { "name": "cvat-ui", - "version": "1.13.5", + "version": "1.13.6", "description": "CVAT single-page application", "main": "src/index.tsx", "scripts": { diff --git a/cvat-ui/src/components/annotation-page/top-bar/statistics-modal.tsx b/cvat-ui/src/components/annotation-page/top-bar/statistics-modal.tsx index ae9058ef5511..7db9b687307a 100644 --- a/cvat-ui/src/components/annotation-page/top-bar/statistics-modal.tsx +++ b/cvat-ui/src/components/annotation-page/top-bar/statistics-modal.tsx @@ -1,4 +1,4 @@ -// Copyright (C) 2020 Intel Corporation +// Copyright (C) 2020-2021 Intel Corporation // // SPDX-License-Identifier: MIT @@ -34,7 +34,7 @@ export default function StatisticsModalComponent(props: Props): JSX.Element { cancelButtonProps: { style: { display: 'none' } }, okButtonProps: { style: { width: 100 } }, onOk: closeStatistics, - width: 1000, + width: 1024, visible, closable: false, }; @@ -54,6 +54,7 @@ export default function StatisticsModalComponent(props: Props): JSX.Element { polygon: `${data.label[key].polygon.shape} / ${data.label[key].polygon.track}`, polyline: `${data.label[key].polyline.shape} / ${data.label[key].polyline.track}`, points: `${data.label[key].points.shape} / ${data.label[key].points.track}`, + cuboid: `${data.label[key].cuboid.shape} / ${data.label[key].cuboid.track}`, tags: data.label[key].tags, manually: data.label[key].manually, interpolated: data.label[key].interpolated, @@ -67,6 +68,7 @@ export default function StatisticsModalComponent(props: Props): JSX.Element { polygon: `${data.total.polygon.shape} / ${data.total.polygon.track}`, polyline: `${data.total.polyline.shape} / ${data.total.polyline.track}`, points: `${data.total.points.shape} / ${data.total.points.track}`, + cuboid: `${data.total.cuboid.shape} / ${data.total.cuboid.track}`, tags: data.total.tags, manually: data.total.manually, interpolated: data.total.interpolated, @@ -108,6 +110,11 @@ export default function StatisticsModalComponent(props: Props): JSX.Element { dataIndex: 'points', key: 'points', }, + { + title: makeShapesTracksTitle('Cuboids'), + dataIndex: 'cuboid', + key: 'cuboid', + }, { title: Tags , dataIndex: 'tags',