Add build, deploy and test sources
This commit is contained in:
1 parent
b962581812
commit
3d1a08f230
259 files changed
+15273
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
python3 - <<'EOF'
|
||||
from PIL import Image
|
||||
import numpy as np
|
||||
|
||||
for name, path in (('x86-1','/mnt/f/efi/Boot/1x86.bmp'), ('x86-2','/mnt/f/efi/Boot/2x86.bmp')):
|
||||
im = Image.open(path).convert('RGB'); a = np.array(im).astype(int)
|
||||
print('==', name, im.size)
|
||||
for y in range(470, 512, 4):
|
||||
row = a[y]
|
||||
# не-фон (фон ~233,233,233)
|
||||
nb = np.where(np.abs(row - np.array([233,233,233])).sum(axis=1) > 30)[0]
|
||||
if len(nb):
|
||||
print(f' y={y}: x {nb.min()}..{nb.max()} ({len(nb)} px)')
|
||||
EOF
|
||||
Reference in new issue
Block a user