Updated cropped image location.

This commit is contained in:
sigonasr2 2020-09-28 14:40:19 +09:00
parent 80f9ddb78c
commit 7397ddf622

View File

@ -109,7 +109,7 @@ public class Guardian {
UPPERLEFTCORNER=new Point(crop2.x,crop1.y); UPPERLEFTCORNER=new Point(crop2.x,crop1.y);
LOWERRIGHTCORNER=new Point(crop1.x,crop2.y); LOWERRIGHTCORNER=new Point(crop1.x,crop2.y);
img = img.getSubimage(crop2.x, crop1.y, crop1.x-crop2.x, crop2.y-crop1.y); img = img.getSubimage(crop2.x, crop1.y, crop1.x-crop2.x, crop2.y-crop1.y);
ImageIO.write(img,"png",new File("/var/www/html/divar/cropped/cropped"+USERID+".png")); ImageIO.write(img,"png",new File("./www/cropped/cropped"+USERID+".png"));
//System.out.println("Future Tone? "+MyRobot.FUTURETONE); //System.out.println("Future Tone? "+MyRobot.FUTURETONE);
return img; return img;
} }