@camstack/addon-motion-wasm 0.1.1
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/dist/chunk-FXGWBT3O.mjs +34 -0
- package/dist/chunk-FXGWBT3O.mjs.map +1 -0
- package/dist/index.d.mts +129 -0
- package/dist/index.d.ts +129 -0
- package/dist/index.js +7138 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +472 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib-OC5G62TM.mjs +6628 -0
- package/dist/lib-OC5G62TM.mjs.map +1 -0
- package/package.json +80 -0
- package/wasm/motion.wasm +0 -0
package/package.json
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@camstack/addon-motion-wasm",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "WASM-accelerated motion detection with blur, dilation, and connected component labeling",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"camstack",
|
|
7
|
+
"addon",
|
|
8
|
+
"camstack-addon",
|
|
9
|
+
"motion-detection",
|
|
10
|
+
"wasm",
|
|
11
|
+
"assemblyscript"
|
|
12
|
+
],
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/camstack/server"
|
|
17
|
+
},
|
|
18
|
+
"main": "./dist/index.js",
|
|
19
|
+
"module": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/index.mjs",
|
|
25
|
+
"require": "./dist/index.js"
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"camstack": {
|
|
30
|
+
"displayName": "Motion Detection (WASM)",
|
|
31
|
+
"addons": [
|
|
32
|
+
{
|
|
33
|
+
"id": "motion-wasm",
|
|
34
|
+
"name": "Motion Detection (WASM)",
|
|
35
|
+
"version": "0.1.0",
|
|
36
|
+
"description": "WASM-accelerated motion detection with blur, dilation, and connected component labeling",
|
|
37
|
+
"entry": "./dist/index.js",
|
|
38
|
+
"execution": {
|
|
39
|
+
"placement": "any-node",
|
|
40
|
+
"group": "pipeline"
|
|
41
|
+
},
|
|
42
|
+
"capabilities": [
|
|
43
|
+
{
|
|
44
|
+
"name": "motion-detection",
|
|
45
|
+
"kind": "wrapper",
|
|
46
|
+
"defaultActive": true
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"passive": true,
|
|
50
|
+
"defaultConfig": {
|
|
51
|
+
"threshold": 45,
|
|
52
|
+
"blurRadius": 1,
|
|
53
|
+
"dilateRadius": 4,
|
|
54
|
+
"minArea": 3000
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
"files": [
|
|
60
|
+
"dist",
|
|
61
|
+
"wasm"
|
|
62
|
+
],
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build:wasm": "asc src/wasm/assembly/index.ts --outFile wasm/motion.wasm --optimize --runtime stub --initialMemory 128 --maximumMemory 128",
|
|
65
|
+
"build": "npm run build:wasm && tsup",
|
|
66
|
+
"typecheck": "tsc --noEmit",
|
|
67
|
+
"test": "vitest run --passWithNoTests"
|
|
68
|
+
},
|
|
69
|
+
"peerDependencies": {
|
|
70
|
+
"@camstack/types": "^0.1.0"
|
|
71
|
+
},
|
|
72
|
+
"dependencies": {},
|
|
73
|
+
"devDependencies": {
|
|
74
|
+
"@camstack/types": "*",
|
|
75
|
+
"assemblyscript": "^0.27.0",
|
|
76
|
+
"tsup": "^8.0.0",
|
|
77
|
+
"typescript": "~5.9.0",
|
|
78
|
+
"vitest": "^3.0.0"
|
|
79
|
+
}
|
|
80
|
+
}
|
package/wasm/motion.wasm
ADDED
|
Binary file
|