We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/PovedaAqui/auto-snap-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
processing.cpython-312.pyc•11.2 kB
�
�th�# � � � d Z ddlZddlmZmZmZ ddlmZ ddlm Z m
Z
mZ ddlZddl
Z
ddlZ ej e� Z G d� d� Zdefd �Zy)
z@
Image processing utilities for screenshot enhancement and OCR.
� N)�List�Optional�Dict)�Path)�Image�ImageEnhance�ImageFilterc �� � e Zd ZdZd� Zddedee defd�Zddededefd �Zdedefd
�Z de
e deee
e f fd�Z dded
e
de
dee def
d�Zddede
e deee
e f fd�Zy)�ImageProcessorz,Handles image processing and OCR operations.c � � h d�| _ y )N> �.bmp�.gif�.jpg�.png�.jpeg�.tiff)�supported_formats)�selfs �./home/luispoveda93/auto-snap-mcp/processing.py�__init__zImageProcessor.__init__ s
� �!S��� N�
image_path�output_path�returnc � � t j |� 5 }|j dk7 r|j d� }t j
|� }|j
d� }t j |� }|j
d� }|j t j d�� � }|�)t j j |� \ }}|� d|� �}|j |� t j! d|� �� |cddd� S # 1 sw Y yxY w# t"