@imgly/background-removal-node
Advanced tools
Comparing version 1.4.3 to 1.4.4
export { createOnnxSession, runOnnxSession }; | ||
import { NdArray } from 'ndarray'; | ||
import ndarray, { NdArray } from 'ndarray'; | ||
import { Config } from './schema'; | ||
declare function createOnnxSession(model: any, config: Config): Promise<any>; | ||
declare function runOnnxSession(session: any, inputs: [string, NdArray<Float32Array>][], outputs: [string]): Promise<NdArray<Float32Array>[]>; | ||
declare function runOnnxSession(session: any, inputs: [string, NdArray<Float32Array>][], outputs: [string]): Promise<ndarray.NdArray<Float32Array>[]>; | ||
//# sourceMappingURL=onnx.d.ts.map |
@@ -5,5 +5,5 @@ export { imageDecode, imageEncode, tensorResizeBilinear, tensorHWCtoBCHW, calculateProportionalSize, imageSourceToImageData, ImageSource, convertFloat32ToUint8 }; | ||
import { imageDecode, imageEncode } from './codecs'; | ||
type ImageSource = ArrayBuffer | Uint8Array | Blob | URL | string; | ||
type ImageSource = ArrayBuffer | Uint8Array | Blob | URL | string | NdArray<Uint8Array>; | ||
declare function tensorResizeBilinear(imageTensor: NdArray<Uint8Array>, newWidth: number, newHeight: number): NdArray<Uint8Array>; | ||
declare function tensorHWCtoBCHW(imageTensor: NdArray<Uint32Array>, mean?: number[], std?: number[]): NdArray<Float32Array>; | ||
declare function tensorHWCtoBCHW(imageTensor: NdArray<Uint8Array>, mean?: number[], std?: number[]): NdArray<Float32Array>; | ||
declare function calculateProportionalSize(originalWidth: number, originalHeight: number, maxWidth: number, maxHeight: number): [number, number]; | ||
@@ -10,0 +10,0 @@ declare function imageSourceToImageData(image: ImageSource, _: Config): Promise<NdArray<Uint8Array>>; |
{ | ||
"name": "@imgly/background-removal-node", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "Background Removal in NodeJS", | ||
@@ -61,25 +61,26 @@ "resources": "@imgly/background-removal-node", | ||
"dependencies": { | ||
"onnxruntime-node": "^1.15.1", | ||
"sharp": "^0.32.4", | ||
"@types/lodash": "^4.14.195", | ||
"@types/node": "^20.3.1", | ||
"lodash": "^4.17.21", | ||
"ndarray": "^1.0.19", | ||
"zod": "^3.21.4" | ||
"onnxruntime-node": "~1.17.0", | ||
"sharp": "~0.32.4", | ||
"@types/lodash": "~4.14.195", | ||
"@types/node": "~20.3.1", | ||
"@types/ndarray": "~1.0.14", | ||
"lodash": "~4.17.21", | ||
"ndarray": "~1.0.19", | ||
"zod": "~3.21.4" | ||
}, | ||
"devDependencies": { | ||
"assert": "^2.0.0", | ||
"esbuild": "^0.18.18", | ||
"npm-dts": "^1.3.12", | ||
"os-browserify": "^0.3.0", | ||
"path-browserify": "^1.0.1", | ||
"process": "^0.11.10", | ||
"stream-browserify": "^3.0.0", | ||
"ts-loader": "^9.4.3", | ||
"tslib": "^2.5.3", | ||
"typescript": "^5.1.6", | ||
"util": "^0.12.5", | ||
"webpack": "^5.85.1", | ||
"webpack-cli": "^5.1.4" | ||
"assert": "~2.0.0", | ||
"esbuild": "~0.18.18", | ||
"npm-dts": "~1.3.12", | ||
"os-browserify": "~0.3.0", | ||
"path-browserify": "~1.0.1", | ||
"process": "~0.11.10", | ||
"stream-browserify": "~3.0.0", | ||
"ts-loader": "~9.4.3", | ||
"tslib": "~2.5.3", | ||
"typescript": "~5.1.6", | ||
"util": "~0.12.5", | ||
"webpack": "~5.85.1", | ||
"webpack-cli": "~5.1.4" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132707890
1513
8
1327
+ Added@types/ndarray@~1.0.14
+ Added@types/lodash@4.14.202(transitive)
+ Added@types/ndarray@1.0.14(transitive)
+ Added@types/node@20.3.3(transitive)
+ Addedonnxruntime-common@1.17.3(transitive)
+ Addedonnxruntime-node@1.17.3(transitive)
+ Addedzod@3.21.4(transitive)
- Removed@types/lodash@4.17.13(transitive)
- Removed@types/node@20.17.6(transitive)
- Removedonnxruntime-common@1.20.0(transitive)
- Removedonnxruntime-node@1.20.0(transitive)
- Removedundici-types@6.19.8(transitive)
- Removedzod@3.23.8(transitive)
Updated@types/lodash@~4.14.195
Updated@types/node@~20.3.1
Updatedlodash@~4.17.21
Updatedndarray@~1.0.19
Updatedonnxruntime-node@~1.17.0
Updatedsharp@~0.32.4
Updatedzod@~3.21.4