48 | 51 |
52 | 55 |The MIT License (MIT)
35 |Copyright (c) 2019 Yuki Yamazaki
36 |Permission is hereby granted, free of charge, to any person obtaining a copy 37 | of this software and associated documentation files (the "Software"), to deal 38 | in the Software without restriction, including without limitation the rights 39 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 40 | copies of the Software, and to permit persons to whom the Software is 41 | furnished to do so, subject to the following conditions:
42 |The above copyright notice and this permission notice shall be included in all 43 | copies or substantial portions of the Software.
44 |THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 45 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 46 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 47 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 48 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 49 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 50 | SOFTWARE.
51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 |62 |
65 | projects/ngx-face-api-js/schematics/ng-add/Schema.ts
66 |
76 | Properties77 | |
78 |
81 |
|
87 |
| 100 | 101 | project 102 | | 103 |
106 | project:
108 | |
109 |
114 | Type : string
115 |
116 | |
117 |
export interface Schema {
131 | project: string;
132 | }
133 |
134 |
59 |
|
71 |
| 82 | 83 | FeatureToken 84 | | 85 |
88 |
90 | |
91 |
| 118 | 119 | TaskTypeToken 120 | | 121 |
124 |
126 | |
127 |
Angular directives for face detection and face recognition in the browser.
37 |It is a wrapper for face-api.js, so it is not dependent on the browser implementation.
38 | 39 |Make face and emotion recognition features easy to use in Angular projects by using face-api.js.
41 |ng add and ng update command.Overlay canvas on img tag with embedded attributes such as singleFace and allFaces by using Angular CDK Overlay.
49 |
And render the recognition result on canvas according to the content of the with attribute.
51 |html
63 | <img allFaces [src]="imageSrc" width="300px" />

html
67 | <img
68 | singleFace
69 | [with]="['expressions', 'landmarks']"
70 | [src]="imageSrc"
71 | width="300px"
72 | />

ng-add Schematicsbash
77 | $ ng add ngx-face-api-js
78 | ...
79 | UPDATE package.json (1457 bytes)
80 | UPDATE src/styles.css (126 bytes)
81 | UPDATE src/app/app.module.ts (497 bytes)
See Wiki.
84 |ng-update Schematicsbash
87 | $ ng update ngx-face-api-js
88 | ✅️ Added dependency: face-api.js@~0.20.0
89 | ✅️ Dependencies installed
90 | UPDATE package.json (1440 bytes)
This software is released under the MIT License, see LICENSE.
97 | 98 |