Exemplo n.º 1
0
    def __init__(self, *args):
        #super(CamGui, self).__init__(*args)
        super(CamGui, self).__init__(*args)
        self.ui = gui_ui.Ui_MainWindow()
        self.ui.setupUi(self)
        self.ui_label_img_list = [
            self.ui.label_img0, self.ui.label_img1, self.ui.label_img2,
            self.ui.label_img3
        ]
        self.img_no = len(self.ui_label_img_list)

        #self.ui.label_depth.setMouseTracking(True)
        for l in self.ui_label_img_list:
            l.mouseMoveEvent = self.on_mouse_move
        self.ui.label_img0.mouseReleaseEvent = self.on_mouse_release_label_img

        d = {}
        for c in (65, 97):
            for i in range(26):
                d[chr(i + c)] = chr((i + 13) % 26 + c)
        self.zen = "".join([d.get(c, c) for c in this.s])

        self.timer = QtCore.QTimer(self)
        self.timer.timeout.connect(self.timer_update)
        self.timer.start(3142)

        self.grab_thread = PhotoGrabThread(self)
        self.grab_thread.grabbed_signal.connect(self.update_photo)
        self.grab_thread.start()
Exemplo n.º 2
0
    def __init__(self, *args):
        super(CamGui, self).__init__(*args)
        self.ui = gui_ui.Ui_MainWindow()
        self.ui.setupUi(self)
        self.ui_label_img_list = [self.ui.label_img0, self.ui.label_img1, self.ui.label_img2, self.ui.label_img3]
        self.img_no = len(self.ui_label_img_list)

        #self.ui.label_depth.setMouseTracking(True)
        for l in self.ui_label_img_list:
            l.mouseMoveEvent = self.on_mouse_move
        self.ui.label_img0.mouseReleaseEvent = self.on_mouse_release_label_img
        


        self.grab_thread = PhotoGrabThread(self)
        self.grab_thread.grabbed_signal.connect(self.update_photo)
        self.grab_thread.start()
Exemplo n.º 3
0
    def __init__(self, *args):
        super(CamGui, self).__init__(*args)
        self.ui = gui_ui.Ui_MainWindow()
        self.ui.setupUi(self)

        self.ui_label_img_list = [
            self.ui.label_img0, self.ui.label_img1, self.ui.label_img2,
            self.ui.label_img3
        ]
        self.img_no = len(self.ui_label_img_list)

        # マウスクリックのイベント
        self.ui.label_img0.mouseReleaseEvent = self.on_mouse_release_label_img

        # Webosocket スレッド
        self.ws_thread = ListenWebsocket()
        self.ws_thread.start()

        # camera スレッド
        self.grab_thread = PhotoGrabThread(self)
        self.grab_thread.grabbed_signal.connect(self.update_photo)
        self.grab_thread.start()