A lightweight Python tool to capture a screen region anywhere on OS and open it directly in Google Lens.
- Shows a full-screen snipping overlay.
- Lets you drag to select a capture area.
- Saves the selection as a temporary JPEG.
- Opens your browser and posts the image to Google Lens.
- Python 3.10+ (tested with Python 3.14)
tkinter- Pillow
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txtpython main.py- Drag to select the region.
- Release mouse button.
- Press
Escto cancel.
main.py: app entry pointscreen_sniper.py: snipping UI and capture logiclens_bridge.py: browser handoff and Google Lens uploadrequirements.txt: Python dependencies
- Install AutoHotkey v2.0
- Create a new file
lens.ahk - Add the following code to
lens.ahk:
#Requires AutoHotkey v2.0
F8::
{
Run 'pythonw "C:\Users\your_username\lens\main.py"', , 'Hide'
}Change your_username and F8 to your actual username and hotkey.
- The tool relies on the current Google Lens upload endpoint and browser behavior, which may change over time.
- Temporary files are created during execution (captured image and handoff HTML).