~/code/VIAME/packages/kwiver/vital/bindings/python/vital/types """ from __future__ import absolute_import, print_function, division import numpy as np import vital.types from sprokit.pipeline import process from sprokit.pipeline import datum # NOQA from kwiver.kwiver_process import KwiverProcess import ubelt as ub import os import itertools as it from . import algos as ctalgo from sprokit import sprokit_logging # import logging logger = sprokit_logging.getLogger(__name__) # logger.setLevel(logging.DEBUG) print = logger.info # TODO: add something similar in sprokit proper TMP_SPROKIT_PROCESS_REGISTRY = [] def tmp_sprokit_register_process(name=None, doc=''): def _wrp(cls): name_ = name if name is None: name_ = cls.__name__ TMP_SPROKIT_PROCESS_REGISTRY.append((name_, doc, cls)) return cls
# Calvin Spealman [email protected] @ironfroggy http://github.com/ironfroggy # Dustin Lacewell [email protected] @dustinlacewell http://github.com/dustinlacewell # Erik Youngren [email protected] http://artanis00.blogspot.com/ http://github.com/Artanis # From: https://github.com/ironfroggy/straight.plugin # Commit: be4c0113629557e02602f9720adb07634eb9d274 # Only ModuleLoader is here since we only care about it. """Facility to load plugins.""" from __future__ import print_function import sys import os from importlib import import_module from sprokit import sprokit_logging logger = sprokit_logging.getLogger(__name__) class Loader(object): def __init__(self, *args, **kwargs): self._cache = [] def load(self, namespace): self._fill_cache(namespace) self._post_fill() self._order() return self._cache def _meta(self, plugin): meta = getattr(plugin, '__plugin__', None)