Implementation examples for different environments
mainNudeNet provides different implementation examples depending on your target runtime:
- NodeJS Image Processing: See
src/nudenet.js. - NodeJS Video Processing: See
src/node-video.js. Note that this requires additional dependencies:@tensorflow/tfjs-node-gpu,pipe2jpeg, and a functional installation offfmpeg. - Browser (TypeScript): See
src/index.htmlandsrc/index.ts. The TypeScript code is transpiled todist/index.jsfor browser use.