from ikomia import dataprocess
import os

os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"


# --------------------
# - Interface class to integrate the process with Ikomia application
# - Inherits dataprocess.CPluginProcessInterface from Ikomia API
# --------------------
class IkomiaPlugin(dataprocess.CPluginProcessInterface):

    def __init__(self):
        dataprocess.CPluginProcessInterface.__init__(self)

    def getProcessFactory(self):
        from infer_yolact.infer_yolact_process import InferYolactFactory
        # Instantiate process object
        return InferYolactFactory()

    def getWidgetFactory(self):
        from infer_yolact.infer_yolact_widget import InferYolactWidgetFactory
        # Instantiate associated widget object
        return InferYolactWidgetFactory()

from ikomia import dataprocess
import os

os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE"


# --------------------
# - Interface class to integrate the process with Ikomia application
# - Inherits dataprocess.CPluginProcessInterface from Ikomia API
# --------------------
class IkomiaPlugin(dataprocess.CPluginProcessInterface):

    def __init__(self):
        dataprocess.CPluginProcessInterface.__init__(self)

    def getProcessFactory(self):
        from infer_yolact.infer_yolact_process import InferYolactFactory
        # Instantiate process object
        return InferYolactFactory()

    def getWidgetFactory(self):
        from infer_yolact.infer_yolact_widget import InferYolactWidgetFactory
        # Instantiate associated widget object
        return InferYolactWidgetFactory()

# -------------------- # - Interface class to integrate the process with Ikomia application # - Inherits dataprocess.CPluginProcessInterface from Ikomia API # -------------------- # Instantiate process object # Instantiate associated widget object