openvino: use explicit shape for CRAFT

This commit is contained in:
Koushik Dutta
2025-07-13 13:10:12 -07:00
parent 6f47e39bf3
commit e1ba16f708
3 changed files with 6 additions and 4 deletions

View File

@@ -1,12 +1,12 @@
{
"name": "@scrypted/openvino",
"version": "0.1.183",
"version": "0.1.185",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@scrypted/openvino",
"version": "0.1.183",
"version": "0.1.185",
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
}

View File

@@ -50,5 +50,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.1.183"
"version": "0.1.185"
}

View File

@@ -32,7 +32,9 @@ class OpenVINOTextRecognition(TextRecognition):
model.reshape([1, 1, 64, 384])
return self.plugin.core.compile_model(model, self.plugin.mode)
else:
return self.plugin.core.compile_model(xmlFile, self.plugin.mode)
model = self.plugin.core.read_model(xmlFile)
model.reshape([1, 3, 640, 640])
return self.plugin.core.compile_model(model, self.plugin.mode)
async def predictDetectModel(self, input: np.ndarray):
def predict():