-
-
Notifications
You must be signed in to change notification settings - Fork 6
Features Screenshots
Tuck edited this page Jun 28, 2026
·
3 revisions
Capture screenshots, analyze with OCR, compare images, and pick colors.
Note: The canonical documentation for screenshots is in screenshot.md (includes OCR, diff, region watching). Color picking is documented in color_picker.md. This page is a convenience alias.
deskbrid screenshot
deskbrid screenshot --output screenshot.png
deskbrid screenshot --monitor 1Response:
{
"type": "response",
"status": "ok",
"data": {
"path": "/tmp/deskbrid_screenshot_20240115_103000.png"
}
}Protocol:
{"type": "screenshot", "monitor": 0}Python:
path = client.screenshot()
print(f"Saved to {path.path}")deskbrid screenshot --region --x 100 --y 100 --width 800 --height 600Protocol:
{
"type": "screenshot",
"region": {"x": 100, "y": 100, "width": 800, "height": 600}
}deskbrid screenshot --window 12345678Protocol:
{"type": "screenshot", "window_id": "12345678"}Requires Tesseract OCR:
# Debian/Ubuntu
sudo apt install tesseract-ocr
# Arch
sudo pacman -S tesseractdeskbrid screenshot ocrResponse:
{
"type": "response",
"status": "ok",
"data": {
"text": "Hello, world!\nThis is some text.",
"lines": [
{"text": "Hello, world!", "bbox": [10, 20, 150, 40]},
{"text": "This is some text.", "bbox": [10, 50, 200, 70]}
],
"confidence": 98.5
}
}Protocol:
{"type": "screenshot.ocr", "bounding_boxes": false}deskbrid screenshot ocr --bounding-boxesResponse:
{
"text": "Error: file not found",
"lines": [
{
"text": "Error: file not found",
"bbox": [50, 100, 250, 120]
}
],
"bounding_boxes": [[50, 100, 250, 120]]
}deskbrid screenshot ocr --region --x 100 --y 100 --width 800 --height 600Protocol:
{
"type": "screenshot.ocr",
"region": {"x": 100, "y": 100, "width": 800, "height": 600},
"language": "eng"
}# Install language data
sudo apt install tesseract-ocr-fra # French
sudo apt install tesseract-ocr-deu # German
sudo apt install tesseract-ocr-chi-sim # Chinese (Simplified)
# Use specific language
deskbrid screenshot ocr --language eng+fradeskbrid screenshot ocr --psm 6 # Assume single uniform block
deskbrid screenshot ocr --psm 7 # Treat as single text line
deskbrid screenshot ocr --psm 8 # Treat as single wordPSM values:
-
3- Auto (default) -
6- Uniform block of text -
7- Single text line -
8- Single word -
13- Raw line
Python:
# Basic OCR
result = client.screenshot_ocr()
print(result["text"])
# OCR with region
result = client.screenshot_ocr(
region={"x": 100, "y": 100, "width": 800, "height": 600},
language="eng"
)Compare two screenshots to detect changes.
deskbrid screenshot diff --before /tmp/before.png --after /tmp/after.pngResponse:
{
"type": "response",
"status": "ok",
"data": {
"identical": false,
"diff_pixels": 1250,
"total_pixels": 2073600,
"diff_percentage": 0.06
}
}Protocol:
{
"type": "screenshot.diff",
"before_path": "/tmp/before.png",
"after_path": "/tmp/after.png",
"tolerance": 0,
"save_diff": true,
"diff_path": "/tmp/diff.png"
}Set tolerance for pixel differences:
deskbrid screenshot diff --before before.png --after after.png --tolerance 5A tolerance of 5 means pixels differing by less than 5 RGB points are considered identical.
Get color at specific coordinates:
deskbrid color pick --x 100 --y 200Response:
{
"type": "response",
"status": "ok",
"data": {
"rgb": [123, 45, 67],
"hex": "#7b2d43"
}
}Protocol:
{"type": "color.pick", "x": 100, "y": 200}Python:
# Get color
color = client.color_pick(x=100, y=200)
print(color["hex"]) # "#7b2d43"→ {"type": "screenshot.ocr", "region": {"x": 0, "y": 0, "width": 1920, "height": 1080}}
← {"type": "response", "status": "ok", "data": {"text": "Build succeeded"}}
→ {"type": "screenshot.diff", "before_path": "/tmp/prev.png", "after_path": "/tmp/curr.png"}
← {"type": "response", "status": "ok", "data": {"identical": true}}- Accessibility
- Apps
- Audio
- Backlight (LED driver)
- Bluetooth
- Clipboard
- Color Picker
- Desktop Portal
- Desktop Settings
- Files
- Hotkeys
- Input
- Keyboard Layouts
- Media (MPRIS)
- Monitors
- Network
- Notifications
- Print (CUPS)
- Screenshots
- Screen Recording
- Screencast
- Self-Update
- System
- System Tray
- Systemd Units & Timers
- Terminals (PTY)
- Windows & Workspaces