|
|
@ -110,6 +110,8 @@ 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("アゲアゲアゲイン_alt.jpg","アゲアゲアゲイン",452,201,20,11,34,71.89f,false,"EX","",115,543240,false); |
|
|
|
|
|
|
|
RunTest("EiMmwvJUMAEVmaT.jpg","アゲアゲアゲイン",0,0,0,0,89,0.00f,true,"E","",0,0,false); |
|
|
|
//RunTest("test38.jpg","サマーアイドル",345,49,6,2,2,94.53f,false,"H","",232,347990,false);
|
|
|
|
//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);
|
|
|
@ -152,12 +154,15 @@ public class DemoApplication { |
|
|
|
tmp.mkdir(); |
|
|
|
tmp.mkdir(); |
|
|
|
BufferedImage img=null; |
|
|
|
BufferedImage img=null; |
|
|
|
File f = new File(testdir,_img); |
|
|
|
File f = new File(testdir,_img); |
|
|
|
|
|
|
|
if (!f.exists()) { |
|
|
|
|
|
|
|
f = new File("testsuite",_img); |
|
|
|
|
|
|
|
} |
|
|
|
Assert.isTrue(f.exists(),"Expected file to exist: "+f.getAbsoluteFile()); |
|
|
|
Assert.isTrue(f.exists(),"Expected file to exist: "+f.getAbsoluteFile()); |
|
|
|
img = ImageIO.read(f); |
|
|
|
img = ImageIO.read(f); |
|
|
|
Result r = typeface1.getAllData(img,debug); |
|
|
|
Result r = typeface1.getAllData(img,debug); |
|
|
|
if (img.getWidth()!=1200) { |
|
|
|
if (img.getWidth()!=1200) { |
|
|
|
//Resize.
|
|
|
|
//Resize.
|
|
|
|
img = ImageUtils.toBufferedImage(ImageIO.read(new File(testdir,_img)).getScaledInstance(1200, 675, Image.SCALE_SMOOTH)); |
|
|
|
img = ImageUtils.toBufferedImage(ImageIO.read(f).getScaledInstance(1200, 675, Image.SCALE_SMOOTH)); |
|
|
|
} |
|
|
|
} |
|
|
|
ImageIO.write(img,"png",new File("image.png")); |
|
|
|
ImageIO.write(img,"png",new File("image.png")); |
|
|
|
String song = Controller.getSongTitle(img); |
|
|
|
String song = Controller.getSongTitle(img); |
|
|
|