{"id":26446515,"url":"https://github.com/reality361/opencv-image-correction","last_synced_at":"2026-04-30T19:31:20.529Z","repository":{"id":282297826,"uuid":"948123958","full_name":"Reality361/opencv-image-correction","owner":"Reality361","description":"📄 OpenCV Image Correction for Documents","archived":false,"fork":false,"pushed_at":"2025-03-13T19:44:22.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T20:35:46.369Z","etag":null,"topics":["cpp","opencv"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Reality361.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-13T19:39:58.000Z","updated_at":"2025-03-13T19:59:24.000Z","dependencies_parsed_at":"2025-03-13T20:46:23.247Z","dependency_job_id":null,"html_url":"https://github.com/Reality361/opencv-image-correction","commit_stats":null,"previous_names":["reality361/opencv-image-correction"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reality361%2Fopencv-image-correction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reality361%2Fopencv-image-correction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reality361%2Fopencv-image-correction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reality361%2Fopencv-image-correction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Reality361","download_url":"https://codeload.github.com/Reality361/opencv-image-correction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244217950,"owners_count":20417677,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","opencv"],"created_at":"2025-03-18T12:18:02.357Z","updated_at":"2026-04-30T19:31:20.484Z","avatar_url":"https://github.com/Reality361.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📄 OpenCV Image Correction for Documents\n\n## ✨ Overview\n**OpenCV Image Correction** is a C++ project designed to automatically detect and correct skewed or distorted document images. This project leverages OpenCV to detect quadrilateral regions (such as documents) and warp them into a properly aligned view.\n\n## 🚀 Features\n✅ **Automatic Document Detection** - Detects quadrilateral shapes in an image and corrects perspective.\n✅ **Edge Detection** - Uses OpenCV to detect edges and find the document boundaries.\n✅ **Camera \u0026 Image Input Support** - Works with both pre-captured images and live camera feed.\n✅ **Real-Time Processing** - Processes and displays corrected document images in real time.\n\n## 🏗️ Project Structure\n```\n📂 opencv-image-correction\n ├── 📄 main.cpp          # Main entry point of the project\n ├── 📄 QuadDetector.hpp  # Header file for quadrilateral detection and processing\n ├── 📄 README.md         # Project documentation\n```\n\n## 🔧 Installation \u0026 Setup\n### Prerequisites\nMake sure you have the following installed on your system:\n- **C++ Compiler (g++)**\n- **OpenCV (\u003e=4.0.0)**\n- **CMake**\n\n### Build Instructions\n1. Clone this repository:\n   ```sh\n   git clone https://github.com/Reality361/opencv-image-correction.git\n   cd opencv-image-correction\n   ```\n2. Create a build directory and compile the project:\n   ```sh\n   mkdir build \u0026\u0026 cd build\n   cmake ..\n   make\n   ```\n3. Run the application:\n   ```sh\n   ./DocumentImageCorrection \u003cimage_path\u003e\n   ```\n   OR\n   ```sh\n   ./DocumentImageCorrection  # Runs in camera mode\n   ```\n\n## 📸 Usage\n- If you provide an **image file path**, the program will detect and correct the document in that image.\n- If **no arguments** are given, the program will open the default camera and process document images in real time.\n- Press `q` or `ESC` to exit in camera mode.\n\n## 🖼️ Example Output\nOriginal Image     /     Corrected Image\n---\n![158a6c56b30fa72266e72dc111b6d2b](https://github.com/user-attachments/assets/0932dbac-d544-4174-8a0f-9c111c3c4ff1)\n\n\n## 🛠️ Technologies Used\n- **C++** - Core language\n- **OpenCV** - Image processing\n- **CMake** - Build system\n\n## 👥 Contributors\n- **Reality361** - [GitHub](https://github.com/Reality361)\n- Contributions welcome! Feel free to submit pull requests.\n\n## 📜 License\nThis project is licensed under the **MIT License**.\n\n---\nGive this repository a ⭐ if you found it helpful!\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freality361%2Fopencv-image-correction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freality361%2Fopencv-image-correction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freality361%2Fopencv-image-correction/lists"}