1 Star 0 Fork 0

fengyintan/face-api.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
typedoc.config.js 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
vincent 提交于 2018-10-23 21:02 . scripts for generating docs
const path = require('path')
const fs = require('fs')
const excludes = [
{ dir: 'faceLandmarkNet', exceptions: ['index.ts', 'FaceLandmark68Net.ts', 'FaceLandmark68TinyNet.ts'] },
{ dir: 'faceRecognitionNet', exceptions: ['index.ts', 'FaceRecognitionNet.ts'] },
{ dir: 'mtcnn', exceptions: ['index.ts', 'Mtcnn.ts', 'MtcnnOptions.ts'] },
{ dir: 'ssdMobilenetv1', exceptions: ['index.ts', 'SsdMobilenetv1.ts', 'SsdMobilenetv1Options.ts'] },
{ dir: 'tinyFaceDetector', exceptions: ['index.ts', 'TinyFaceDetector.ts', 'TinyFaceDetectorOptions.ts'] },
{ dir: 'tinyYolov2', exceptions: ['index.ts', 'TinyYolov2.ts'] }
]
const exclude = excludes.map(({ dir, exceptions }) => {
const files = fs.readdirSync(path.resolve('src', dir))
.filter(file => !exceptions.some(ex => ex === file))
return files.map(file => `**/${dir}/${file}`)
}).reduce((flat, arr) => flat.concat(arr), [])
module.exports = {
mode: 'file',
out: 'docs',
module: 'commonjs',
target: 'es5',
theme: 'default',
excludeExternals: true,
includeDeclarations: true,
excludePrivate: true,
excludeNotExported: true,
stripInternal: true,
externalPattern: 'node_modules/@tensorflow',
exclude
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/fengyintan/face-api.js.git
git@gitee.com:fengyintan/face-api.js.git
fengyintan
face-api.js
face-api.js
master

搜索帮助