mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-14 00:31:58 +02:00
[ui] display number of reconstructed cameras
This commit is contained in:
parent
2eb2c3ac6f
commit
2480c22bf2
2 changed files with 3 additions and 1 deletions
|
@ -258,7 +258,7 @@ Panel {
|
||||||
// Image count
|
// Image count
|
||||||
Label {
|
Label {
|
||||||
Layout.fillWidth: true
|
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
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -492,6 +492,8 @@ class Reconstruction(UIGraph):
|
||||||
sfmReport = Property(bool, lambda self: len(self._poses) > 0, notify=sfmReportChanged)
|
sfmReport = Property(bool, lambda self: len(self._poses) > 0, notify=sfmReportChanged)
|
||||||
sfmAugmented = Signal(Node, Node)
|
sfmAugmented = Signal(Node, Node)
|
||||||
|
|
||||||
|
nbCameras = Property(int, lambda self: len(self._poses), notify=sfmReportChanged)
|
||||||
|
|
||||||
# Signals to propagate high-level messages
|
# Signals to propagate high-level messages
|
||||||
error = Signal(Message)
|
error = Signal(Message)
|
||||||
warning = Signal(Message)
|
warning = Signal(Message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue