From 323f10b52dc3289e946315b518a041eeee879d90 Mon Sep 17 00:00:00 2001 From: "sigonasr2, Sig, Sigo" Date: Thu, 4 Aug 2022 15:45:14 +0000 Subject: [PATCH] Include current stage. --- ArcadeReader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ArcadeReader.java b/ArcadeReader.java index aabcd34..3238b33 100644 --- a/ArcadeReader.java +++ b/ArcadeReader.java @@ -41,7 +41,7 @@ public class ArcadeReader { } g.clearRect(0, 0, 128, 128); g.drawImage(input,-leftMost,-topMost,null); - ImageIO.write(img,"png",new File("result.png")); + //ImageIO.write(img,"png",new File("result.png")); char maxSimilarity='\0'; int maxSimilarityScore=0; @@ -174,8 +174,9 @@ public class ArcadeReader { BufferedImage input = (BufferedImage)ImageIO.read(new File("test.png")); for (int s1=0;s1<10;s1++) { for (int s2=0;s2<10;s2++) { - for (int s3=-9;s3<1;s3++) { + for (int s3=-6;s3<1;s3++) { for (int s4=-9;s4<1;s4++) { + System.out.println("Trying ("+s1+"/"+s2+"/"+s3+"/"+s4+"):"); char closest = getClosestCharacter(character,pixelData,input,s1,s2,s3,s4); if (closest=='ホ') { System.out.println("\n Got ホ using params: "+s1+"/"+s2+"/"+s3+"/"+s4+"\n");