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)