mirror of
https://github.com/wassname/sloth.git
synced 2026-07-14 11:18:22 +08:00
add standard config file for labeling rects, point, polygons
This commit is contained in:
+3
-1
@@ -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)
|
||||
|
||||
|
||||
@@ -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"})
|
||||
Reference in New Issue
Block a user