face-recognition.js/public_html/js/action-script.js

35 lines
597 B
JavaScript
Raw Normal View History

var DOM = {
body: $('body'),
img: $('img')
};
2016-10-05 08:49:25 +00:00
var Controller = new dat.GUI();
2016-10-05 08:49:25 +00:00
/* [1] Initialisation
=========================================================*/
var init = function(){
this.src = 'front:male:1.jpg';
Controller.add(this, 'src', this._images);
};
/* [2] Routine principale
=========================================================*/
2016-10-05 08:49:25 +00:00
var process = function(){
console.warn('PROCESS');
// TODO: Code here
2016-10-05 08:49:25 +00:00
log('Image loaded');
2016-10-05 08:49:25 +00:00
};
/* [x] Chargement image
=========================================================*/
var iL = new ImageLoader( DOM.img, init, process );