# omerkocadayi/python_goruntu_isleme architecture

> Architecture diagram of the GitHub repository omerkocadayi/python_goruntu_isleme, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-03-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/omerkocadayi/python_goruntu_isleme
- Repository: https://github.com/omerkocadayi/python_goruntu_isleme

## Overview

##### Main components
- Script Modules: At the top level you have many individual Python scripts (e.g., “01_Resim_Acma_Okuma_Yazma.py”, “02_BGR_Mantigi_3ve2_Boyut_Farklari.py”, etc.) that serve as self-contained demos of image processing techniques.
- Ek_Uygulamalar Directory: An additional set of example applications that extend the techniques demonstrated in the main scripts.
- Haarcascade Directory: Contains various XML (and one text) files used for object/facial detection algorithms. These are essentially the trained models that enable the detection tasks.
- Media Directories: There are two media directories (one top-level and one inside Ek_Uygulamalar) that provide sample images and videos used as inputs.
- Configuration Files: Git ignore, license, and README provide supporting documentation and project management data.

##### Mapping out relationships and flow
- Input Layer: Represent the media files (images/videos) as the entry point for each example. Also note the potential for real-time video capture in some demos.
- Processing/Function Layer: Each Python script (or group of similar examples) should be grouped into categories:
- Basic Image I/O and Manipulation (e.g., reading, writing, pixel operations).
- Filtering and Morphological Operations.
- Edge Detection, Hough Transforms, and other advanced techniques.
- Object/Face/Eye detection and tracking using Haar cascades.
- Model/Dependency Layer: The Haarcascade files are used by the detection modules. Also, note that these examples likely rely on libraries such as OpenCV.
- Output Layer: Shows processed images/videos and sometimes real-time display windows – essentially the results of the applied algorithms.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Input Layer
    subgraph "Input Layer"
        MediaInput["Media Input Resources"]:::input
        SupplementMedia["Supplementary Media (Ek Uygulamalar)"]:::input
    end

    %% Processing Modules
    subgraph "Processing Modules"
        ScriptMod["Script Modules"]:::process
        EkUyg["Ek Uygulamalar"]:::process
    end

    %% Dependencies
    subgraph "Dependencies"
        Haarcascade["Haarcascade Models"]:::dependency
        OpenCV["OpenCV Library"]:::dependency
    end

    %% Output Layer
    subgraph "Output Layer"
        Output["Processed Output/Display"]:::output
    end

    %% Configuration and Documentation
    Config["Configuration & Documentation Files"]:::doc

    %% Connections from Input Layer to Processing Modules
    MediaInput -->|"feeds"| ScriptMod
    MediaInput -->|"feeds"| EkUyg
    SupplementMedia -->|"feeds"| EkUyg

    %% Processing Modules to Output
    ScriptMod -->|"produces"| Output
    EkUyg -->|"produces"| Output

    %% Dependencies used by Processing Modules
    ScriptMod -->|"uses"| Haarcascade
    EkUyg -->|"uses"| Haarcascade
    OpenCV -->|"dependency"| ScriptMod
    OpenCV -->|"dependency"| EkUyg

    %% Click Events for Component Mapping
    click ScriptMod "https://github.com/omerkocadayi/python_goruntu_isleme/blob/master/01_Resim_Acma_Okuma_Yazma.py"
    click EkUyg "https://github.com/omerkocadayi/python_goruntu_isleme/tree/master/Ek_Uygulamalar"
    click Haarcascade "https://github.com/omerkocadayi/python_goruntu_isleme/tree/master/haarcascade"
    click MediaInput "https://github.com/omerkocadayi/python_goruntu_isleme/tree/master/media"
    click SupplementMedia "https://github.com/omerkocadayi/python_goruntu_isleme/tree/master/Ek_Uygulamalar/media"
    click Config "https://github.com/omerkocadayi/python_goruntu_isleme/blob/master/.gitignore"

    %% Style Definitions
    classDef input fill:#BBDEFB,stroke:#1E88E5,stroke-width:2px;
    classDef process fill:#C8E6C9,stroke:#43A047,stroke-width:2px;
    classDef dependency fill:#FFCC80,stroke:#FB8C00,stroke-width:2px;
    classDef output fill:#D1C4E9,stroke:#7E57C2,stroke-width:2px;
    classDef doc fill:#EEEEEE,stroke:#757575,stroke-width:2px;
```
