How to use the harvesters._private.frontend.pyqt5.thread.PyQtThread function in harvesters

To help you get started, we’ve selected a few harvesters examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github genicam / harvesters / harvesters / frontend / pyqt5.py View on Github external
def action_on_connect(self):
        #
        self._iam = self.harvester_core.create_image_acquisition_manager(
            self.device_list.currentIndex()
        )

        if not self._iam:
            # The device is not available.
            return

        #
        self.iam.thread_image_acquisition = PyQtThread(
            parent=self, mutex=self.mutex
        )
        self.iam.thread_statistics_measurement = PyQtThread(
            parent=self, mutex=self.mutex
        )

        self.iam.updated_statistics = self._signal_update_statistics
        self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition

        try:
            if self.iam.device.node_map:
                self._widget_attribute_controller = \
                    AttributeController(
                        self.iam.device.node_map,
                        parent=self
                    )
github genicam / harvesters / src / harvesters / frontend / pyqt5.py View on Github external
def action_on_connect(self):
        #
        self._iam = self.harvester_core.create_image_acquisition_manager(
            self.device_list.currentIndex()
        )

        if not self._iam:
            # The device is not available.
            return

        #
        self.iam.thread_image_acquisition = PyQtThread(
            parent=self, mutex=self.mutex
        )
        self.iam.thread_statistics_measurement = PyQtThread(
            parent=self, mutex=self.mutex
        )

        self.iam.updated_statistics = self._signal_update_statistics
        self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition

        try:
            if self.iam.device.node_map:
                self._widget_attribute_controller = \
                    AttributeController(
                        self.iam.device.node_map,
                        parent=self
                    )
        except AttributeError:
            pass
github genicam / harvesters / src / harvesters / frontend / pyqt5.py View on Github external
def action_on_connect(self):
        #
        self._iam = self.harvester_core.create_image_acquisition_manager(
            self.device_list.currentIndex()
        )

        if not self._iam:
            # The device is not available.
            return

        #
        self.iam.thread_image_acquisition = PyQtThread(
            parent=self, mutex=self.mutex
        )
        self.iam.thread_statistics_measurement = PyQtThread(
            parent=self, mutex=self.mutex
        )

        self.iam.updated_statistics = self._signal_update_statistics
        self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition

        try:
            if self.iam.device.node_map:
                self._widget_attribute_controller = \
                    AttributeController(
                        self.iam.device.node_map,
                        parent=self
                    )
github genicam / harvesters / harvesters / frontend / pyqt5.py View on Github external
def action_on_connect(self):
        #
        self._iam = self.harvester_core.create_image_acquisition_manager(
            self.device_list.currentIndex()
        )

        if not self._iam:
            # The device is not available.
            return

        #
        self.iam.thread_image_acquisition = PyQtThread(
            parent=self, mutex=self.mutex
        )
        self.iam.thread_statistics_measurement = PyQtThread(
            parent=self, mutex=self.mutex
        )

        self.iam.updated_statistics = self._signal_update_statistics
        self.iam.signal_stop_image_acquisition = self._signal_stop_image_acquisition

        try:
            if self.iam.device.node_map:
                self._widget_attribute_controller = \
                    AttributeController(
                        self.iam.device.node_map,
                        parent=self
                    )
        except AttributeError:
            pass