Skip to main content
Glama

FastMCP_RecSys

by attarmau
clothing_detector.py538 B
from io import BytesIO from PIL import Image from backend.app.aws.rekognition_wrapper import detect_garments from backend.app.utils.image_utils import crop_from_normalized_bbox def detect_and_crop_garments(image_bytes: bytes) -> list[Image.Image]: image = Image.open(BytesIO(image_bytes)).convert("RGB") bounding_boxes = detect_garments(image_bytes) cropped_images = [] for bbox in bounding_boxes: cropped = crop_from_normalized_bbox(image, bbox) cropped_images.append(cropped) return cropped_images

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/attarmau/StyleCLIP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server