chore: Clean up and refactor codebase for improved maintainability

- Removed obsolete command-line test parameters from `run_cli.py` to streamline functionality.
- Introduced a new `ocr_preprocess.py` module for unified OCR image preprocessing, enhancing recognition stability.
- Updated various components to utilize the new preprocessing function, improving code organization and readability.
- Adjusted configuration values in `config.json` for better performance and consistency.
- Added comprehensive technical documentation for the Douyin project, detailing code modification standards and operational guidelines.
- Cleaned up excessive blank lines across multiple files to enhance overall readability.
This commit is contained in:
Your Name committed 2025-12-30 23:11:34 +08:00
1 parent efe6e2252f
commit 223c127e11
70 files changed
+17121 -1752

No files matched your search

+1 -1
View File
@@ -80,7 +80,7 @@ class DebugLogger:
if not self.enabled:
return
tb = traceback.format_exc()
line = format_debug_log("Exception", level="ERROR", exception=type(exc).__name__, message=str(exc), traceback=tb, context=context or {})
line = format_debug_log("Exception", level="ERROR", exception=type(exc).__name__, traceback=tb, context=context or {})
_debug_logger.error(line)
_err.log_exception(exc, context=context)