Skip to content

Commit

Permalink
predict: fixup face nativeids
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 23, 2024
1 parent 167c66f commit 7120ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/coreml/src/coreml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ async def prepareRecognitionModels(self):
pass

async def getDevice(self, nativeId: str) -> Any:
if nativeId == "recognition":
if nativeId == "facerecognition":
return CoreMLFaceRecognition(nativeId)
if nativeId == "textrecognition":
return CoreMLTextRecognition(nativeId)
Expand Down
2 changes: 1 addition & 1 deletion plugins/openvino/src/ov/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ async def prepareRecognitionModels(self):
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)
Expand Down

0 comments on commit 7120ff4

Please sign in to comment.