Update typeface to fix detection issues.

master
sigonasr2 4 years ago
parent 9e3e5d4376
commit 1c6d9de7ef
  1. BIN
      DivaBot/DivaBot.jar
  2. BIN
      DivaBot/TypeFace_API.jar
  3. BIN
      DivaBot/rectangle0.png
  4. BIN
      DivaBot/rectangle1.png
  5. BIN
      DivaBot/rectangle2.png
  6. BIN
      DivaBot/rectangle3.png
  7. BIN
      DivaBot/rectangle4.png
  8. 3
      DivaBot/src/sig/MyRobot.java
  9. 2
      DivaBot/src/sig/TypeFace2.java
  10. BIN
      DivaBot/testsuite/test74.jpg
  11. BIN
      DivaBot/typeface.png
  12. BIN
      Release/DivaBot/DivaBot/DivaBot.jar
  13. BIN
      Release/DivaBot/DivaBot/typeface.png
  14. BIN
      Release/DivaBot/DivaBot/typeface5.png
  15. BIN
      Release/DivaBot05D.zip

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

@ -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);

@ -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.

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

Loading…
Cancel
Save