# reigns21s062/computer_vision architecture

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

- Interactive diagram: https://gitdiagram.com/reigns21s062/computer_vision
- Repository: https://github.com/reigns21s062/computer_vision

## Overview

##### Main Components
- Input: Images containing signboards and text.
- Object Detection Module: Uses YOLOv5 to locate and classify signboards (both Hindi and English).
- Recognition Module: Performs OCR using a hybrid CNN-RNN pipeline.
- CNN Component – InceptionV3 for feature extraction.
- RNN Component – GRU for sequential character prediction.
- (Optional) Pre-processing/Post-processing: Implied data cleaning, image normalization, and result aggregation layers (even if only mentioned in notebooks).

##### Relationships and Data Flow
- InceptionV3 (for extracting visual features)
- GRU (for parsing the sequential features into recognized text).
- Finally, lead to an “Output” component, which represents the recognized text.

##### Architectural Patterns and Technologies
- That YOLOv5 is handling object detection, a key component that isolates signboards in the images.
- That the recognition pipeline is modular and relies on deep learning components: CNN (InceptionV3) for image feature extraction and RNN (GRU) for sequence modeling.

##### Overall Structure
- On one branch, the detection pipeline (YOLOv5) extracts and classifies text areas.
- On the second branch, the recognition pipeline applies the CNN-RNN model (with InceptionV3 and GRU) to perform OCR on the cropped areas.
- Finally, both pipelines converge into the final output, which could be a consolidated view of recognized text information and detected signboard classifications.

## Diagram (Mermaid)

```mermaid
graph TD
    A["Image Input"]:::input
    A -->|"Image&RegionProposals"| B["Object Detection – YOLOv5"]:::module
    B -->|"DetectedRegions"| C["Cropping/Pre-processing"]:::process
    C -->|"ProcessedRegions"| D["Feature Extraction – InceptionV3"]:::module
    D -->|"ExtractedFeatures"| E["Sequence Modeling – GRU"]:::module
    E -->|"RecognizedText"| F["OCR Output"]:::output
    F -->|"AggregatedResults"| G["Documentation"]:::doc

    click B "https://github.com/reigns21s062/computer_vision/blob/main/Detection.ipynb"
    click D "https://github.com/reigns21s062/computer_vision/blob/main/Recognition.ipynb"
    click G "https://github.com/reigns21s062/computer_vision/blob/main/README.md"

    classDef input fill:#B3E5FC,stroke:#01579B,stroke-width:2px,color:#000;
    classDef module fill:#C8E6C9,stroke:#2E7D32,stroke-width:2px,color:#000;
    classDef process fill:#FFF9C4,stroke:#FBC02D,stroke-width:2px,color:#000;
    classDef output fill:#FFCCBC,stroke:#E64A19,stroke-width:2px,color:#000;
    classDef doc fill:#E1BEE7,stroke:#8E24AA,stroke-width:2px,color:#000;
```
