import JMyron.*; import FaceDetect.*; import de.bezier.data.sql.*; FaceDetect fd; int MAX = 10; JMyron m; int[] x = new int[MAX]; int[] y = new int[MAX]; int[] r = new int[MAX]; int[][] Faces = new int[MAX][3]; int[] img = new int[320*240]; MySQL msql; String user = "bob"; String pass = "password"; String database = "test"; String table = "video_list"; int x_pos = 0; int y_pos = 0; void setup(){ size(320,240); m = new JMyron(); m.start(width,height); fd = new FaceDetect(this); fd.start("haarcascade_frontalface_default.xml", width,height,30); strokeWeight(2); stroke(255,200,0); noFill(); msql = new MySQL( this, "localhost", database, user, pass ); if (msql.connect()){ msql.execute( "CREATE TABLE IF NOT EXISTS " + table + " ("+"id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,filename VARCHAR( 100 ), x_coord VARCHAR(10), y_coord VARCHAR(10))"); } else{ println("connection failed!"); } } void draw(){ background(0); m.update(); img = m.image(); loadPixels(); arraycopy(img,pixels); updatePixels(); Faces = fd.face(img); int count = Faces.length; if (count>0) { for (int i = 0;i