nsfwjs-node
Version:
Detect NSFW content client side
6 lines (5 loc) • 326 B
TypeScript
import * as tf from "@tensorflow/tfjs-node";
export declare const NUMBER_OF_CHANNELS = 3;
export declare const readImage: (path: string) => any;
export declare const imageByteArray: (image: any, numChannels: number) => Int32Array;
export declare const imageToInput: (image: any, numChannels: number) => tf.Tensor<tf.Rank.R3>;