The Screen to Text Chrome Extension is a simple yet powerful tool that allows users to capture screenshots of their screens and convert the captured images into text. With this extension, users can easily extract text from images and save time on manual transcription or typing.
- Screen Capture: The extension provides a user-friendly interface for capturing screenshots of the user's screen. Users can capture either the entire screen or a specific region.
- Image-to-Text Conversion: After capturing a screenshot, the extension utilizes Tesseract (OCR) to extract text from the image. This process is quick and efficient, enabling users to obtain text content almost instantly.
- Text Output: Once the text has been extracted, it is automatically copied to the users clipboard
- Customization Options: The extension can customizable settings to enhance the user experience. If you want to include multiple language OCR Tesseract provides that but inorder to keep it simple i've maintained the scope to only english.
- Privacy and Security: The extension prioritizes user privacy. All screenshots are temporarily saved using chrome's storage or they might be stored in clipboard if the user so chooses. The images are wiped after one OCR operation if the user doesn't explicitly asks to save them.
I was getting annoyed while doing a survey which did not allow for specific words to be copied (I am a non english speaker so i have to google certain words to know their meanings :D) so this extension helped me get through that problem. I have made no intellectual contribution to the tesseract model, i have merely peiced different things to make this extension. I also am aware of possibility of using this for online quizzess and stuff, to counter that, the tabs in which the website doesn't allow for copying I have prohibited. I do not condone using this for any malicious practices.
To use the Image to Text Chrome Extension, follow these steps:
- Clone this repository to your local machine using the command:
git clone https://github.com/ahmedHanzala/chrome-ocr.git - In Google Chrome, navigate to chrome://extensions/ (or go to the menu > More Tools > Extensions).
- Enable the Developer mode (usually located in the top right corner).
- Click on the "Load unpacked" button.
- Select the folder where you cloned the repository (the folder containing the extension files).
- The extension should now be installed and visible in the extensions list.
- Click on the extension icon in the Chrome toolbar to capture a screenshot and convert it to text.
This code has been sitting with me for a year now and i kept forgetting to make a repo of this. Contributions to the Extension are welcome! If you have any ideas, bug reports, or feature requests, please submit them as issues or create a pull request on the GitHub repository.
The Screen to Text Chrome Extension is licensed under the MIT License. See the LICENSE file for more details.
