UNPKG

@aivue/image-caption

Version:

AI-powered image captioning for Vue.js applications using Hugging Face BLIP models

27 lines (26 loc) 1.72 kB
import './styles/image-caption.css'; import type { ImageCaptionConfig, ImageCaptionOptions, ImageCaptionResult, ImageCaptionError, ImageUploadEvent, CaptionHistory, ImageCaptionState, HuggingFaceResponse, ImageProcessingOptions, CaptionGenerationOptions, BatchCaptionRequest, BatchCaptionResult, ImageCaptionAnalytics, ModelInfo } from './types'; import { AVAILABLE_MODELS, DEFAULT_CONFIG, SUPPORTED_IMAGE_TYPES, MAX_IMAGE_SIZE, MAX_BATCH_SIZE } from './types'; import { useImageCaption } from './composables/useImageCaption'; import type { UseImageCaptionOptions, UseImageCaptionReturn } from './composables/useImageCaption'; export declare const AiImageCaption: any; export { useImageCaption }; export type { UseImageCaptionOptions, UseImageCaptionReturn }; export type { ImageCaptionConfig, ImageCaptionOptions, ImageCaptionResult, ImageCaptionError, ImageUploadEvent, CaptionHistory, ImageCaptionState, HuggingFaceResponse, ImageProcessingOptions, CaptionGenerationOptions, BatchCaptionRequest, BatchCaptionResult, ImageCaptionAnalytics, ModelInfo }; export { AVAILABLE_MODELS, DEFAULT_CONFIG, SUPPORTED_IMAGE_TYPES, MAX_IMAGE_SIZE, MAX_BATCH_SIZE }; export { createImageCaptionClient } from './utils/client'; export { validateImageFile, resizeImageFile, convertToBase64 } from './utils/image'; export interface ImageCaptionPluginOptions { apiKey?: string; defaultModel?: string; globalConfig?: Partial<ImageCaptionConfig>; } export declare const ImageCaptionPlugin: any; declare const _default: { AiImageCaption: any; useImageCaption: typeof useImageCaption; ImageCaptionPlugin: any; AVAILABLE_MODELS: ModelInfo[]; DEFAULT_CONFIG: ImageCaptionConfig; }; export default _default;