tutorial-demos/sapigee/frontends/sap-oneapi/public/factory-monitor/js/main.js
// Draws the image onto the canvas, which is then sent to the vision service
Draws the image onto the canvas, which is then sent to the vision service
Draws the image onto the canvas which is then sent to the vision service
function draw() {
		   var canvas = document.getElementById('canvas');
		   canvas.width = this.width;
		   canvas.height = this.height;
		   var ctx = canvas.getContext('2d');
		   ctx.drawImage(this, 0,0);
		   callSecurityVisionService();
   }
function draw ( ) { var canvas = document . getElementById ( 'canvas' ) ; canvas . width = this . width ; canvas . height = this . height ; var ctx = canvas . getContext ( '2d' ) ; ctx . drawImage ( this , 0 , 0 ) ; callSecurityVisionService ( ) ; }
Draws the image onto the canvas, which is then sent to the vision service
Draws the image onto the canvas which is then sent to the vision service