-
-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
407 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.DS_Store | ||
out/ | ||
node_modules/ | ||
dist/ | ||
.venv | ||
all_models* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.DS_Store | ||
out/ | ||
node_modules/ | ||
*.map | ||
fs | ||
src | ||
.vscode | ||
dist/*.js | ||
dist/*.txt | ||
__pycache__ | ||
all_models | ||
.venv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Scrypted Debugger", | ||
"type": "python", | ||
"request": "attach", | ||
"connect": { | ||
"host": "${config:scrypted.debugHost}", | ||
"port": 10081 | ||
}, | ||
"justMyCode": false, | ||
"preLaunchTask": "scrypted: deploy+debug", | ||
"pathMappings": [ | ||
{ | ||
"localRoot": "/Volumes/Dev/scrypted/server/python/", | ||
"remoteRoot": "/Volumes/Dev/scrypted/server/python/", | ||
}, | ||
{ | ||
"localRoot": "${workspaceFolder}/src", | ||
"remoteRoot": "${config:scrypted.pythonRemoteRoot}" | ||
}, | ||
|
||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
{ | ||
// docker installation | ||
// "scrypted.debugHost": "koushik-thin", | ||
// "scrypted.serverRoot": "/server", | ||
|
||
// pi local installation | ||
// "scrypted.debugHost": "192.168.2.119", | ||
// "scrypted.serverRoot": "/home/pi/.scrypted", | ||
|
||
// local checkout | ||
"scrypted.debugHost": "127.0.0.1", | ||
"scrypted.serverRoot": "/Users/koush/.scrypted", | ||
|
||
"scrypted.pythonRemoteRoot": "${config:scrypted.serverRoot}/volume/plugin.zip", | ||
"python.analysis.extraPaths": [ | ||
"./node_modules/@scrypted/sdk/types/scrypted_python" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=733558 | ||
// for the documentation about the tasks.json format | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "scrypted: deploy+debug", | ||
"type": "shell", | ||
"presentation": { | ||
"echo": true, | ||
"reveal": "silent", | ||
"focus": false, | ||
"panel": "shared", | ||
"showReuseMessage": true, | ||
"clear": false | ||
}, | ||
"command": "npm run scrypted-vscode-launch ${config:scrypted.debugHost}", | ||
}, | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Vision Framework Object Detection for Scrypted | ||
|
||
This plugin adds object detection capabilities to any camera in Scrypted. This plugin requires MacOS Vision Framework. Vision Framework utilizes the CPU, GPU, and Neural Cores (Apple Silicon). | ||
|
||
The Vision Framework Plugin should only be used if you are a Scrypted NVR user. It will provide no | ||
benefits to HomeKit, which does its own detection processing. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"name": "@scrypted/vision-framework", | ||
"description": "Scrypted Vision Framework Object Detection", | ||
"keywords": [ | ||
"scrypted", | ||
"plugin", | ||
"vision framework", | ||
"neural", | ||
"object", | ||
"detect", | ||
"detection", | ||
"people", | ||
"person" | ||
], | ||
"scripts": { | ||
"scrypted-setup-project": "scrypted-setup-project", | ||
"prescrypted-setup-project": "scrypted-package-json", | ||
"build": "scrypted-webpack", | ||
"prepublishOnly": "NODE_ENV=production scrypted-webpack", | ||
"prescrypted-vscode-launch": "scrypted-webpack", | ||
"scrypted-vscode-launch": "scrypted-deploy-debug", | ||
"scrypted-deploy-debug": "scrypted-deploy-debug", | ||
"scrypted-debug": "scrypted-debug", | ||
"scrypted-deploy": "scrypted-deploy", | ||
"scrypted-readme": "scrypted-readme", | ||
"scrypted-package-json": "scrypted-package-json" | ||
}, | ||
"scrypted": { | ||
"name": "Vision Framework Object Detection", | ||
"pluginDependencies": [ | ||
"@scrypted/objectdetector" | ||
], | ||
"runtime": "python", | ||
"type": "API", | ||
"interfaces": [ | ||
"ObjectDetection", | ||
"ObjectDetectionPreview" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@scrypted/sdk": "file:../../sdk" | ||
}, | ||
"version": "0.0.2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../tensorflow-lite/src/detect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from vision import VisionPlugin | ||
|
||
def create_scrypted_plugin(): | ||
return VisionPlugin() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../tensorflow-lite/src/predict |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pyobjc | ||
Pillow>=5.4.1 |
Oops, something went wrong.