Updated parser to use different image fetching method.
This commit is contained in:
parent
ac2c50bd39
commit
51a4096ca2
BIN
resources/image.png
Normal file
BIN
resources/image.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 353 KiB |
BIN
resources/test38.jpg
Normal file
BIN
resources/test38.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 343 KiB |
@ -145,10 +145,12 @@ public class Controller {
|
|||||||
f = new File("../../server/"+url.replace("http://projectdivar.com/", ""));
|
f = new File("../../server/"+url.replace("http://projectdivar.com/", ""));
|
||||||
img = ImageIO.read(f);
|
img = ImageIO.read(f);
|
||||||
} else {
|
} else {
|
||||||
downloadFileFromUrl(url,"temp");
|
/*downloadFileFromUrl(url,"temp");
|
||||||
//BufferedImage img = ImageUtils.toBufferedImage(ImageIO.read(new File("temp")).getScaledInstance(1227, 690, Image.SCALE_SMOOTH));
|
//BufferedImage img = ImageUtils.toBufferedImage(ImageIO.read(new File("temp")).getScaledInstance(1227, 690, Image.SCALE_SMOOTH));
|
||||||
|
f = new File("temp");*/
|
||||||
|
img = ImageIO.read(new URL(url));
|
||||||
f = new File("temp");
|
f = new File("temp");
|
||||||
img = ImageIO.read(f);
|
ImageIO.write(img,"jpg",f);
|
||||||
}
|
}
|
||||||
Result r = DemoApplication.typeface1.getAllData(img);
|
Result r = DemoApplication.typeface1.getAllData(img);
|
||||||
if (img.getWidth()!=1200) {
|
if (img.getWidth()!=1200) {
|
||||||
|
@ -110,6 +110,7 @@ public class DemoApplication {
|
|||||||
RunTest("WORLD'S END UMBRELLA.jpg",437,136,6,1,3,90.59f,false,"H","",215,475120);
|
RunTest("WORLD'S END UMBRELLA.jpg",437,136,6,1,3,90.59f,false,"H","",215,475120);
|
||||||
RunTest("ぽっぴっぽー.jpg",350,46,7,6,3,80.39f,false,"N","",175,263630);
|
RunTest("ぽっぴっぽー.jpg",350,46,7,6,3,80.39f,false,"N","",175,263630);
|
||||||
RunTest("サマーアイドル.jpg",245,19,4,0,2,87.04f,false,"E","",103,179360);
|
RunTest("サマーアイドル.jpg",245,19,4,0,2,87.04f,false,"E","",103,179360);
|
||||||
|
RunTest("test38.jpg","サマーアイドル",345,49,6,2,2,94.53f,false,"H","",232,347990,false);
|
||||||
//RunTest("ジターバグ_2.jpg","ジターバグ",0,0,0,0,159,0.00f,true,"EX","SD",0,0);
|
//RunTest("ジターバグ_2.jpg","ジターバグ",0,0,0,0,159,0.00f,true,"EX","SD",0,0);
|
||||||
//RunTest("大江戸ジュリアナイト_2.jpg","大江戸ジュリアナイト",0,0,0,0,79,0.08f,true,"EX","HD",0,580);
|
//RunTest("大江戸ジュリアナイト_2.jpg","大江戸ジュリアナイト",0,0,0,0,79,0.08f,true,"EX","HD",0,580);
|
||||||
/*RunRemoteTest("http://projectdivar.com/files/DECORATOR_EXplay_436_100_1_0_6_93.52.png","DECORATOR",436,100,1,0,6,93.52f,false,"EX","HS",217,560180);
|
/*RunRemoteTest("http://projectdivar.com/files/DECORATOR_EXplay_436_100_1_0_6_93.52.png","DECORATOR",436,100,1,0,6,93.52f,false,"EX","HS",217,560180);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user