Folder restructure
This commit is contained in:
BIN
.gitignore
vendored
BIN
.gitignore
vendored
Binary file not shown.
Binary file not shown.
@@ -14,7 +14,7 @@ from pathlib import Path
|
|||||||
from typing import Optional, Tuple, List
|
from typing import Optional, Tuple, List
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from contextlib import contextmanager
|
from contextlib import contextmanager
|
||||||
from db_handler import DatabaseHandler, DatabaseError
|
from src.db_handler import DatabaseHandler, DatabaseError
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class QRData:
|
class QRData:
|
||||||
BIN
qr_codes.db
BIN
qr_codes.db
Binary file not shown.
4140
qr_detector.log
4140
qr_detector.log
File diff suppressed because it is too large
Load Diff
BIN
src/__pycache__/db_handler.cpython-313.pyc
Normal file
BIN
src/__pycache__/db_handler.cpython-313.pyc
Normal file
Binary file not shown.
BIN
src/qr_codes.db
Normal file
BIN
src/qr_codes.db
Normal file
Binary file not shown.
4218
src/qr_detector.log
Normal file
4218
src/qr_detector.log
Normal file
File diff suppressed because it is too large
Load Diff
@@ -23,7 +23,7 @@ class QRData:
|
|||||||
timestamp: float
|
timestamp: float
|
||||||
|
|
||||||
class QRDetector:
|
class QRDetector:
|
||||||
def __init__(self, config_path: str = 'config.yaml'):
|
def __init__(self, config_path: str = 'src/config.yaml'):
|
||||||
self.config = self.load_config(config_path)
|
self.config = self.load_config(config_path)
|
||||||
self.setup_logging()
|
self.setup_logging()
|
||||||
self.camera_id = self.config['camera']['id']
|
self.camera_id = self.config['camera']['id']
|
||||||
Reference in New Issue
Block a user