detect(callback, recognize = false, fetchRate = 100) {
        setInterval(() => {
            if (recognize && this.app && this.app.recognitions) {
                    callback(this.app.recognitions);
                } else if(this.app && this.app.detections) {
                    callback(this.app.detections);
                }
        }, fetchRate)
    }
/* 
     * Utility method that reads the detections to perform something on them
     * @callback: takes a callback method that is defined at method calling
     * @recognize: set to true to get the recognitions rather than the detections if the recognition engine is running
     * @fetchRate: define in ms the fetching rate of the detections. Default is 100ms
     *
     */
Utility method that reads the detections to perform something on them
@callback: takes a callback method that is defined at method calling
@recognize: set to true to get the recognitions rather than the detections if the recognition engine is running
@fetchRate: define in ms the fetching rate of the detections. Default is 100ms
Utility method that reads the detections to perform something on them @callback : takes a callback method that is defined at method calling @recognize : set to true to get the recognitions rather than the detections if the recognition engine is running @fetchRate : define in ms the fetching rate of the detections . Default is 100ms
detect(callback, recognize = false, fetchRate = 100) {
        setInterval(() => {
            if (recognize && this.app && this.app.recognitions) {
                    callback(this.app.recognitions);
                } else if(this.app && this.app.detections) {
                    callback(this.app.detections);
                }
        }, fetchRate)
    }
detect ( callback , recognize = false , fetchRate = 100 ) { setInterval ( ( ) => { if ( recognize && this . app && this . app . recognitions ) { callback ( this . app . recognitions ) ; } else if ( this . app && this . app . detections ) { callback ( this . app . detections ) ; } } , fetchRate ) }
Utility method that reads the detections to perform something on them
 @callback: takes a callback method that is defined at method calling
 @recognize: set to true to get the recognitions rather than the detections if the recognition engine is running
 @fetchRate: define in ms the fetching rate of the detections.
Utility method that reads the detections to perform something on them @callback : takes a callback method that is defined at method calling @recognize : set to true to get the recognitions rather than the detections if the recognition engine is running @fetchRate : define in ms the fetching rate of the detections .