All texts now with labels

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2, Sig, Sigo 2 years ago
parent 051558292f
commit 2d02b81d12
  1. 83
      readers/SoundVoltexReader.java
  2. BIN
      result.png

@ -44,23 +44,24 @@ public class SoundVoltexReader extends Reader{
extraRegions.add(new Box(753,1197,150,16)); //effective rate text[0]
extraRegions.add(new Box(499,1238,78,23)); //early error text[1]
extraRegions.add(new Box(499,1268,78,23)); //early near text[2]
extraRegions.add(new Box(499,1300,93,23)); //early critical text[3]
extraRegions.add(new Box(499,1332,108,23)); //s-critical text[4]
extraRegions.add(new Box(499,1362,93,23)); //late critical text[5]
extraRegions.add(new Box(499,1393,78,23)); //late near text[6]
extraRegions.add(new Box(499,1424,78,23)); //late error text[7]
extraRegions.add(new Box(62,1230,119,24)); //s-critical extra text[8]
extraRegions.add(new Box(62,1262,119,24)); //critical extra text[9]
extraRegions.add(new Box(62,1294,119,24)); //near extra text[10]
extraRegions.add(new Box(62,1325,119,24)); //error extra text[11]
extraRegions.add(new Box(62,1230,119,24)); //s-critical extra text[12]
extraRegions.add(new Box(62,1325,119,24)); //error extra text[13]
extraRegions.add(new Box(62,1230,119,24)); //s-critical extra text[14]
extraRegions.add(new Box(62,1325,119,24)); //error extra text[15]
extraRegions.add(new Box(71,1365,171,22)); //maximum chain text[16]
extraRegions.add(new Box(531,1152,75,16)); //EX Score text[0]
extraRegions.add(new Box(753,1197,150,16)); //effective rate text[1]
extraRegions.add(new Box(499,1238,78,23)); //early error text[2]
extraRegions.add(new Box(499,1268,78,23)); //early near text[3]
extraRegions.add(new Box(499,1300,93,23)); //early critical text[4]
extraRegions.add(new Box(499,1332,108,23)); //s-critical text[5]
extraRegions.add(new Box(499,1362,93,23)); //late critical text[6]
extraRegions.add(new Box(499,1393,78,23)); //late near text[7]
extraRegions.add(new Box(499,1424,78,23)); //late error text[8]
extraRegions.add(new Box(62,1230,119,24)); //s-critical extra text[9]
extraRegions.add(new Box(62,1262,119,24)); //critical extra text[10]
extraRegions.add(new Box(62,1294,119,24)); //near extra text[11]
extraRegions.add(new Box(62,1325,119,24)); //error extra text[12]
extraRegions.add(new Box(62,1230,119,24)); //s-critical extra text[13]
extraRegions.add(new Box(62,1325,119,24)); //error extra text[14]
extraRegions.add(new Box(62,1230,119,24)); //s-critical extra text[15]
extraRegions.add(new Box(62,1325,119,24)); //error extra text[16]
extraRegions.add(new Box(71,1365,171,22)); //maximum chain text[17]
}
void seek(int[]arr,int i,ColorRange SEEKCOLOR,Color FINALCOLOR,int width) {
@ -184,6 +185,24 @@ public class SoundVoltexReader extends Reader{
}
}
}break;
case 400:
{
final ColorRange TARGETCOLOR = new ColorRange(200,255,150,255,0,50);
final ColorRange SEEKINGCOLOR = new ColorRange(100,255,60,255,0,50);
final Color FINALCOLOR = Color.MAGENTA;
for (int i=0;i<arr.length;i++) {
Color col = new Color(arr[i],true);
if (TARGETCOLOR.colorInRange(col)) {
seek(arr,i,SEEKINGCOLOR,FINALCOLOR,width);
}
}
for (int i=0;i<arr.length;i++) {
Color col = new Color(arr[i],true);
if (!col.equals(Color.MAGENTA)) {
arr[i]=TRANSPARENT;
}
}
}break;
case 401:
{
final ColorRange TARGETCOLOR = new ColorRange(0,60,0,100,0,100);
@ -268,6 +287,24 @@ public class SoundVoltexReader extends Reader{
}
}
}break;
case 417:
{
final ColorRange TARGETCOLOR = new ColorRange(230,255,230,255,230,255);
final ColorRange SEEKINGCOLOR = new ColorRange(120,255,120,255,120,255);
final Color FINALCOLOR = Color.MAGENTA;
for (int i=0;i<arr.length;i++) {
Color col = new Color(arr[i],true);
if (TARGETCOLOR.colorInRange(col)) {
seek(arr,i,SEEKINGCOLOR,FINALCOLOR,width);
}
}
for (int i=0;i<arr.length;i++) {
Color col = new Color(arr[i],true);
if (!col.equals(Color.MAGENTA)) {
arr[i]=TRANSPARENT;
}
}
}break;
}
}
@ -339,17 +376,17 @@ public class SoundVoltexReader extends Reader{
}
}
}
if (i>=4&&i<=20) {
int[] arr2 = originalImg.getRGB(extraRegions.get(i-4).x, extraRegions.get(i-4).y, extraRegions.get(i-4).w, extraRegions.get(i-4).h, null, 0, extraRegions.get(i-4).w);
if (i>=3&&i<=20) {
int[] arr2 = originalImg.getRGB(extraRegions.get(i-3).x, extraRegions.get(i-3).y, extraRegions.get(i-3).w, extraRegions.get(i-3).h, null, 0, extraRegions.get(i-3).w);
int rightMost=0;
ColorFilter(arr2,400+i-4,extraRegions.get(i-4).w);
ColorFilter(arr2,400+i-3,extraRegions.get(i-3).w);
for (int j=0;j<arr2.length;j++) {
if (arr2[j]==Color.MAGENTA.getRGB()&&j%extraRegions.get(i-4).w>rightMost) {
rightMost=j%extraRegions.get(i-4).w;
if (arr2[j]==Color.MAGENTA.getRGB()&&j%extraRegions.get(i-3).w>rightMost) {
rightMost=j%extraRegions.get(i-3).w;
}
}
//cutImg.setRGB(rightMost-leftMost,currentHeight,readRegions.get(i).w,readRegions.get(i).h,arr,0,readRegions.get(i).w);
cutImg.setRGB(0,currentHeight,extraRegions.get(i-4).w,extraRegions.get(i-4).h,arr2,0,extraRegions.get(i-4).w);
cutImg.setRGB(0,currentHeight,extraRegions.get(i-3).w,extraRegions.get(i-3).h,arr2,0,extraRegions.get(i-3).w);
final int PADDING = 4;
for (int x=leftMost;x<readRegions.get(i).w;x++) {
for (int y=0;y<readRegions.get(i).h;y++) {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Loading…
Cancel
Save