Package testing

Source Code of testing.Testing

package testing;

import java.awt.Rectangle;
import java.io.File;

import org.json.JSONObject;

import processing.core.PApplet;
import processing.core.PImage;

import servers.FaceDetection;
import servers.Google;
import servers.ImageSearcher;
import servers.ImageSearchClient;
import servers.Sql;
import textures.FacesLoader;
import utils.ConsoleIO;

import javax.swing.*;


public class Testing extends PApplet{

  ImageSearcher is;
  FacesLoader tl;
  FaceDetection fd;
  Sql sql;
  //Rectangle[] rect = new Rectangle[0];

  public static void main(String args[]) {
    PApplet.main(new String[] { "testing.Testing" });
  }

  public void setup(){

    size(800,600);

  //  image = loadImage("/Users/diex/Documents/WORK/PROGRAMACION/EclipseWS/SerLiquido/imagenes/Angelina+Jolie/_qcxDKJaQfUtBM.jpg");

    //fd = new FaceDetection();
   
  //  rect = fd.analyze(image);
   
  //  println(rect.length);
  //  println(rect.toString());
    sql = new Sql();
   
  }

  PImage image;

  public void draw(){
   
    background(127);
  //  image(image,0,0  ); 
   
    noFill();
    strokeWeight(4);
   
//    if(rect.length != 0)
//      rect(rect[0].x, rect[0].y, rect[0].width, rect[0].height);

  }

  public Testing() {

//    slq = new Sql();
   
//        for(int i = 0 ; i < 10 ; i++){     
//          is = new ImageSearcher();
//          is.searchImagesFor(ConsoleIO.prompt("Nombre: ")); 
//        } 


    //    tl = new TextureLoader();
    //    tl.importImages(ReadString.getFeedback("folder: "));





  }

  public void keyPressed(){
    System.out.println(sql.getCode());
    //  image = loadImage(ReadString.getFeedback("imageFile: "));
//    rect = fd.analyze(image);   
  }
}
TOP

Related Classes of testing.Testing

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.