UNPKG

@vundl/react-native-uvc-camera

Version:
37 lines 1.04 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.UVCCamera = exports.FaceDetector = exports.Constants = void 0; const react_native_1 = require("react-native"); const { UVCCameraModule } = react_native_1.NativeModules; // Constants for face detection exports.Constants = { Mode: { FAST: 'fast', ACCURATE: 'accurate', }, Landmarks: { NONE: 'none', ALL: 'all', }, Classifications: { NONE: 'none', ALL: 'all', }, }; // FaceDetector class implementation class FaceDetector { static detectFacesAsync(uri, options = {}) { return UVCCameraModule.detectFaces(uri, options); } } exports.FaceDetector = FaceDetector; FaceDetector.Constants = exports.Constants; // Create UVCCamera component exports.UVCCamera = (0, react_native_1.requireNativeComponent)('UVCCamera'); // Default export exports.default = { FaceDetector, Constants: exports.Constants, UVCCamera: exports.UVCCamera, }; //# sourceMappingURL=index.js.map