Update typeface to fix detection issues.

This commit is contained in:
sigonasr2 2020-10-07 06:26:30 +09:00
parent 9e3e5d4376
commit 1c6d9de7ef
15 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.2 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -395,7 +395,7 @@ public class MyRobot{
Thread.sleep(100); Thread.sleep(100);
MYROBOT.refreshScoreScreen(); MYROBOT.refreshScoreScreen();
ImageIO.write(MYROBOT.createScoreScreenCapture(),"png",new File("scoreimage.png")); ImageIO.write(MYROBOT.createScoreScreenCapture(),"png",new File("scoreimage.png"));
data = typeface1.getAllData(MYROBOT.createScoreScreenCapture()); //data = typeface1.getAllData(MYROBOT.createScoreScreenCapture());
} }
System.out.println("Results for "+selectedSong.title+" "+data.difficulty+": "+data.display()); System.out.println("Results for "+selectedSong.title+" "+data.difficulty+": "+data.display());
@ -824,6 +824,7 @@ public class MyRobot{
selectedSong=new SongData("LIKE THE WIND",null,null,null,null); selectedSong=new SongData("LIKE THE WIND",null,null,null,null);
difficulty="H"; difficulty="H";
RunTest("test74.jpg",349,36,0,0,0,101.94f,"EXEX","",385,1107029,false,Mode.FUTURETONE);
RunTest("test73.png",456,207,31,11,18,71.06f,"EX","",96,544610,false,Mode.MEGAMIX); RunTest("test73.png",456,207,31,11,18,71.06f,"EX","",96,544610,false,Mode.MEGAMIX);
RunTest("test72.png",571,129,12,0,19,82.47f,"EX","",153,571680,false,Mode.MEGAMIX); RunTest("test72.png",571,129,12,0,19,82.47f,"EX","",153,571680,false,Mode.MEGAMIX);
RunTest("test71.png",520,36,0,0,0,104.91f,"EX","",556,888074,false,Mode.FUTURETONE); RunTest("test71.png",520,36,0,0,0,104.91f,"EX","",556,888074,false,Mode.FUTURETONE);

View File

@ -817,7 +817,7 @@ public class TypeFace2 {
Color fontCol = new Color(font.getRGB(x+i*22,y)); Color fontCol = new Color(font.getRGB(x+i*22,y));
Color pixelCol = new Color(img.getRGB(xpointer-22+x+1, y+ypointer)); Color pixelCol = new Color(img.getRGB(xpointer-22+x+1, y+ypointer));
if (fontCol.equals(Color.RED) && pixelCol.getRed()<150 if (fontCol.equals(Color.RED) && pixelCol.getRed()<150
&& pixelCol.getGreen()<150 && pixelCol.getBlue()<150) { && pixelCol.getGreen()<150 && pixelCol.getBlue()<144) {
//Breaks a rule. //Breaks a rule.
ruleBreak=true; ruleBreak=true;
if (!debug) { if (!debug) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 12 KiB