Skip to content
This repository was archived by the owner on Jun 3, 2020. It is now read-only.

QDeepLandia v1.0.0 #1

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
19 changes: 19 additions & 0 deletions config.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[status]
status = dev

[running]
processes = 1

[symlink]
predicted = /path/to/predicted/images/
shapes = /path/to/shape/dataset/
mapillary = /path/to/mapillary/dataset/
mapillary_agg = /path/to/agregated/mapillary/dataset/
aerial = /path/to/aerial/dataset/
tanzania = /home/speillet/OpenSourceProject/deeposlandia/tests/data/tanzania

[folder]
project_folder = /home/speillet/OpenSourceProject/deeposlandia/deeposlandia/projet

[key]
secret_key = enter-your-app-key
20 changes: 20 additions & 0 deletions feedback.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from qgis.core import Qgis, QgsProcessingFeedback, QgsMessageLog

class Feedback(QgsProcessingFeedback):
"""To provide feedback to the message bar from the express tools"""

def __init__(self, iface):
super().__init__()
self.iface = iface
self.fatal_errors = []

def reportError(self, error, fatalError=False):
QgsMessageLog.logMessage(str(error), "QDeeplandia")
if fatalError:
self.fatal_errors.append(error)

def pushToUser(self, exception):
QgsMessageLog.logMessage(str(exception), "QDeeplandia")
self.iface.messageBar().pushMessage(
"Error", ", ".join(self.fatal_errors), level=Qgis.Critical, duration=0
)
23 changes: 23 additions & 0 deletions gui/NbLabelDialog.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from qgis.PyQt.QtWidgets import QDialog, QWidget, QHBoxLayout, QVBoxLayout, QLabel, QSpinBox, QDialogButtonBox

class NbLabelDialog(QDialog):
def __init__(self,parent):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

White space after ,.

super(NbLabelDialog, self).__init__()

self.VL = QVBoxLayout(self)
self.HL = QHBoxLayout()
self.VL.addLayout(self.HL)

self.label = QLabel(self.tr('Number of label : '))
self.HL.addWidget(self.label)

self.spinbox = QSpinBox()
self.HL.addWidget(self.spinbox)

self.buttonBox = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
self.buttonBox.accepted.connect(self.accept)
self.buttonBox.rejected.connect(self.reject)
self.VL.addWidget(self.buttonBox)

def param(self):
return self.spinbox.value()
Empty file added gui/__init__.py
Empty file.
70 changes: 70 additions & 0 deletions img/load.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading