# yousifhisham-tech/mylearninpython architecture

> Architecture diagram of the GitHub repository yousifhisham-tech/mylearninpython, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/yousifhisham-tech/mylearninpython
- Repository: https://github.com/yousifhisham-tech/mylearninpython

## Overview

The supplied tree does not match the README: it contains no listed notebooks, but does contain a small Fast API entry point, an OCR model loader, and Poppler headers. The visible materials therefore suggest an OCR-facing application alongside a bundled PDF library interface; the API-to-model workflow is not evidenced in the excerpts. The graph preserves the sampled Poppler modules and documented header relationships, but cannot establish how OCR requests are handled or how PDF processing is invoked.

Main entry points: [`OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler.h`](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler.h) (GLib API umbrella), [`OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Lexer.h`](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Lexer.h) (PDF lexer), [`OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/SplashTypes.h`](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/SplashTypes.h) (Raster types), [`OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Parser.h`](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Parser.h) (PDF parser)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["OCR Application"]
  node_api["Fast API entry<br/>[main.py]"]
  node_loader["Model loader<br/>[model_loader.py]"]
end

subgraph group_pdfcore["PDF Core"]
  node_parser["PDF parser<br/>[Parser.h]"]
  node_lexer["PDF lexer<br/>[Lexer.h]"]
  node_objects["PDF objects<br/>[Object.h]"]
  node_streams["PDF streams<br/>[Stream.h]"]
  node_char_types["Character types<br/>[CharTypes.h]"]
  node_fofi_base["Font parser base<br/>[FoFiBase.h]"]
  node_fofi_type1c["Type1C fonts<br/>[FoFiType1C.h]"]
  node_splash_types["Raster types<br/>[SplashTypes.h]"]
  node_splash["Raster drawing<br/>[Splash.h]"]
  node_splash_font["Raster fonts<br/>[SplashFontEngine.h]"]
end

subgraph group_interfaces["Poppler Interfaces"]
  node_cpp_global["C++ common API<br/>[poppler-global.h]"]
  node_cpp_font["C++ font API<br/>[poppler-font.h]"]
  node_glib_api["GLib API umbrella<br/>[poppler.h]"]
  node_glib_document["GLib documents<br/>[poppler-document.h]"]
  node_glib_annotations["GLib annotations<br/>[poppler-annot.h]"]
  node_glib_forms["GLib form fields"]
  node_glib_structure["GLib structure"]
end

node_user(("API caller"))

node_user -.->|"requests"| node_api
node_parser -->|"uses"| node_lexer
node_lexer -->|"references"| node_objects
node_lexer -->|"references"| node_streams
node_fofi_type1c -->|"inherits"| node_fofi_base
node_splash -->|"uses types"| node_splash_types
node_splash_font -->|"uses types"| node_splash_types
node_cpp_font -->|"uses API"| node_cpp_global
node_glib_api -->|"includes"| node_glib_document
node_glib_api -->|"includes"| node_glib_annotations
node_glib_api -->|"includes"| node_glib_forms
node_glib_api -->|"includes"| node_glib_structure

click node_api "https://github.com/yousifhisham-tech/mylearninpython/blob/main/Fast%20APIS/main.py"
click node_loader "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/model_loader.py"
click node_parser "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Parser.h"
click node_lexer "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Lexer.h"
click node_objects "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Object.h"
click node_streams "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Stream.h"
click node_char_types "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/CharTypes.h"
click node_fofi_base "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/fofi/FoFiBase.h"
click node_fofi_type1c "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/fofi/FoFiType1C.h"
click node_splash_types "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/SplashTypes.h"
click node_splash "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/Splash.h"
click node_splash_font "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/SplashFontEngine.h"
click node_cpp_global "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/cpp/poppler-global.h"
click node_cpp_font "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/cpp/poppler-font.h"
click node_glib_api "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler.h"
click node_glib_document "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-document.h"
click node_glib_annotations "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-annot.h"
click node_glib_forms "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-form-field.h"
click node_glib_structure "https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-structure-element.h"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_api,node_loader toneBlue
class node_parser,node_lexer,node_objects,node_streams,node_char_types,node_fofi_base,node_fofi_type1c,node_splash_types,node_splash,node_splash_font toneAmber
class node_cpp_global,node_cpp_font,node_glib_api,node_glib_document,node_glib_annotations,node_glib_forms,node_glib_structure,node_user toneMint
```

## Components

### OCR Application

- [Fast API entry](https://github.com/yousifhisham-tech/mylearninpython/blob/main/Fast%20APIS/main.py): `Fast APIS/main.py`
- [Model loader](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/model_loader.py): `OCR/model_loader.py`

### PDF Core

- [PDF parser](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Parser.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Parser.h`
- [PDF lexer](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Lexer.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Lexer.h`
- [PDF objects](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Object.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Object.h`
- [PDF streams](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Stream.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Stream.h`
- [Character types](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/CharTypes.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/CharTypes.h`
- [Font parser base](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/fofi/FoFiBase.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/fofi/FoFiBase.h`
- [Type1C fonts](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/fofi/FoFiType1C.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/fofi/FoFiType1C.h`
- [Raster types](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/SplashTypes.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/SplashTypes.h`
- [Raster drawing](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/Splash.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/Splash.h`
- [Raster fonts](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/SplashFontEngine.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/SplashFontEngine.h`

### Poppler Interfaces

- [C++ common API](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/cpp/poppler-global.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/cpp/poppler-global.h`
- [C++ font API](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/cpp/poppler-font.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/cpp/poppler-font.h`
- [GLib API umbrella](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler.h`
- [GLib documents](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-document.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-document.h`
- [GLib annotations](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-annot.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-annot.h`
- [GLib form fields](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-form-field.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-form-field.h`
- [GLib structure](https://github.com/yousifhisham-tech/mylearninpython/blob/main/OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-structure-element.h): `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler-structure-element.h`

### Other components

- **API caller**

## Connections

- API caller → Fast API entry: requests
- PDF parser → PDF lexer: uses (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Parser.h`)
- PDF lexer → PDF objects: references (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Lexer.h`)
- PDF lexer → PDF streams: references (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/Lexer.h`)
- Type1C fonts → Font parser base: inherits (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/fofi/FoFiType1C.h`)
- Raster drawing → Raster types: uses types (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/Splash.h`)
- Raster fonts → Raster types: uses types (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/splash/SplashFontEngine.h`)
- C++ font API → C++ common API: uses API (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/cpp/poppler-font.h`)
- GLib API umbrella → GLib documents: includes (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler.h`)
- GLib API umbrella → GLib annotations: includes (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler.h`)
- GLib API umbrella → GLib form fields: includes (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler.h`)
- GLib API umbrella → GLib structure: includes (evidence: `OCR/Release-26.02.0-0/poppler-26.02.0/Library/include/poppler/glib/poppler.h`)
