Skip to content

Commit

Permalink
Merge branch 'main' of github.com:koush/scrypted
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Apr 30, 2024
2 parents 7a382a8 + 6d520dc commit 3a70625
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/rknn/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

This plugin adds object detection capabilities to any camera in Scrypted using the NPU accelerator on ARM64 Rockchip CPUs. Functionality has been tested on RK3588S, but should also work on RK3562, RK3576, and RK3588.

Using this plugin in Docker requires Docker to be run with the `--privileged` flag. When using this plugin in a local install, ensure you have installed Rockchip's `librknnrt.so` as `/usr/lib/librknnrt.so`.
Using this plugin in Docker requires Docker to be run with the `--security-opt systempaths=unconfined` flag due to a dependency on the `/proc/device-tree/compatible` file. Additionally, use the Docker flag `--device /dev/dri:/dev/dri` to ensure that the `/dev/dri/renderD129` device is accessible. When using this plugin in a local install, ensure you have installed Rockchip's `librknnrt.so` as `/usr/lib/librknnrt.so`.
4 changes: 2 additions & 2 deletions plugins/rknn/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion plugins/rknn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@
"devDependencies": {
"@scrypted/sdk": "file:../../sdk"
},
"version": "0.0.1"
"version": "0.0.4"
}
4 changes: 4 additions & 0 deletions plugins/rknn/src/rknn/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def ensure_compatibility_and_get_cpu():
device_compatible_str = f.read()
if 'rk3562' in device_compatible_str:
return 'rk3562'
elif 'rk3566' in device_compatible_str:
return 'rk3566'
elif 'rk3568' in device_compatible_str:
return 'rk3568'
elif 'rk3576' in device_compatible_str:
return 'rk3576'
elif 'rk3588' in device_compatible_str:
Expand Down

0 comments on commit 3a70625

Please sign in to comment.