Skip to content

afrianluthfan/ai-assisted-snippingtool-ocr-text-summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI-Assisted SnippingTool OCR Text Summarizer

About

This is a program that can summarize any texts you can screenshot using Microsoft's Snipping Tool with the help of Google's Gemini. I made this cos i was bored lol also dont mind the long name, i suck at naming things. Should've probably consulted with an AI chatbot for a name in hindsight smh

Requirements

Instructions

  1. Clone this project into your local machine

  2. Open up powershell/command prompt inside of the newly cloned folder

  3. Initialize it by running

    python -m venv venv

  4. Activate the virtual environment by running

    venv\Scripts\activate

  5. Install all of the requirements by running

    pip install -r requirements.txt

  6. Get tesseract here

  7. Install it (preferably in C:\Program Files\)

  8. Add Tesseract to your path in Environment Variables (refer to here if you don't know how to do it)

  9. Set the GEMINI_API_KEY variable in your local machine for your Gemini API Key with Powershell/Command Prompt by running

    $Env:GEMINI_API_KEY= "(YOUR GEMINI API KEY GOES HERE)"

    e.g., $Env:GEMINI_API_KEY = "qwertyuiop-asdf_fghjkl"

  10. Win+Shift+S to take a screeshot using Snipping Tool and then run the program.

  11. The output is then printed onto the console