2020-09-09 15:50:10 +02:00
|
|
|
// const os = require('os');
|
|
|
|
// const process = require('process');
|
|
|
|
|
2020-10-09 03:31:31 +02:00
|
|
|
import * as tf from '@tensorflow/tfjs';
|
2020-08-18 13:54:53 +02:00
|
|
|
import * as draw from './draw';
|
|
|
|
import * as utils from './utils';
|
2020-09-08 18:26:51 +02:00
|
|
|
export { draw, utils, tf };
|
|
|
|
|
2020-08-18 13:54:53 +02:00
|
|
|
export * from './ageGenderNet/index';
|
|
|
|
export * from './classes/index';
|
|
|
|
export * from './dom/index'
|
|
|
|
export * from './env/index';
|
|
|
|
export * from './faceExpressionNet/index';
|
|
|
|
export * from './faceLandmarkNet/index';
|
|
|
|
export * from './faceRecognitionNet/index';
|
|
|
|
export * from './factories/index';
|
|
|
|
export * from './globalApi/index';
|
|
|
|
export * from './ops/index';
|
2020-08-26 00:24:48 +02:00
|
|
|
export * from './ssdMobilenetv1/index';
|
2020-08-18 13:54:53 +02:00
|
|
|
export * from './tinyFaceDetector/index';
|
|
|
|
export * from './tinyYolov2/index';
|
|
|
|
export * from './euclideanDistance';
|
|
|
|
export * from './NeuralNetwork';
|
2020-08-29 20:56:29 +02:00
|
|
|
export * from './resizeResults';
|
2020-09-08 18:26:51 +02:00
|
|
|
|
|
|
|
import * as pkg from '../package.json';
|
2020-10-11 18:41:17 +02:00
|
|
|
const node = (typeof process !== 'undefined');
|
|
|
|
const browser = (typeof navigator !== 'undefined') && (typeof navigator.userAgent !== 'undefined');
|
2020-10-09 03:31:31 +02:00
|
|
|
export const version = { faceapi: pkg.version, node, browser };
|
2020-10-11 18:41:17 +02:00
|
|
|
|
2020-10-12 20:28:19 +02:00
|
|
|
// import {PlatformBrowser} from './Platform';
|
|
|
|
// if (!tf.env().platform && tf.env().get('IS_BROWSER')) tf.env().setPlatform('browser', new PlatformBrowser);
|