UNPKG

react-native-guided-camera

Version:

A React Native component for agricultural camera guidance with sensor-based motion detection, orientation tracking, and real-time feedback.

45 lines 1.48 kB
export interface LightingMetrics { meanLuminance: number; contrastRatio: number; shadowDetail: number; highlightClipping: number; colorTemperature: number; quality: "excellent" | "good" | "fair" | "poor" | "very_poor"; isOptimal: boolean; recommendation: string; score: number; source: "realtime" | "mock" | "estimated"; } export interface RealtimeBrightnessConfig { updateInterval?: number; historySize?: number; smoothingFactor?: number; enableTimeBasedEstimation?: boolean; } export declare class RealtimeBrightnessDetector { private analysisInterval; private isActive; private config; private onLightingChange; private cameraRef; private brightnessHistory; private lastMetrics; constructor(onLightingChange: (metrics: LightingMetrics) => void, config?: Partial<RealtimeBrightnessConfig>); start(cameraRef?: any): Promise<void>; private startRealtimeAnalysis; private analyzeCurrentLighting; private getPreviewBrightness; private analyzeImageBrightness; private getTimeBasedEstimation; private estimateContrastFromLuminance; private handleBrightnessUpdate; private applySmoothing; private calculateLightingMetrics; private scoreLuminance; private scoreContrast; private estimateColorTemperature; stop(): void; getLastMetrics(): LightingMetrics; isRunning(): boolean; } //# sourceMappingURL=realtimeBrightnessDetectorV2.d.ts.map