Skip to content

Take a screenshot and automatically search it with Google Lens. Built with Python.

Notifications You must be signed in to change notification settings

sauciucrazvan/screenshot-to-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot to Search

Badge Badge Badge Badge

  • Take a screenshot and automatically search it with Google Lens.

This is just a demonstration of a concept. Built in around ~8 hours. Written in Python with PyQt. Uses ImgBB as the image storing provider via their API.

Installation and Usage

  • Go to the releases tab and download the latest version.
  • Press CTRL+Shift+J wherever you are to take a screenshot. The search will automatically begin.
  • To exit of the screenshot state, press Escape while dragging the screenshot tool.

Snapshot

Structure

The project consists of two parts: a runner (that opens the app when the hotkeys are pressed) and the app itself.

The application lays under the bin folder. Should be "compiled" with PyInstaller.

--- Running the app locally

  • Clone the repository and install all the dependencies.
  • Make sure you've created the cred.py file under the application/services/ folder and filled it up with your API key.
def getApiKey():
    return "YOUR_API_KEY"
  • Run the screenshot-to-search.py script to start the runner. Close it with CTRL+C when needed.

Known bugs

  • Cancelling the screenshot action does not work while pressing ESC. Only works when dragging and pressing the key.
  • Multiple instances of the app can be opened at once
  • Can open another screenshot action on top of others

License

Feel free to fork, edit or do whatever you want with the source-code & application.