Skip to content

With this extension, users can easily extract text from images and save time on manual transcription or typing. this was built for my personal use

License

Notifications You must be signed in to change notification settings

ahmedHanzala/chrome-ocr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image to Text Chrome Extension

MIT License

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.

Key Features

  • 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.

Motivation

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.

Usage

To use the Image to Text Chrome Extension, follow these steps:

  1. Clone this repository to your local machine using the command: git clone https://github.com/ahmedHanzala/chrome-ocr.git
  2. In Google Chrome, navigate to chrome://extensions/ (or go to the menu > More Tools > Extensions).
  3. Enable the Developer mode (usually located in the top right corner).
  4. Click on the "Load unpacked" button.
  5. Select the folder where you cloned the repository (the folder containing the extension files).
  6. The extension should now be installed and visible in the extensions list.
  7. Click on the extension icon in the Chrome toolbar to capture a screenshot and convert it to text.

How To Use

Step 1: Click on the extension

Usage Example 1

Step 2: Select Area you want to OCR

Usage Example 2

Step 3: You can either Copy image using "copy" or Copy Text (OCR) using "Copy Text" button

Usage Example 3

Step 4: Copied to clipboard

Usage Example 4

Contributing

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.

License

The Screen to Text Chrome Extension is licensed under the MIT License. See the LICENSE file for more details.

About

With this extension, users can easily extract text from images and save time on manual transcription or typing. this was built for my personal use

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published