12 lines
333 B
Python
12 lines
333 B
Python
from modelscope.pipelines import pipeline
|
|
from modelscope.utils.constant import Tasks
|
|
|
|
class checkHandStatic:
|
|
modelName: str = 'damo/cv_mobileface_hand-static'
|
|
|
|
def check(self, url):
|
|
hand_static = pipeline(
|
|
task=Tasks.hand_static,
|
|
model=self.modelName
|
|
)
|
|
return hand_static(url) |