New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@innovatrics/dot-face-auto-capture

Package Overview
Dependencies
Maintainers
11
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@innovatrics/dot-face-auto-capture - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

37

index.d.ts

@@ -8,5 +8,6 @@ /// <reference types="react" />

export const FACE_CONFIDENCE_THRESHOLD = 0.12;
export const OPTIMAL_FACE_SIZE_PARAM = 0.42;
export const OPTIMAL_FACE_SIZE_LIMIT = 0.02;
export const FACE_CENTER_LIMIT = 0.07;
export const MIN_FACE_SIZE_RATIO = 0.35;
export const MAX_FACE_SIZE_RATIO = 0.44;
export const FACE_CENTERING_WIDE_SIDE = 0.21;
export const FACE_CENTERING_NARROW_SIDE = 0.07;
export const FACE_PLACEHOLDER_TO_SHORTER_SIDE_RATIO = 0.75;

@@ -115,5 +116,6 @@ export const FACE_DETECTION_TO_SHORTER_SIDE_RATIO = 0.85;

faceConfidence?: number;
optimalFaceSizeLimit?: number;
optimalFaceSizeParam?: number;
faceCenterLimit?: number;
minFaceSizeRatio?: number;
maxFaceSizeRatio?: number;
faceCenteringNarrowSide?: number;
faceCenteringWideSide?: number;
};

@@ -317,6 +319,7 @@ export type BaseCameraProps = {

declare module "face-auto-capture/src/utils/rectangles" {
import { Crop, DetectedFace, Resolution } from "common/types";
import { Crop, DetectedFace, FaceThresholds, Resolution } from "common/types";
export function getPlaceholderRectangle(camera: Resolution): Crop;
export function getDetectionRectangle(camera: Resolution): Crop;
export function detectionCoordinatesToImageCoordinates(camera: Resolution, detectedFace: DetectedFace): DetectedFace;
export function getCenteringRectangle(camera: Resolution, thresholds: Required<FaceThresholds>): Crop;
}

@@ -335,5 +338,5 @@ declare module "face-auto-capture/src/utils/faceDetector" {

declare module "common/utils/mathHelpers" {
import { Point } from "common/types";
import { Crop, Point } from "common/types";
export const calculateTwoPointsDistance: (point1: Point, point2: Point) => number;
export const isPointInCircle: (point: Point, circleCenter: Point, radius: number) => boolean;
export const isPointInRectangle: (point: Point, rectangle: Crop) => boolean;
export const getCornerAdjacentPoint: (cornerPoint: Point, headingPoint: Point, cornerSizeInPercent: number) => Point;

@@ -343,8 +346,7 @@ export const getCornerSizeInPercent: (cornerPoint: Point, headingPoint: Point, smallestEdge: number, cornerSizeRatio: number) => number;

declare module "face-auto-capture/src/utils/validators" {
import { DetectedFace, Resolution } from "common/types";
import FaceController from "face-auto-capture/src/utils/Controller";
export const faceNotDetectedValidator: (faceController: FaceController, detectedFace: DetectedFace) => boolean;
export const faceSmallValidator: (faceController: FaceController, detectedFace: DetectedFace, cameraResolution: Resolution) => boolean;
export const faceLargeValidator: (faceController: FaceController, detectedFace: DetectedFace, cameraResolution: Resolution) => boolean;
export const faceNotCenteredValidator: (faceController: FaceController, detectedFace: DetectedFace, cameraResolution: Resolution) => boolean;
import { DetectedFace, FaceThresholds, Resolution } from "common/types";
export const faceNotDetectedValidator: (thresholds: Required<FaceThresholds>, detectedFace: DetectedFace) => boolean;
export const faceSmallValidator: (thresholds: Required<FaceThresholds>, detectedFace: DetectedFace, cameraResolution: Resolution) => boolean;
export const faceLargeValidator: (thresholds: Required<FaceThresholds>, detectedFace: DetectedFace, cameraResolution: Resolution) => boolean;
export const faceNotCenteredValidator: (thresholds: Required<FaceThresholds>, detectedFace: DetectedFace, cameraResolution: Resolution) => boolean;
}

@@ -376,6 +378,3 @@ declare module "face-auto-capture/src/utils/Controller" {

bestImage: BestImageCandidate | null;
FACE_CONFIDENCE_THRESHOLD: number;
OPTIMAL_FACE_SIZE_LIMIT: number;
OPTIMAL_FACE_SIZE_PARAM: number;
FACE_CENTER_LIMIT: number;
thresholds: Required<FaceThresholds>;
constructor(customThresholds: Required<FaceThresholds>);

@@ -382,0 +381,0 @@ initFaceDetector(samWasmUrl?: string): Promise<void>;

{
"name": "@innovatrics/dot-face-auto-capture",
"version": "3.1.0",
"version": "3.1.1",
"main": "main.js",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc