From 2480c22bf24423f6458f10c8190151a9cbb61d2b Mon Sep 17 00:00:00 2001 From: Fabien Castan Date: Mon, 16 Jul 2018 23:15:00 +0200 Subject: [PATCH] [ui] display number of reconstructed cameras --- meshroom/ui/qml/ImageGallery.qml | 2 +- meshroom/ui/reconstruction.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/meshroom/ui/qml/ImageGallery.qml b/meshroom/ui/qml/ImageGallery.qml index 79bc63af..97832ba7 100644 --- a/meshroom/ui/qml/ImageGallery.qml +++ b/meshroom/ui/qml/ImageGallery.qml @@ -258,7 +258,7 @@ Panel { // Image count Label { Layout.fillWidth: true - text: grid.model.count + " image" + (grid.model.count > 1 ? "s" : "") + text: grid.model.count + " image" + (grid.model.count > 1 ? "s" : "") + (_reconstruction.nbCameras > 0 ? " / " + _reconstruction.nbCameras + " camera" + (_reconstruction.nbCameras > 1 ? "s": "") : "") elide: Text.ElideRight } diff --git a/meshroom/ui/reconstruction.py b/meshroom/ui/reconstruction.py index 35a29ee6..c389df85 100755 --- a/meshroom/ui/reconstruction.py +++ b/meshroom/ui/reconstruction.py @@ -492,6 +492,8 @@ class Reconstruction(UIGraph): sfmReport = Property(bool, lambda self: len(self._poses) > 0, notify=sfmReportChanged) sfmAugmented = Signal(Node, Node) + nbCameras = Property(int, lambda self: len(self._poses), notify=sfmReportChanged) + # Signals to propagate high-level messages error = Signal(Message) warning = Signal(Message)