mirror of
https://github.com/koush/scrypted.git
synced 2026-09-20 02:30:39 +01:00
predict: fixup face nativeids
This commit is contained in:
@@ -168,7 +168,7 @@ class CoreMLPlugin(PredictPlugin, scrypted_sdk.Settings, scrypted_sdk.DeviceProv
|
||||
pass
|
||||
|
||||
async def getDevice(self, nativeId: str) -> Any:
|
||||
if nativeId == "recognition":
|
||||
if nativeId == "facerecognition":
|
||||
return CoreMLFaceRecognition(nativeId)
|
||||
if nativeId == "textrecognition":
|
||||
return CoreMLTextRecognition(nativeId)
|
||||
|
||||
@@ -362,7 +362,7 @@ class OpenVINOPlugin(
|
||||
pass
|
||||
|
||||
async def getDevice(self, nativeId: str) -> Any:
|
||||
if nativeId == "recognition":
|
||||
if nativeId == "facerecognition":
|
||||
return OpenVINOFaceRecognition(self, nativeId)
|
||||
elif nativeId == "textrecognition":
|
||||
return OpenVINOTextRecognition(self, nativeId)
|
||||
|
||||
Reference in New Issue
Block a user