Class ImageContentTextExtractionPlugin
- Assembly
- FoundationaLLM.DataPipelinePlugins.dll
Implements the Image Content Text Extraction Plugin.
public class ImageContentTextExtractionPlugin : PluginBase, IContentTextExtractionPlugin
- Inheritance
-
ImageContentTextExtractionPlugin
- Implements
- Inherited Members
- Extension Methods
Constructors
ImageContentTextExtractionPlugin(Dictionary<string, object>, IPluginPackageManager, IServiceProvider)
Implements the Image Content Text Extraction Plugin.
public ImageContentTextExtractionPlugin(Dictionary<string, object> pluginParameters, IPluginPackageManager packageManager, IServiceProvider serviceProvider)
Parameters
pluginParameters
Dictionary<string, object>The dictionary containing the plugin parameters.
packageManager
IPluginPackageManagerThe package manager for the plugin.
serviceProvider
IServiceProviderThe service provider of the dependency injection container.
Properties
Name
protected override string Name { get; }
Property Value
Methods
ExtractText(BinaryData)
Extracts text from the provided raw content.
public Task<PluginResult<string>> ExtractText(BinaryData rawContent)
Parameters
rawContent
BinaryDataThe binary content to extract text from.
Returns
- Task<PluginResult<string>>
A PluginResult<T> object with the extracted text.