How iansan5653/open-mcr works
• User Interface Layer – Since there are separate entry points for both CLI (src/main.py) and GUI (src/main_gui.py), this should be depicted as a single “User Interface” layer with branches for CLI and GUI.
• Utility Modules – Modules including file_handling.py, list_utils.py, str_utils.py, geometry_utils.py, and data_exporting.py provide essential utilities and helper functions. Represent these as a “Utility Library” that supports the Core Processing.
• Assets and Resources – The assets folder (with the multiple choice sheets and manual) and test directories (with various test cases simulating multiple exam variants) should be shown as data sources and testing frameworks that validate the system during development.
• External Dependencies – Include external libraries (e.g., OpenCV for image manipulation, Tkinter for the GUI, and possibly NumPy) and represent them as blocks illustrating integration points with the core modules.
Out Relationships and Data Flows
• Processing Flow – Show a pipeline where input data (such as scanned exam sheets) is received, preprocessed (using image_utils.py, grid_reading.py, etc.), then processed (corner_finding.py, math_utils.py, scoring.py, etc.), and finally output is generated or exported (data_exporting.py, file_handling.py).
Architectural Patterns and Design Principles
• Modular Design – Highlight that the project is split into several modular components (each module in the src directory handles a dedicated responsibility).
• Separation of Concerns – Emphasize the clear separation between user interface concerns, core processing logic, and utility functions.
• Test-Driven/Integration Approach – Indicate that there is an extensive setup for end-to-end tests (as seen in the test/end-to-end directory) which validates various scenarios (e.g., 150q, 75q variants, low resolution, rotation, etc.).
Additional Details
• If desired, add notes on how installation and deployment flow (like Windows executable installation vs. Running from Source) affect the usage scenario of the system.