/** * @souschef/ml-vision * * ML-powered product detection for React Native * * Features: * - Multi-barcode scanning (scan multiple barcodes at once) * - Receipt OCR (photograph receipts to extract items) * - Visual product recognition (recognize fridge/pantry contents) * - Video scanning (real-time product detection) * * @example * ```typescript * import { * MLVisionProvider, * useMultiBarcodeScanner, * useProductDetector, * useReceiptScanner, * } from '@souschef/ml-vision'; * * // Wrap your app with the provider * function App() { * return ( * * * * ); * } * * // Use hooks in your components * function ScannerScreen() { * const { scanPhoto, results } = useMultiBarcodeScanner(); * const { detectProducts, detections } = useProductDetector(); * * // ... * } * ``` * * @packageDocumentation */ export type { MLVisionConfig, BoundingBox, BaseDetectionResult, ModelInfo, ModelDownloadProgress, CacheEntry, CacheStats, ServerHealthResponse, ServerErrorResponse, BarcodeFormat, BarcodeData, BarcodeDetectionResult, UseMultiBarcodeScannerOptions, UseMultiBarcodeScannerReturn, BarcodeCacheEntry, ProductCategory, ProduceType, ProduceQuality, ProductData, ProductMatch, ProduceData, ProductDetectionResult, DetectionModel, UseProductDetectorOptions, UseProductDetectorReturn, TFLiteDetectionOutput, ClassLabelMap, TextLine, TextBlock, TextRecognitionResult, ReceiptItem, ReceiptMetadata, ReceiptScanResult, KnownStore, UseReceiptScannerOptions, UseReceiptScannerReturn, ReceiptLineType, ParsedReceiptLine, } from './types'; export { GROCERY_BARCODE_FORMATS } from './types/barcode'; export { MLVisionProvider, useMLVisionContext, useMLVisionReady, type MLVisionProviderProps, type MLVisionContextValue, CacheManager, createCacheManager, CACHE_TTL, type CachedBarcodeLookup, type CachedProductRecognition, ServerClient, createServerClient, ServerError, type ServerRequestOptions, type ImageUploadData, type DetectionRequestOptions, type OCRRequestOptions, } from './core'; export { useProductDetector } from './hooks/useProductDetector'; export { CLASS_LABELS, NUM_CLASSES, getClassInfo, getLabelsArray, CATEGORY_CLASSES, } from './hooks/classLabels'; export { useMultiBarcodeScanner } from './hooks/useMultiBarcodeScanner'; export { useReceiptScanner } from './hooks/useReceiptScanner'; export { useVideoScanner, type ScanMode, type VideoScanResult, type UseVideoScannerOptions, type UseVideoScannerReturn, } from './hooks/useVideoScanner'; export { DetectionOverlay, DetectionLoadingOverlay, type DetectionOverlayProps, } from './components'; export { createDetectionProcessor, frameDetectionToResult, getClassLabel, type FrameDetection, type DetectionProcessorOptions, } from './processors'; export { useTFLiteFrameProcessor, createTFLiteFrameProcessor, type TFLiteFrameDetection, type FrameProcessorResult, type UseTFLiteFrameProcessorOptions, } from './processors'; export { preprocessImage, isSkiaAvailable, isResizePluginAvailable, getFrameProcessorInstructions, } from './utils/imagePreprocessor'; export { processYoloOutput, scaleDetections, } from './utils/yoloProcessor'; export { COCO_CLASSES, CLASS_LABELS_COCO, NUM_CLASSES_COCO, FOOD_CLASS_INDICES, getCocoClassInfo, isFoodClass, } from './hooks/classLabelsCoco'; export { logger, setLogLevel, getLogLevel, type LogLevel, } from './utils/logger'; export declare const VERSION = "0.1.1"; //# sourceMappingURL=index.d.ts.map