2020-08-20 02:10:42 +02:00
|
|
|
import { getCenterPoint } from '../utils';
|
|
|
|
import { FaceLandmarks } from './FaceLandmarks';
|
|
|
|
export class FaceLandmarks68 extends FaceLandmarks {
|
2020-08-18 14:04:33 +02:00
|
|
|
getJawOutline() {
|
|
|
|
return this.positions.slice(0, 17);
|
|
|
|
}
|
|
|
|
getLeftEyeBrow() {
|
|
|
|
return this.positions.slice(17, 22);
|
|
|
|
}
|
|
|
|
getRightEyeBrow() {
|
|
|
|
return this.positions.slice(22, 27);
|
|
|
|
}
|
|
|
|
getNose() {
|
|
|
|
return this.positions.slice(27, 36);
|
|
|
|
}
|
|
|
|
getLeftEye() {
|
|
|
|
return this.positions.slice(36, 42);
|
|
|
|
}
|
|
|
|
getRightEye() {
|
|
|
|
return this.positions.slice(42, 48);
|
|
|
|
}
|
|
|
|
getMouth() {
|
|
|
|
return this.positions.slice(48, 68);
|
|
|
|
}
|
|
|
|
getRefPointsForAlignment() {
|
|
|
|
return [
|
|
|
|
this.getLeftEye(),
|
|
|
|
this.getRightEye(),
|
|
|
|
this.getMouth()
|
2020-08-20 02:10:42 +02:00
|
|
|
].map(getCenterPoint);
|
2020-08-18 14:04:33 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=FaceLandmarks68.js.map
|