Ring code: bean keeps its shape during the wipe; 0.7 and 0.8 s intervals; wipe as long as at 1 s from 0.8 s
This commit is contained in:
+5
-3
@@ -1,7 +1,7 @@
|
||||
"""ring code bench: renders codes with perspective, blur, washed contrast and clutter in headless chrome,
|
||||
runs the real decoder and prints read rates. usage: uv run python tools/ringbench.py [trials per cell]
|
||||
env: SUITE=legacy,far,seq,neg (default all) PIPES=legacy,cap960,scan DIAG=legacy|native FAR_D=80,100 NEG=300
|
||||
CPU=6 (slow phone) V1=1 (decoder and dash design from before the far-reading work, the baseline)"""
|
||||
IV=700 FADE_K=0.3 (sequence code interval and wipe share) CPU=6 (slow phone) V1=1 (decoder and dash design from before the far-reading work, the baseline)"""
|
||||
import asyncio
|
||||
import base64
|
||||
import collections
|
||||
@@ -101,8 +101,10 @@ def seqs(n):
|
||||
for d, contrast, fps in itertools.product([60, 70, 80, 100, 120, 150], [0.45, 0.3], [15, 7]):
|
||||
for _ in range(n):
|
||||
s = camera(r, d, contrast, r.choice([0.7, 1.5]), 1920)
|
||||
s.update(tilt=r.choice([0, 10, 20]), fps=fps, secs=6, interval=500, shake=r.uniform(0.3, 1.2),
|
||||
tokens=[code(r) for _ in range(14)], t0=r.randrange(1 << 20) * 500 + r.uniform(0, 400))
|
||||
iv = int(os.environ.get("IV", "500"))
|
||||
s.update(tilt=r.choice([0, 10, 20]), fps=fps, secs=6, interval=iv, shake=r.uniform(0.3, 1.2),
|
||||
fadeK=float(os.environ.get("FADE_K", "0.25")),
|
||||
tokens=[code(r) for _ in range(14)], t0=r.randrange(1 << 20) * iv + r.uniform(0, iv * 0.8))
|
||||
out.append(s)
|
||||
return out
|
||||
|
||||
|
||||
Reference in New Issue
Block a user