How to use the harvesters.core.ComponentBase 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 / core.py View on Github external
    @property
    def data(self):
        """
        TODO:
        :return:
        """
        return self._data


class ComponentRaw(ComponentBase):
    def __init__(self):
        #
        super().__init__()


class Component1D(ComponentBase):
    """
    TODO:
    """
    #
    def __init__(self, buffer=None, part=None):
        """
        TODO: __init__
        :param buffer:
        :param part:
        """
        #
        super().__init__(buffer=buffer)

    def __repr__(self):
        return '{0} elements,\n{1}'.format(
            self.data.size,
github genicam / harvesters / harvesters / core.py View on Github external
"""
        TODO:
        :return:
        """
        return self._buffer.source_id

    @property
    def data(self):
        """
        TODO:
        :return:
        """
        return self._data


class ComponentRaw(ComponentBase):
    def __init__(self):
        #
        super().__init__()


class Component1D(ComponentBase):
    """
    TODO:
    """
    #
    def __init__(self, buffer=None, part=None):
        """
        TODO: __init__
        :param buffer:
        :param part:
        """
github genicam / harvesters / harvesters / core.py View on Github external
"""
        TODO: __init__
        :param buffer:
        :param part:
        """
        #
        super().__init__(buffer=buffer)

    def __repr__(self):
        return '{0} elements,\n{1}'.format(
            self.data.size,
            self.data
        )


class Component2D(ComponentBase):
    """
    TODO:
    """
    def __init__(self, buffer=None, part=None, node_map=None):
        """
        TODO: __init__
        :param buffer:
        :param part:
        :param node_map:
        """
        #
        assert node_map
        assert buffer

        #
        super().__init__(buffer=buffer)