sd

┌───────────────┐ │ Start │ └───────┬───────┘ ↓ ┌──────────────────────────┐ │ Initialize Camera & APIs │ │ (OpenCV, Tesseract, │ │ OpenAI API) │ └────────┬─────────────────┘ ↓ ┌──────────────────────────┐ │ Capture Live Video Frame │ │ using Webcam (OpenCV) │ └────────┬─────────────────┘ ↓ ┌──────────────────────────┐ │ Multithreading Enabled │ │ (Video + OCR in parallel)│ └────────┬─────────────────┘ ↓ ┌──────────────────────────┐ │ Preprocess Frame │ │ (Crop / Resize if needed)│ └────────┬─────────────────┘ ↓ ┌──────────────────────────┐ │ Text Recognition (OCR) │ │ using Tesseract (LSTM) │ └────────┬─────────────────┘ ↓ ┌──────────────────────────┐ │ Draw Bounding Boxes │ │ on Detected Text │ └────────┬─────────────────┘ ↓ ┌──────────────────────────┐ │ Is 'c' key pressed? │ └───────┬─────────┬────────┘ │ No │ Yes │ ↓ │ ┌────────────────────┐ │ │ Capture Image Frame │ │ │ & Perform OCR │ │ └─────────┬──────────┘ │ ↓ │ ┌────────────────────┐ │ │ Send Text to │ │ │ OpenAI API │ │ └─────────┬──────────┘ │ ↓ │ ┌────────────────────┐ │ │ Text Enhancement │ │ │ (Summarize / Correct)│ │ └─────────┬──────────┘ │ ↓ └─────────────┘ ↓ ┌──────────────────────────┐ │ Display Output │ │ (Video + Extracted Text) │ └────────┬─────────────────┘ ↓ ┌──────────────────────────┐ │ End / Repeat │ └──────────────────────────┘

Pages