from PIL import Image

img = Image.open("captures/20260914_001015_728_ENDGAME_TAB_CLICKED.png")
# Crop the tab area between y=40 to y=90, x=1300 to x=1700
crop = img.crop((1300, 40, 1700, 90))
crop.save("captures/tabs_crop.png")
print("Saved tabs_crop.png")

# Scan brightness in that area
for x in range(1450, 1650, 10):
    for y in range(50, 80, 5):
        r, g, b = img.getpixel((x, y))[:3]
        if r > 180 and g > 150: # bright text or border
            print(f"Bright pixel at ({x}, {y}): RGB=({r},{g},{b})")
