custom(app, facedetector) {

        return function() {

            // Get the canvas ready with the app options
            const canvas = facedetector.prepareCanva(app.options);


            // Match the canva size with the video
            const displaySize = {
                width: facedetector.media.width,
                height: facedetector.media.height
            };
            faceapi.matchDimensions(canvas, displaySize);
            
            
            // initialize the app in the object
            facedetector.app = app;
            facedetector.app.canvas = canvas;

            
            // call the app features from here
            app.method(facedetector);

        }

    }
/* 
     * Method for custom app that doesn't use Face Detections
     * @app: object definition of the app and its options
     * @facdetector: takes this object as a parameter as well
     *
     */
Method for custom app that doesn't use Face Detections
@app: object definition of the app and its options
@facdetector: takes this object as a parameter as well
Method for custom app that doesn ' t use Face Detections @app : object definition of the app and its options @facdetector : takes this object as a parameter as well
custom(app, facedetector) {
        return function() {
            const canvas = facedetector.prepareCanva(app.options);
            const displaySize = {
                width: facedetector.media.width,
                height: facedetector.media.height
            };
            faceapi.matchDimensions(canvas, displaySize);
            facedetector.app = app;
            facedetector.app.canvas = canvas;
            app.method(facedetector);
        }
    }
custom ( app , facedetector ) { return function ( ) { const canvas = facedetector . prepareCanva ( app . options ) ; const displaySize = { width : facedetector . media . width , height : facedetector . media . height } ; faceapi . matchDimensions ( canvas , displaySize ) ; facedetector . app = app ; facedetector . app . canvas = canvas ; app . method ( facedetector ) ; } }
Method for custom app that doesn't use Face Detections
 @app: object definition of the app and its options
 @facdetector: takes this object as a parameter as well
Method for custom app that doesn ' t use Face Detections @app : object definition of the app and its options @facdetector : takes this object as a parameter as well
// Get the canvas ready with the app options // Match the canva size with the video // initialize the app in the object // call the app features from here