UNPKG

face-api.js

Version:

JavaScript API for face detection and face recognition in the browser with tensorflow.js

13 lines 521 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function isBrowser() { return typeof window === 'object' && typeof document !== 'undefined' && typeof HTMLImageElement !== 'undefined' && typeof HTMLCanvasElement !== 'undefined' && typeof HTMLVideoElement !== 'undefined' && typeof ImageData !== 'undefined' && typeof CanvasRenderingContext2D !== 'undefined'; } exports.isBrowser = isBrowser; //# sourceMappingURL=isBrowser.js.map