Fix manual coordinates for screen_capture_window_area

This commit is contained in:
AuroraWright
2025-10-17 02:41:12 +02:00
parent e051ef5eab
commit 68ba4c3e36
2 changed files with 2 additions and 1 deletions

View File

@@ -927,6 +927,7 @@ class ScreenshotThread(threading.Thread):
if len(screen_capture_window_area.split(',')) == 4:
x, y, x2, y2 = [int(c.strip()) for c in screen_capture_window_area.split(',')]
logger.info(f'Selected window coordinates: {x},{y},{x2},{y2}')
img = self.take_screenshot()
self.window_area_coordinates = (img.size, (x, y, x2, y2))
elif screen_capture_window_area == '':
self.launch_coordinate_picker(False, False)

View File

@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "owocr"
version = "1.18"
version = "1.18.1"
description = "Japanese OCR"
readme = "README.md"
requires-python = ">=3.11"