process_images
Process images in a directory with operations like enhancing, OCR, resizing, and deduplication, returning results in JSON format for streamlined image management.
Instructions
Process images in a directory with various operations.
Args:
image_dir: Directory containing images to process
operations: List of operations (enhance, ocr, resize, deduplicate)
ocr_language: Language for OCR processing (default: eng)
Returns:
JSON string with processing results.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
image_dir | Yes | ||
ocr_language | No | eng | |
operations | No |
Input Schema (JSON Schema)
{
"properties": {
"image_dir": {
"title": "Image Dir",
"type": "string"
},
"ocr_language": {
"default": "eng",
"title": "Ocr Language",
"type": "string"
},
"operations": {
"default": [
"enhance"
],
"items": {
"type": "string"
},
"title": "Operations",
"type": "array"
}
},
"required": [
"image_dir"
],
"title": "process_imagesArguments",
"type": "object"
}