@regulaforensics/face-sdk 6.5.63-beta → 6.5.67-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/RNFaceSDK.podspec +1 -1
- package/examples/capacitor/README.md +4 -4
- package/examples/capacitor/package.json +4 -4
- package/examples/cordova/README.md +4 -4
- package/examples/cordova/package.json +10 -5
- package/examples/ionic/README.md +4 -4
- package/examples/ionic/package.json +4 -4
- package/examples/ionic/src/app/home/home.page.ts +5 -56
- package/examples/react-native/README.md +4 -4
- package/examples/react-native/package.json +5 -4
- package/package.json +1 -2
- package/plugin.xml +1 -1
- package/www/capacitor/index.js +4 -179
- package/www/cordova.js +406 -3499
- package/www/react-native/index.js +4 -179
- package/www/types/index.d.ts +4 -140
- package/examples/capacitor/scripts/android.sh +0 -9
- package/examples/capacitor/scripts/ios.sh +0 -8
- package/examples/capacitor/scripts/setup.sh +0 -4
- package/examples/cordova/scripts/android.sh +0 -8
- package/examples/cordova/scripts/ios.sh +0 -8
- package/examples/cordova/scripts/setup.sh +0 -5
- package/examples/ionic/scripts/android.sh +0 -8
- package/examples/ionic/scripts/ios.sh +0 -8
- package/examples/ionic/scripts/setup.sh +0 -5
- package/examples/react-native/scripts/android.sh +0 -8
- package/examples/react-native/scripts/ios.sh +0 -8
- package/examples/react-native/scripts/setup.sh +0 -8
- package/www/capacitor/customization/customization.js +0 -66
- package/www/capacitor/customization/customization_colors.js +0 -233
- package/www/capacitor/customization/customization_fonts.js +0 -106
- package/www/capacitor/customization/customization_images.js +0 -129
- package/www/capacitor/customization/font.js +0 -29
- package/www/capacitor/detect_faces/detect_face_result.js +0 -38
- package/www/capacitor/detect_faces/detect_faces_attribute.js +0 -15
- package/www/capacitor/detect_faces/detect_faces_attribute_result.js +0 -20
- package/www/capacitor/detect_faces/detect_faces_backend_exception.js +0 -23
- package/www/capacitor/detect_faces/detect_faces_config.js +0 -14
- package/www/capacitor/detect_faces/detect_faces_exception.js +0 -30
- package/www/capacitor/detect_faces/detect_faces_request.js +0 -67
- package/www/capacitor/detect_faces/detect_faces_response.js +0 -24
- package/www/capacitor/detect_faces/detect_faces_scenario.js +0 -10
- package/www/capacitor/face_capture/face_capture_config.js +0 -28
- package/www/capacitor/face_capture/face_capture_exception.js +0 -25
- package/www/capacitor/face_capture/face_capture_image.js +0 -26
- package/www/capacitor/face_capture/face_capture_response.js +0 -17
- package/www/capacitor/image_params/output_image_crop.js +0 -21
- package/www/capacitor/image_params/output_image_params.js +0 -9
- package/www/capacitor/image_params/point.js +0 -14
- package/www/capacitor/image_params/rect.js +0 -18
- package/www/capacitor/image_params/size.js +0 -9
- package/www/capacitor/image_quality/image_quality_characteristic.js +0 -24
- package/www/capacitor/image_quality/image_quality_characteristic_name.js +0 -58
- package/www/capacitor/image_quality/image_quality_group.js +0 -332
- package/www/capacitor/image_quality/image_quality_range.js +0 -26
- package/www/capacitor/image_quality/image_quality_result.js +0 -40
- package/www/capacitor/init/face_sdk_version.js +0 -16
- package/www/capacitor/match_faces/compared_face.js +0 -21
- package/www/capacitor/match_faces/compared_faces_pair.js +0 -23
- package/www/capacitor/match_faces/compared_faces_split.js +0 -22
- package/www/capacitor/match_faces/match_faces_backend_exception.js +0 -14
- package/www/capacitor/match_faces/match_faces_config.js +0 -12
- package/www/capacitor/match_faces/match_faces_detection.js +0 -25
- package/www/capacitor/match_faces/match_faces_detection_face.js +0 -28
- package/www/capacitor/match_faces/match_faces_exception.js +0 -30
- package/www/capacitor/match_faces/match_faces_image.js +0 -25
- package/www/capacitor/match_faces/match_faces_request.js +0 -13
- package/www/capacitor/match_faces/match_faces_response.js +0 -28
- package/www/capacitor/person_database/edit_group_persons_request.js +0 -9
- package/www/capacitor/person_database/image_upload.js +0 -16
- package/www/capacitor/person_database/pageable_item_list.js +0 -22
- package/www/capacitor/person_database/person.js +0 -22
- package/www/capacitor/person_database/person_database.js +0 -145
- package/www/capacitor/person_database/person_group.js +0 -18
- package/www/capacitor/person_database/person_image.js +0 -22
- package/www/capacitor/person_database/search_person.js +0 -31
- package/www/capacitor/person_database/search_person_detection.js +0 -22
- package/www/capacitor/person_database/search_person_image.js +0 -26
- package/www/capacitor/person_database/search_person_request.js +0 -17
- package/www/react-native/customization/customization.js +0 -66
- package/www/react-native/customization/customization_colors.js +0 -233
- package/www/react-native/customization/customization_fonts.js +0 -106
- package/www/react-native/customization/customization_images.js +0 -129
- package/www/react-native/customization/font.js +0 -29
- package/www/react-native/detect_faces/detect_face_result.js +0 -38
- package/www/react-native/detect_faces/detect_faces_attribute.js +0 -15
- package/www/react-native/detect_faces/detect_faces_attribute_result.js +0 -20
- package/www/react-native/detect_faces/detect_faces_backend_exception.js +0 -23
- package/www/react-native/detect_faces/detect_faces_config.js +0 -14
- package/www/react-native/detect_faces/detect_faces_exception.js +0 -30
- package/www/react-native/detect_faces/detect_faces_request.js +0 -67
- package/www/react-native/detect_faces/detect_faces_response.js +0 -24
- package/www/react-native/detect_faces/detect_faces_scenario.js +0 -10
- package/www/react-native/face_capture/face_capture_config.js +0 -28
- package/www/react-native/face_capture/face_capture_exception.js +0 -25
- package/www/react-native/face_capture/face_capture_image.js +0 -26
- package/www/react-native/face_capture/face_capture_response.js +0 -17
- package/www/react-native/image_params/output_image_crop.js +0 -21
- package/www/react-native/image_params/output_image_params.js +0 -9
- package/www/react-native/image_params/point.js +0 -14
- package/www/react-native/image_params/rect.js +0 -18
- package/www/react-native/image_params/size.js +0 -9
- package/www/react-native/image_quality/image_quality_characteristic.js +0 -24
- package/www/react-native/image_quality/image_quality_characteristic_name.js +0 -58
- package/www/react-native/image_quality/image_quality_group.js +0 -332
- package/www/react-native/image_quality/image_quality_range.js +0 -26
- package/www/react-native/image_quality/image_quality_result.js +0 -40
- package/www/react-native/init/face_sdk_version.js +0 -16
- package/www/react-native/match_faces/compared_face.js +0 -21
- package/www/react-native/match_faces/compared_faces_pair.js +0 -23
- package/www/react-native/match_faces/compared_faces_split.js +0 -22
- package/www/react-native/match_faces/match_faces_backend_exception.js +0 -14
- package/www/react-native/match_faces/match_faces_config.js +0 -12
- package/www/react-native/match_faces/match_faces_detection.js +0 -25
- package/www/react-native/match_faces/match_faces_detection_face.js +0 -28
- package/www/react-native/match_faces/match_faces_exception.js +0 -30
- package/www/react-native/match_faces/match_faces_image.js +0 -25
- package/www/react-native/match_faces/match_faces_request.js +0 -13
- package/www/react-native/match_faces/match_faces_response.js +0 -28
- package/www/react-native/person_database/edit_group_persons_request.js +0 -9
- package/www/react-native/person_database/image_upload.js +0 -16
- package/www/react-native/person_database/pageable_item_list.js +0 -22
- package/www/react-native/person_database/person.js +0 -22
- package/www/react-native/person_database/person_database.js +0 -145
- package/www/react-native/person_database/person_group.js +0 -18
- package/www/react-native/person_database/person_image.js +0 -22
- package/www/react-native/person_database/search_person.js +0 -31
- package/www/react-native/person_database/search_person_detection.js +0 -22
- package/www/react-native/person_database/search_person_image.js +0 -26
- package/www/react-native/person_database/search_person_request.js +0 -17
- package/www/types/customization/customization.d.ts +0 -46
- package/www/types/customization/customization_colors.d.ts +0 -37
- package/www/types/customization/customization_fonts.d.ts +0 -23
- package/www/types/customization/customization_images.d.ts +0 -24
- package/www/types/customization/font.d.ts +0 -41
- package/www/types/detect_faces/detect_face_result.d.ts +0 -16
- package/www/types/detect_faces/detect_faces_attribute.d.ts +0 -15
- package/www/types/detect_faces/detect_faces_attribute_result.d.ts +0 -11
- package/www/types/detect_faces/detect_faces_backend_exception.d.ts +0 -15
- package/www/types/detect_faces/detect_faces_config.d.ts +0 -37
- package/www/types/detect_faces/detect_faces_exception.d.ts +0 -24
- package/www/types/detect_faces/detect_faces_request.d.ts +0 -80
- package/www/types/detect_faces/detect_faces_response.d.ts +0 -12
- package/www/types/detect_faces/detect_faces_scenario.d.ts +0 -10
- package/www/types/face_capture/face_capture_config.d.ts +0 -39
- package/www/types/face_capture/face_capture_exception.d.ts +0 -17
- package/www/types/face_capture/face_capture_image.d.ts +0 -39
- package/www/types/face_capture/face_capture_response.d.ts +0 -9
- package/www/types/image_params/output_image_crop.d.ts +0 -49
- package/www/types/image_params/output_image_params.d.ts +0 -28
- package/www/types/image_params/point.d.ts +0 -9
- package/www/types/image_params/rect.d.ts +0 -8
- package/www/types/image_params/size.d.ts +0 -6
- package/www/types/image_quality/image_quality_characteristic.d.ts +0 -7
- package/www/types/image_quality/image_quality_characteristic_name.d.ts +0 -61
- package/www/types/image_quality/image_quality_group.d.ts +0 -418
- package/www/types/image_quality/image_quality_range.d.ts +0 -8
- package/www/types/image_quality/image_quality_result.d.ts +0 -30
- package/www/types/init/face_sdk_version.d.ts +0 -16
- package/www/types/match_faces/compared_face.d.ts +0 -29
- package/www/types/match_faces/compared_faces_pair.d.ts +0 -36
- package/www/types/match_faces/compared_faces_split.d.ts +0 -8
- package/www/types/match_faces/match_faces_backend_exception.d.ts +0 -6
- package/www/types/match_faces/match_faces_config.d.ts +0 -14
- package/www/types/match_faces/match_faces_detection.d.ts +0 -30
- package/www/types/match_faces/match_faces_detection_face.d.ts +0 -43
- package/www/types/match_faces/match_faces_exception.d.ts +0 -21
- package/www/types/match_faces/match_faces_image.d.ts +0 -34
- package/www/types/match_faces/match_faces_request.d.ts +0 -34
- package/www/types/match_faces/match_faces_response.d.ts +0 -27
- package/www/types/person_database/edit_group_persons_request.d.ts +0 -8
- package/www/types/person_database/image_upload.d.ts +0 -20
- package/www/types/person_database/pageable_item_list.d.ts +0 -7
- package/www/types/person_database/person.d.ts +0 -33
- package/www/types/person_database/person_database.d.ts +0 -95
- package/www/types/person_database/person_group.d.ts +0 -22
- package/www/types/person_database/person_image.d.ts +0 -10
- package/www/types/person_database/search_person.d.ts +0 -31
- package/www/types/person_database/search_person_detection.d.ts +0 -11
- package/www/types/person_database/search_person_image.d.ts +0 -25
- package/www/types/person_database/search_person_request.d.ts +0 -39
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { DetectFacesConfig } from './detect_faces_config'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Detect Faces Request.
|
|
5
|
-
* Could be created by predefined scenarios (e.g: {@link DetectFacesRequest.qualityICAO}, {@link DetectFacesRequest.cropAllFaces} etc. )
|
|
6
|
-
* or by using custom {@link DetectFacesConfig}.
|
|
7
|
-
*/
|
|
8
|
-
export class DetectFacesRequest {
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Create {@link DetectFacesRequest} object.
|
|
12
|
-
*
|
|
13
|
-
* @param image - Image base64.
|
|
14
|
-
* @param config - Custom Request configuration to specify image, quality, attributes parameters.
|
|
15
|
-
* @param params.tag - Defines tag that can be used in detect faces processing. Defaults to `null`.
|
|
16
|
-
*/
|
|
17
|
-
constructor(
|
|
18
|
-
image: string,
|
|
19
|
-
config: DetectFacesConfig,
|
|
20
|
-
params?: {
|
|
21
|
-
tag?: string,
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Creates a request to check all the available quality characteristics.
|
|
27
|
-
*
|
|
28
|
-
* @param image - Image base64.
|
|
29
|
-
*/
|
|
30
|
-
static qualityFull(image: string): DetectFacesRequest
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Creates a request to check the quality characteristics based on the ICAO standard.
|
|
34
|
-
*
|
|
35
|
-
* @param image - Image base64.
|
|
36
|
-
*/
|
|
37
|
-
static qualityICAO(image: string): DetectFacesRequest
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Creates a request to check the quality characteristics based on the Schengen visa standard.
|
|
41
|
-
*
|
|
42
|
-
* @param image - Image base64.
|
|
43
|
-
*/
|
|
44
|
-
static qualityVisaSchengen(image: string): DetectFacesRequest
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Creates a request to check the quality characteristics based on the USA visa standard.
|
|
48
|
-
*
|
|
49
|
-
* @param image - Image base64.
|
|
50
|
-
*/
|
|
51
|
-
static qualityVisaUSA(image: string): DetectFacesRequest
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Creates a request for a cropped portrait of the person whose face is the most central.
|
|
55
|
-
*
|
|
56
|
-
* @param image - Image base64.
|
|
57
|
-
*/
|
|
58
|
-
static cropCentralFace(image: string): DetectFacesRequest
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* Creates a request for cropped portraits of all the people in the image.
|
|
62
|
-
*
|
|
63
|
-
* @param image - Image base64.
|
|
64
|
-
*/
|
|
65
|
-
static cropAllFaces(image: string): DetectFacesRequest
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Creates a request for a cropped portrait of the person whose face is the most central in the image in the original size.
|
|
69
|
-
*
|
|
70
|
-
* @param image - Image base64.
|
|
71
|
-
*/
|
|
72
|
-
static thumbnail(image: string): DetectFacesRequest
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Creates a request for all available attribute results.
|
|
76
|
-
*
|
|
77
|
-
* @param image - Image base64.
|
|
78
|
-
*/
|
|
79
|
-
static allAttributes(image: string): DetectFacesRequest
|
|
80
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DetectFaceResult } from './detect_face_result'
|
|
2
|
-
import { DetectFacesException } from './detect_faces_exception'
|
|
3
|
-
import { DetectFacesScenario } from './detect_faces_scenario'
|
|
4
|
-
|
|
5
|
-
export class DetectFacesResponse {
|
|
6
|
-
get detection(): DetectFaceResult | null
|
|
7
|
-
get allDetections(): Array<DetectFaceResult> | null
|
|
8
|
-
get scenario(): DetectFacesScenario | null
|
|
9
|
-
get error(): DetectFacesException | null
|
|
10
|
-
|
|
11
|
-
private constructor()
|
|
12
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { CameraPosition } from '../customization/camera_position'
|
|
2
|
-
import { ScreenOrientation } from '../customization/screen_orientation'
|
|
3
|
-
|
|
4
|
-
export class FaceCaptureConfig {
|
|
5
|
-
copyright: boolean
|
|
6
|
-
cameraSwitchEnabled: boolean
|
|
7
|
-
closeButtonEnabled: boolean
|
|
8
|
-
torchButtonEnabled: boolean
|
|
9
|
-
vibrateOnSteps: boolean
|
|
10
|
-
/**
|
|
11
|
-
* Android only.
|
|
12
|
-
*/
|
|
13
|
-
cameraPositionAndroid?: number
|
|
14
|
-
/**
|
|
15
|
-
* IOS only.
|
|
16
|
-
*/
|
|
17
|
-
cameraPositionIOS: CameraPosition
|
|
18
|
-
/**
|
|
19
|
-
* Android only.
|
|
20
|
-
*/
|
|
21
|
-
screenOrientation?: Array<ScreenOrientation>
|
|
22
|
-
timeout?: number
|
|
23
|
-
holdStillDuration?: number
|
|
24
|
-
|
|
25
|
-
constructor(
|
|
26
|
-
params?: {
|
|
27
|
-
copyright?: boolean
|
|
28
|
-
cameraSwitchEnabled?: boolean
|
|
29
|
-
closeButtonEnabled?: boolean
|
|
30
|
-
torchButtonEnabled?: boolean
|
|
31
|
-
vibrateOnSteps?: boolean
|
|
32
|
-
cameraPositionAndroid?: number
|
|
33
|
-
cameraPositionIOS?: CameraPosition
|
|
34
|
-
screenOrientation?: Array<ScreenOrientation>
|
|
35
|
-
timeout?: number
|
|
36
|
-
holdStillDuration?: number
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class FaceCaptureException {
|
|
2
|
-
get code(): FaceCaptureErrorCode
|
|
3
|
-
get message(): string
|
|
4
|
-
|
|
5
|
-
private constructor()
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export enum FaceCaptureErrorCode {
|
|
9
|
-
CANCEL,
|
|
10
|
-
TIMEOUT,
|
|
11
|
-
NOT_INITIALIZED,
|
|
12
|
-
SESSION_START_FAILED,
|
|
13
|
-
CAMERA_NOT_AVAILABLE,
|
|
14
|
-
CAMERA_NO_PERMISSION,
|
|
15
|
-
IN_PROGRESS_ALREADY,
|
|
16
|
-
CONTEXT_IS_NULL
|
|
17
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
export class FaceCaptureImage {
|
|
2
|
-
get image(): string
|
|
3
|
-
get imageType(): ImageType
|
|
4
|
-
get tag(): string | null
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The image type of {@link FaceCaptureImage} influences matching results and provides the information about the source of the image.
|
|
9
|
-
*/
|
|
10
|
-
export enum ImageType {
|
|
11
|
-
/**
|
|
12
|
-
* The image contains a printed portrait of a person.
|
|
13
|
-
*/
|
|
14
|
-
PRINTED,
|
|
15
|
-
/**
|
|
16
|
-
* The image contains a portrait of a person and is taken from the RFID chip.
|
|
17
|
-
*/
|
|
18
|
-
RFID,
|
|
19
|
-
/**
|
|
20
|
-
* The image is taken from the camera.
|
|
21
|
-
*/
|
|
22
|
-
LIVE,
|
|
23
|
-
/**
|
|
24
|
-
* The image contains a document with a portrait of a person.
|
|
25
|
-
*/
|
|
26
|
-
DOCUMENT_WITH_LIVE,
|
|
27
|
-
/**
|
|
28
|
-
* The image from an unknown source.
|
|
29
|
-
*/
|
|
30
|
-
EXTERNAL,
|
|
31
|
-
/**
|
|
32
|
-
* The image is a ghost portrait.
|
|
33
|
-
*/
|
|
34
|
-
GHOST_PORTRAIT,
|
|
35
|
-
/**
|
|
36
|
-
* The image from a barcode
|
|
37
|
-
*/
|
|
38
|
-
BARCODE
|
|
39
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FaceCaptureImage } from './face_capture_image'
|
|
2
|
-
import { FaceCaptureException } from './face_capture_exception'
|
|
3
|
-
|
|
4
|
-
export class FaceCaptureResponse {
|
|
5
|
-
get image(): FaceCaptureImage | null
|
|
6
|
-
get error(): FaceCaptureException | null
|
|
7
|
-
|
|
8
|
-
private constructor()
|
|
9
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Size } from './size'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Crop settings for {@link OutputImageParams}.
|
|
5
|
-
*/
|
|
6
|
-
export class OutputImageCrop {
|
|
7
|
-
/**
|
|
8
|
-
* The aspect ratio according to which alignment is performed.
|
|
9
|
-
*/
|
|
10
|
-
get type(): OutputImageCropAspectRatio
|
|
11
|
-
/**
|
|
12
|
-
* The resize value to process.
|
|
13
|
-
* If the value doesn't match AspectRatio `type` proportion or minimum size, an adjustment is applied.
|
|
14
|
-
* Use {@link OutputImageCropAspectRatio} to check you size matches AspectRatio `type` proportions and minimum size.
|
|
15
|
-
*/
|
|
16
|
-
get size(): Size | null
|
|
17
|
-
/**
|
|
18
|
-
* When an image is aligned by `type`, its original size may be insufficient, and in this case it needs to be supplemented, "padded".
|
|
19
|
-
* padColor sets the value for the color that will be used for such a supplement.
|
|
20
|
-
*/
|
|
21
|
-
get padColor(): number | null
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* If set, the coordinates of the rectangle with the face in the original image prepared for the face crop
|
|
25
|
-
* are returned in the {@link DetectFaceResult.originalRect} field.
|
|
26
|
-
* Default is `false`.
|
|
27
|
-
*/
|
|
28
|
-
get returnOriginalRect(): boolean
|
|
29
|
-
|
|
30
|
-
constructor(
|
|
31
|
-
type: OutputImageCropAspectRatio,
|
|
32
|
-
params?: {
|
|
33
|
-
size?: Size,
|
|
34
|
-
padColor?: number,
|
|
35
|
-
returnOriginalRect?: boolean,
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* The AspectRatio according to which alignment is performed
|
|
42
|
-
*/
|
|
43
|
-
export enum OutputImageCropAspectRatio {
|
|
44
|
-
RATIO_3X4,
|
|
45
|
-
RATIO_4X5,
|
|
46
|
-
RATIO_2X3,
|
|
47
|
-
RATIO_1X1,
|
|
48
|
-
RATIO_7X9
|
|
49
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { OutputImageCrop } from './output_image_crop'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Set of parameter for image processing.
|
|
5
|
-
*/
|
|
6
|
-
export class OutputImageParams {
|
|
7
|
-
/**
|
|
8
|
-
* If set, aligned and cropped portrait is returned in the crop field.
|
|
9
|
-
* Alignment is performed according to type.
|
|
10
|
-
* If a head on the original image is tilted, for the returned portrait it is aligned in a straight vertical line.
|
|
11
|
-
*
|
|
12
|
-
* If there are more than one face in the photo, all the faces will be detected and processed, and separate portraits for each face will be returned.
|
|
13
|
-
* So, if there were five people in the photo, you'll get five processed portraits.
|
|
14
|
-
*/
|
|
15
|
-
get crop(): OutputImageCrop | null
|
|
16
|
-
/**
|
|
17
|
-
* If set, the background color is replaced.
|
|
18
|
-
* The silhouette of a person is cut out and the background is filled with this color.
|
|
19
|
-
*/
|
|
20
|
-
get backgroundColor(): number | null
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
params?: {
|
|
24
|
-
crop?: OutputImageCrop,
|
|
25
|
-
backgroundColor?: number,
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Image Quality parameter to include in {@link DetectFacesConfig} as {@link DetectFacesConfig.customQuality}.
|
|
3
|
-
*/
|
|
4
|
-
export class ImageQualityCharacteristic {
|
|
5
|
-
withCustomRange(min: number, max: number): ImageQualityCharacteristic
|
|
6
|
-
withCustomValue(value: number): ImageQualityCharacteristic
|
|
7
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Image Quality Characteristic Name.
|
|
3
|
-
*/
|
|
4
|
-
export enum ImageQualityCharacteristicName {
|
|
5
|
-
IMAGE_WIDTH,
|
|
6
|
-
IMAGE_HEIGHT,
|
|
7
|
-
IMAGE_WIDTH_TO_HEIGHT,
|
|
8
|
-
IMAGE_CHANNELS_NUMBER,
|
|
9
|
-
ART_FACE,
|
|
10
|
-
PADDING_RATIO,
|
|
11
|
-
FACE_MID_POINT_HORIZONTAL_POSITION,
|
|
12
|
-
FACE_MID_POINT_VERTICAL_POSITION,
|
|
13
|
-
HEAD_WIDTH_RATIO,
|
|
14
|
-
HEAD_HEIGHT_RATIO,
|
|
15
|
-
EYES_DISTANCE,
|
|
16
|
-
YAW,
|
|
17
|
-
PITCH,
|
|
18
|
-
ROLL,
|
|
19
|
-
BLUR_LEVEL,
|
|
20
|
-
NOISE_LEVEL,
|
|
21
|
-
UNNATURAL_SKIN_TONE,
|
|
22
|
-
FACE_DYNAMIC_RANGE,
|
|
23
|
-
EYE_RIGHT_CLOSED,
|
|
24
|
-
EYE_LEFT_CLOSED,
|
|
25
|
-
EYE_RIGHT_OCCLUDED,
|
|
26
|
-
EYE_LEFT_OCCLUDED,
|
|
27
|
-
EYES_RED,
|
|
28
|
-
EYE_RIGHT_COVERED_WITH_HAIR,
|
|
29
|
-
EYE_LEFT_COVERED_WITH_HAIR,
|
|
30
|
-
OFF_GAZE,
|
|
31
|
-
TOO_DARK,
|
|
32
|
-
TOO_LIGHT,
|
|
33
|
-
FACE_GLARE,
|
|
34
|
-
SHADOWS_ON_FACE,
|
|
35
|
-
SHOULDERS_POSE,
|
|
36
|
-
EXPRESSION_LEVEL,
|
|
37
|
-
MOUTH_OPEN,
|
|
38
|
-
SMILE,
|
|
39
|
-
DARK_GLASSES,
|
|
40
|
-
REFLECTION_ON_GLASSES,
|
|
41
|
-
FRAMES_TOO_HEAVY,
|
|
42
|
-
FACE_OCCLUDED,
|
|
43
|
-
HEAD_COVERING,
|
|
44
|
-
FOREHEAD_COVERING,
|
|
45
|
-
STRONG_MAKEUP,
|
|
46
|
-
HEAD_PHONES,
|
|
47
|
-
MEDICAL_MASK,
|
|
48
|
-
BACKGROUND_UNIFORMITY,
|
|
49
|
-
SHADOWS_ON_BACKGROUND,
|
|
50
|
-
OTHER_FACES,
|
|
51
|
-
BACKGROUND_COLOR_MATCH,
|
|
52
|
-
UNKNOWN,
|
|
53
|
-
IMAGE_CHARACTERISTIC_ALL_RECOMMENDED,
|
|
54
|
-
HEAD_SIZE_AND_POSITION_ALL_RECOMMENDED,
|
|
55
|
-
FACE_IMAGE_QUALITY_ALL_RECOMMENDED,
|
|
56
|
-
EYES_CHARACTERISTICS_ALL_RECOMMENDED,
|
|
57
|
-
SHADOW_AND_LIGHTING_ALL_RECOMMENDED,
|
|
58
|
-
POSE_AND_EXPRESSION_ALL_RECOMMENDED,
|
|
59
|
-
HEAD_OCCLUSION_ALL_RECOMMENDED,
|
|
60
|
-
QUALITY_BACKGROUND_ALL_RECOMMENDED
|
|
61
|
-
}
|