react-native-guided-camera
Version:
A React Native component for agricultural camera guidance with sensor-based motion detection, orientation tracking, and real-time feedback.
47 lines (40 loc) • 1.41 kB
text/typescript
// Main component
import GuidedCameraView from "./components/GuidedCameraView";
export { GuidedCameraView };
export type { GuidedCameraViewProps, VideoData } from "./types";
// Utility classes
export { PitchDetector } from "./utils/pitchDetector";
export { YawDetector } from "./utils/yawDetector";
export { MotionDetector } from "./utils/motionDetectorV2";
export { FallbackSpeedDetector as SpeedDetector } from "./utils/fallbackSpeedDetector";
export { RealtimeBrightnessDetector } from "./utils/realtimeBrightnessDetectorV2";
// Types
export type { AngleMetrics, PitchDetectorConfig } from "./utils/pitchDetector";
export type { YawMetrics, YawDetectorConfig } from "./utils/yawDetector";
export type {
MotionMetrics,
MotionDetectorConfig,
} from "./utils/motionDetectorV2";
export type {
SpeedMetrics,
SpeedDetectorConfig,
} from "./utils/fallbackSpeedDetector";
export type {
LightingMetrics,
RealtimeBrightnessConfig,
} from "./utils/realtimeBrightnessDetectorV2";
// Utility functions
export { calculateAngleColor, getAngleMessage } from "./utils/pitchDetector";
export {
getYawColor,
getYawMessage,
shouldAllowRecordingYaw,
} from "./utils/yawDetector";
export {
getSpeedColor,
getSpeedMessage,
shouldAllowRecordingSpeed,
getSpeedIcon,
} from "./utils/fallbackSpeedDetector";
// Default export
export default GuidedCameraView;