This commit is contained in:
HuangHai
2026-01-18 13:44:51 +08:00
parent bdbc6f46d1
commit 6688daa446
9 changed files with 61 additions and 35 deletions

View File

@@ -62,8 +62,12 @@ async def run_capture_sequence(d, base_dir: str, pages: int = 5):
async def offline_validate(base_dir: str):
img_files = []
for name in os.listdir(base_dir):
if name.lower().endswith(".jpg"):
img_files.append(os.path.join(base_dir, name))
lower = name.lower()
if not lower.endswith(".jpg"):
continue
if "_flag" in lower or "_vl" in lower:
continue
img_files.append(os.path.join(base_dir, name))
img_files.sort()
if not img_files: