File size: 280 Bytes
2fe55e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from loguru import logger


class BasePlugin:
    def __init__(self):
        err_msg = self.check_dep()
        if err_msg:
            logger.error(err_msg)
            exit(-1)

    def __call__(self, rgb_np_img, files, form):
        ...

    def check_dep(self):
        ...