@scrypted/coreml 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,6 @@
1
+ # Object Detection Plugin for Scrypted
2
+
3
+ This plugin adds object detection capabilities to any camera in Scrypted. Having a fast GPU and CPU is highly recommended. Edge TPU (Coral.ai) is also supported.
4
+
5
+ The Object Detection Plugin should only be used if you are a Scrypted NVR user. It will provide no
6
+ benefits to HomeKit, which does its own detection processing.
Binary file
@@ -0,0 +1,20 @@
1
+ #!/bin/sh
2
+ # Copyright 2019 Google LLC
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # https://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ rm -rf all_models
17
+ mkdir -p all_models
18
+ cd all_models
19
+ wget https://github.com/koush/coreml-survival-guide/raw/master/MobileNetV2%2BSSDLite/ObjectDetection/ObjectDetection/MobileNetV2_SSDLite.mlmodel
20
+ wget https://raw.githubusercontent.com/koush/coreml-survival-guide/master/MobileNetV2%2BSSDLite/coco_labels.txt
package/package.json ADDED
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@scrypted/coreml",
3
+ "description": "Scrypted Object Detection Service.",
4
+ "keywords": [
5
+ "scrypted",
6
+ "plugin",
7
+ "coreml",
8
+ "neural",
9
+ "object",
10
+ "detect",
11
+ "detection",
12
+ "people",
13
+ "person"
14
+ ],
15
+ "scripts": {
16
+ "scrypted-setup-project": "scrypted-setup-project",
17
+ "prescrypted-setup-project": "scrypted-package-json",
18
+ "build": "scrypted-webpack",
19
+ "prepublishOnly": "NODE_ENV=production scrypted-webpack",
20
+ "prescrypted-vscode-launch": "scrypted-webpack",
21
+ "scrypted-vscode-launch": "scrypted-deploy-debug",
22
+ "scrypted-deploy-debug": "scrypted-deploy-debug",
23
+ "scrypted-debug": "scrypted-debug",
24
+ "scrypted-deploy": "scrypted-deploy",
25
+ "scrypted-readme": "scrypted-readme",
26
+ "scrypted-package-json": "scrypted-package-json"
27
+ },
28
+ "scrypted": {
29
+ "name": "Object Detection Plugin (CoreML)",
30
+ "pluginDependencies": [
31
+ "@scrypted/objectdetector"
32
+ ],
33
+ "runtime": "python",
34
+ "type": "API",
35
+ "interfaces": [
36
+ "Settings",
37
+ "BufferConverter",
38
+ "ObjectDetection"
39
+ ]
40
+ },
41
+ "devDependencies": {
42
+ "@scrypted/sdk": "file:../../sdk"
43
+ },
44
+ "version": "0.0.2"
45
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "commonjs",
4
+ "target": "ES2021",
5
+ "resolveJsonModule": true,
6
+ "moduleResolution": "Node16",
7
+ "esModuleInterop": true,
8
+ "sourceMap": true
9
+ },
10
+ "include": [
11
+ "src/**/*"
12
+ ]
13
+ }