{"id":25131985,"url":"https://github.com/taleblou/searchtextinimages_winapp","last_synced_at":"2025-04-03T00:11:47.749Z","repository":{"id":272891339,"uuid":"918084027","full_name":"taleblou/SearchTextInImages_WinApp","owner":"taleblou","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-17T08:12:36.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T14:16:10.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taleblou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-01-17T08:11:27.000Z","updated_at":"2025-01-17T08:12:37.000Z","dependencies_parsed_at":"2025-01-17T09:22:27.782Z","dependency_job_id":"eafcd8e7-b0b5-43c8-bf34-3ac64a5dfb62","html_url":"https://github.com/taleblou/SearchTextInImages_WinApp","commit_stats":null,"previous_names":["taleblou/searchtextinimages_winapp"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleblou%2FSearchTextInImages_WinApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleblou%2FSearchTextInImages_WinApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleblou%2FSearchTextInImages_WinApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taleblou%2FSearchTextInImages_WinApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taleblou","download_url":"https://codeload.github.com/taleblou/SearchTextInImages_WinApp/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911471,"owners_count":20853657,"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":[],"created_at":"2025-02-08T14:16:14.330Z","updated_at":"2025-04-03T00:11:47.728Z","avatar_url":"https://github.com/taleblou.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SearchInImages\n\nThis application processes image files in a selected directory, extracts text using OCR (Optical Character Recognition), and searches for a specific keyword. The results are saved to a CSV file for further analysis.\n\n## Features\n- Select a folder containing image files (.png, .jpg, .jpeg).\n- Extract text from images using the Tesseract OCR engine.\n- Search for a specific keyword in the extracted text.\n- Save the results (including matching text and filenames) to a CSV file.\n- Progress updates via a status label and progress bar.\n\n## Requirements\n- [.NET Framework](https://dotnet.microsoft.com/)\n- [Tesseract OCR](https://github.com/tesseract-ocr/tesseract)\n- [CsvHelper](https://joshclose.github.io/CsvHelper/)\n\n## Getting Started\n\n### Prerequisites\n1. Download and install Tesseract OCR.\n   - Ensure the `tessdata` folder is available in the application directory.\n   - Include the necessary language data (e.g., `eng.traineddata` for English).\n2. Add the required NuGet packages:\n   - `Tesseract`\n   - `CsvHelper`\n\n### How to Run\n1. Clone or download the project to your local machine.\n2. Open the project in Visual Studio.\n3. Build the project to restore NuGet packages.\n4. Run the application.\n\n### Usage\n1. Click on the **Browse Folder** button to select a folder containing image files.\n2. Enter the keyword to search in the **Search Text** box.\n3. Click on the **Start Processing** button to begin processing images.\n4. Monitor progress in the status label and progress bar.\n5. After processing, results will be saved in a file named `output.csv` in the application's directory.\n\n## Code Overview\n\n### Main Components\n\n#### `btnBrowseFolder_Click`\n- Opens a folder browser dialog to select the directory containing images.\n- Updates the folder path in the UI.\n\n#### `btnStartProcessing_Click`\n- Validates the selected folder.\n- Initiates the background processing of images.\n\n#### `ProcessImages`\n- Loads images from the selected folder.\n- Processes each image using Tesseract OCR to extract text.\n- Searches for the specified keyword in the extracted text.\n- Updates the progress bar and status label.\n- Saves the results to a CSV file.\n\n#### `SaveResultsToCSV`\n- Writes the list of results to a CSV file using CsvHelper.\n\n### Error Handling\n- Errors during image processing are displayed in a message box and logged for debugging.\n\n## Example Output\nThe `output.csv` file contains the following columns:\n- `Filename`: Name of the processed image file.\n- `MatchingText`: The keyword that matched the extracted text.\n- `ExtractedText`: The full text extracted from the image.\n\n## Limitations\n- The application currently supports `.png`, `.jpg`, and `.jpeg` files.\n- Tesseract OCR may require fine-tuning for better accuracy with non-standard fonts or noisy images.\n\n## Contributing\nContributions, bug reports, and feature requests are welcome! Feel free to fork the repository and create a pull request.\n\n## License\nThis project is licensed under the MIT License. See the `LICENSE` file for details.\n\n## Acknowledgments\n- [Tesseract OCR](https://github.com/tesseract-ocr/tesseract)\n- [CsvHelper](https://joshclose.github.io/CsvHelper/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaleblou%2Fsearchtextinimages_winapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaleblou%2Fsearchtextinimages_winapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaleblou%2Fsearchtextinimages_winapp/lists"}