react-face-detection-hook
Version:
React face detection hook using @mediapipe/face_detection, @mediapipe/camera_utils and react-webcam
30 lines • 1.68 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Webcam = exports.FaceDetection = exports.Camera = exports.useFaceDetection = void 0;
const useFaceDetection_1 = __importDefault(require("./hooks/useFaceDetection"));
exports.useFaceDetection = useFaceDetection_1.default;
const react_webcam_1 = __importDefault(require("react-webcam"));
exports.Webcam = react_webcam_1.default;
const camera_utils_1 = require("@mediapipe/camera_utils");
Object.defineProperty(exports, "Camera", { enumerable: true, get: function () { return camera_utils_1.Camera; } });
const face_detection_1 = require("@mediapipe/face_detection");
Object.defineProperty(exports, "FaceDetection", { enumerable: true, get: function () { return face_detection_1.FaceDetection; } });
__exportStar(require("./types"), exports);
//# sourceMappingURL=index.js.map