2020-08-20 02:10:42 +02:00
|
|
|
import { FaceDetection } from '../classes/FaceDetection';
|
|
|
|
export function isWithFaceDetection(obj) {
|
|
|
|
return obj['detection'] instanceof FaceDetection;
|
2020-08-18 14:04:33 +02:00
|
|
|
}
|
2020-08-20 02:10:42 +02:00
|
|
|
export function extendWithFaceDetection(sourceObj, detection) {
|
2020-08-18 14:04:33 +02:00
|
|
|
const extension = { detection };
|
|
|
|
return Object.assign({}, sourceObj, extension);
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=WithFaceDetection.js.map
|