add standard config file for labeling rects, point, polygons

This commit is contained in:
Martin Baeuml
2011-01-31 12:36:01 +01:00
parent 494cab9fbd
commit 1648c8c283
2 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -17,6 +17,7 @@ ORGANIZATION_NAME = """CVHCI Research Group"""
ORGANIZATION_DOMAIN = """cvhci.anthropomatik.kit.edu"""
__version__ = """0.1"""
class MainWindow(QMainWindow):
def __init__(self, argv, parent=None):
super(MainWindow, self).__init__(parent)
@@ -48,7 +49,8 @@ class MainWindow(QMainWindow):
self.view.setScene(self.scene)
self.buttonarea = ButtonArea()
self.buttonarea.load("example_config.py")
# TODO make this configurable/settable via command line option
self.buttonarea.load("std_config.py")
self.ui.dockAnnotationButtons.setWidget(self.buttonarea)
self.connect(self.buttonarea, SIGNAL("stateChanged(state)"), self.scene.setMode)
+6
View File
@@ -0,0 +1,6 @@
RATIOS = ["0.5", "1", "2"]
self.add_label("Rect", {"type": "rect"})
self.add_label("FixedRatioRect", {"type": "ratiorect", "_ratio": RATIOS})
self.add_label("Point", {"type": "point"})
self.add_label("Polygon", {"type": "polygon"})