Initial commit

This commit is contained in:
2026-04-30 18:38:38 +03:00
commit 8d71819caf
20 changed files with 2134 additions and 0 deletions

10
services/recognizer.py Normal file
View File

@@ -0,0 +1,10 @@
import re
from typing import Optional
def recognize_pinpad_code(text: str) -> Optional[int]:
if not text:
return None
match = re.search(r"\b\d{3}\b", text)
return int(match.group()) if match else None