Table of Contents

Class ImageDeskewTool

Namespace
LMKit.Agents.Tools.BuiltIn.Document
Assembly
LM-Kit.NET.dll

Detect and correct skew (rotation) in scanned documents and images.

Straightens scanned documents and photos using Sobel edge detection and structure tensor analysis, then saves the corrected image.

public sealed class ImageDeskewTool : IBuiltInTool, ITool, IToolMetadata
Inheritance
ImageDeskewTool
Implements
Inherited Members

Examples

var tool = new ImageDeskewTool();
registry.Register(tool);

Properties

Description

Gets a concise description of what the tool does.

InputSchema

Gets the JSON Schema defining the expected input arguments.

Name

Gets the stable, unique identifier for this tool.

Methods

InvokeAsync(string, CancellationToken)

Executes the tool with the specified JSON arguments.

Share