UNPKG

@vladmandic/face-api

Version:

FaceAPI: AI-powered Face Detection & Rotation Tracking, Face Description & Recognition, Age & Gender & Emotion Prediction for Browser and NodeJS using TensorFlow/JS

9 lines (7 loc) 200 B
import { env } from '../env/index'; export function resolveInput(arg: string | any) { if (!env.isNodejs() && typeof arg === 'string') { return document.getElementById(arg); } return arg; }