# FaceAPI ## Note This is updated **face-api.js** with latest available TensorFlow/JS as the original face-api.js is not compatible with **tfjs 2.0+**. Forked from **face-api.js** version **0.22.2** released on March 22nd, 2020 - - Currently based on **`TensorFlow/JS` 2.6.0** If you want to access `TFJS` classes and methods directly, they are exported as `faceapi.tf` ## Differences - Updated all type castings for TypeScript type checking to TypeScript 4.1 - Typescript build process now targets ES2018 and instead of dual ES5/ES6 - Compatible with TensorFlow/JS 2.0+ - Removed old tests, docs, examples - Removed unnecesary package dependencies (karma, jasmine, etc.) - Updated all package dependencies - Browser bundle process uses ESBuild instead of Rollup - New TensorFlow/JS dependencies since backends were removed from @tensorflow/tfjs-core - Updated mobileNetv1 model due to batchNorm() dependency - Fully tree shakable when imported as an ESM module - Added `version` class that returns JSON object with version of FaceAPI as well as linked TFJS - Removed following models as they are either obsolete or non-functional with tfjs 2.0+ - mtcnn: Obsolete - tinyYolov2: Non-functional since weights are missing Which means valid models are **tinyFaceDetector** and **mobileNetv1** ## Installation There are several ways to use Face-API: ### 1. IIFE script *Recommened for quick tests and backward compatibility with older Browsers that do not support ESM such as IE* This is simplest way for usage within Browser Simply download `dist/face-api.js`, include it in your `HTML` file & it's ready to use ```html