@regulaforensics/face-sdk 6.5.64-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/ios/Podfile.lock +303 -319
- 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,22 +0,0 @@
|
|
|
1
|
-
export class PageableItemList {
|
|
2
|
-
items
|
|
3
|
-
page
|
|
4
|
-
totalPages
|
|
5
|
-
|
|
6
|
-
static fromJson(jsonObject, fromJSON) {
|
|
7
|
-
if (jsonObject == null) return null
|
|
8
|
-
var result = new PageableItemList()
|
|
9
|
-
|
|
10
|
-
if (jsonObject["items"] != null) {
|
|
11
|
-
result.items = []
|
|
12
|
-
for (var item of jsonObject["items"]) {
|
|
13
|
-
var temp = fromJSON(item)
|
|
14
|
-
if (temp != null) result.items.push(temp)
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
result.page = jsonObject["page"]
|
|
18
|
-
result.totalPages = jsonObject["totalPages"]
|
|
19
|
-
|
|
20
|
-
return result
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export class Person {
|
|
2
|
-
name
|
|
3
|
-
updatedAt
|
|
4
|
-
groups
|
|
5
|
-
id
|
|
6
|
-
metadata
|
|
7
|
-
createdAt
|
|
8
|
-
|
|
9
|
-
static fromJson(jsonObject) {
|
|
10
|
-
if (jsonObject == null) return null
|
|
11
|
-
var result = new Person()
|
|
12
|
-
|
|
13
|
-
result.name = jsonObject["name"]
|
|
14
|
-
result.updatedAt = new Date(jsonObject["updatedAt"])
|
|
15
|
-
result.groups = jsonObject["groups"]
|
|
16
|
-
result.id = jsonObject["id"]
|
|
17
|
-
result.metadata = jsonObject["metadata"]
|
|
18
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
19
|
-
|
|
20
|
-
return result
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { exec } from '../internal/bridge'
|
|
2
|
-
import { Person } from './person'
|
|
3
|
-
import { PersonImage } from './person_image'
|
|
4
|
-
import { PageableItemList } from './pageable_item_list'
|
|
5
|
-
import { PersonGroup } from './person_group'
|
|
6
|
-
import { SearchPerson } from './search_person'
|
|
7
|
-
|
|
8
|
-
export class PersonDatabase {
|
|
9
|
-
async createPerson(name, params) {
|
|
10
|
-
var response = await exec("createPerson", [name, params?.groupIds, params?.metadata])
|
|
11
|
-
return this._itemResponseFromJson(response, Person.fromJson)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
async updatePerson(person) {
|
|
15
|
-
var response = await exec("updatePerson", [person])
|
|
16
|
-
return this._successResponseFromJson(response)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
async deletePerson(personId) {
|
|
20
|
-
var response = await exec("deletePerson", [personId])
|
|
21
|
-
return this._successResponseFromJson(response)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
async getPerson(personId) {
|
|
25
|
-
var response = await exec("getPerson", [personId])
|
|
26
|
-
return this._itemResponseFromJson(response, Person.fromJson)
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
async addPersonImage(personId, image) {
|
|
30
|
-
var response = await exec("addPersonImage", [personId, image])
|
|
31
|
-
return this._itemResponseFromJson(response, PersonImage.fromJson)
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
async deletePersonImage(personId, imageId) {
|
|
35
|
-
var response = await exec("deletePersonImage", [personId, imageId])
|
|
36
|
-
return this._successResponseFromJson(response)
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
async getPersonImage(personId, imageId) {
|
|
40
|
-
var response = await exec("getPersonImage", [personId, imageId])
|
|
41
|
-
return this._itemResponseFromJson(response, PersonImage.fromJson)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
async getPersonImages(personId) {
|
|
45
|
-
var response = await exec("getPersonImages", [personId])
|
|
46
|
-
return this._listResponseFromJson(response, PersonImage.fromJson)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
async getPersonImagesForPage(personId, page, size) {
|
|
50
|
-
var response = await exec("getPersonImagesForPage", [personId, page, size])
|
|
51
|
-
return this._listResponseFromJson(response, PersonImage.fromJson)
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
async createGroup(name, params) {
|
|
55
|
-
var response = await exec("createGroup", [name, params?.metadata])
|
|
56
|
-
return this._itemResponseFromJson(response, PersonGroup.fromJson)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
async updateGroup(group) {
|
|
60
|
-
var response = await exec("updateGroup", [group])
|
|
61
|
-
return this._successResponseFromJson(response)
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
async editPersonsInGroup(groupId, request) {
|
|
65
|
-
var response = await exec("editPersonsInGroup", [groupId, request])
|
|
66
|
-
return this._successResponseFromJson(response)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
async deleteGroup(groupId) {
|
|
70
|
-
var response = await exec("deleteGroup", [groupId])
|
|
71
|
-
return this._successResponseFromJson(response)
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
async getGroup(groupId) {
|
|
75
|
-
var response = await exec("getGroup", [groupId])
|
|
76
|
-
return this._itemResponseFromJson(response, PersonGroup.fromJson)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
async getGroups() {
|
|
80
|
-
var response = await exec("getGroups", [])
|
|
81
|
-
return this._listResponseFromJson(response, PersonGroup.fromJson)
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
async getGroupsForPage(page, size) {
|
|
85
|
-
var response = await exec("getGroupsForPage", [page, size])
|
|
86
|
-
return this._listResponseFromJson(response, PersonGroup.fromJson)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
async getPersonGroups(personId) {
|
|
90
|
-
var response = await exec("getPersonGroups", [personId])
|
|
91
|
-
return this._listResponseFromJson(response, PersonGroup.fromJson)
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
async getPersonGroupsForPage(personId, page, size) {
|
|
95
|
-
var response = await exec("getPersonGroupsForPage", [personId, page, size])
|
|
96
|
-
return this._listResponseFromJson(response, PersonGroup.fromJson)
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
async getPersonsInGroup(groupId) {
|
|
100
|
-
var response = await exec("getPersonsInGroup", [groupId])
|
|
101
|
-
return this._listResponseFromJson(response, Person.fromJson)
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
async getPersonsInGroupForPage(groupId, page, size) {
|
|
105
|
-
var response = await exec("getPersonsInGroupForPage", [groupId, page, size])
|
|
106
|
-
return this._listResponseFromJson(response, Person.fromJson)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
async searchPerson(request) {
|
|
110
|
-
var response = await exec("searchPerson", [request])
|
|
111
|
-
|
|
112
|
-
var jsonObject = JSON.parse(response)
|
|
113
|
-
var data = null
|
|
114
|
-
if (jsonObject["data"] != null) {
|
|
115
|
-
data = []
|
|
116
|
-
for (var item of jsonObject["data"])
|
|
117
|
-
data.push(SearchPerson.fromJson(item))
|
|
118
|
-
}
|
|
119
|
-
var error = jsonObject["error"]
|
|
120
|
-
|
|
121
|
-
return [data, error]
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
_successResponseFromJson(jsonString) {
|
|
125
|
-
var jsonObject = JSON.parse(jsonString)
|
|
126
|
-
var data = jsonObject["data"]
|
|
127
|
-
var error = jsonObject["error"]
|
|
128
|
-
var success = data ?? false
|
|
129
|
-
return [success, error]
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
_itemResponseFromJson(jsonString, fromJSON) {
|
|
133
|
-
var jsonObject = JSON.parse(jsonString)
|
|
134
|
-
var data = fromJSON(jsonObject["data"])
|
|
135
|
-
var error = jsonObject["error"]
|
|
136
|
-
return [data, error]
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
_listResponseFromJson(jsonString, fromJSON) {
|
|
140
|
-
var jsonObject = JSON.parse(jsonString)
|
|
141
|
-
var data = PageableItemList.fromJson(jsonObject["data"], fromJSON)
|
|
142
|
-
var error = jsonObject["error"]
|
|
143
|
-
return [data, error]
|
|
144
|
-
}
|
|
145
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export class PersonGroup {
|
|
2
|
-
name
|
|
3
|
-
id
|
|
4
|
-
metadata
|
|
5
|
-
createdAt
|
|
6
|
-
|
|
7
|
-
static fromJson(jsonObject) {
|
|
8
|
-
if (jsonObject == null) return null
|
|
9
|
-
var result = new PersonGroup()
|
|
10
|
-
|
|
11
|
-
result.name = jsonObject["name"]
|
|
12
|
-
result.id = jsonObject["id"]
|
|
13
|
-
result.metadata = jsonObject["metadata"]
|
|
14
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
15
|
-
|
|
16
|
-
return result
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export class PersonImage {
|
|
2
|
-
path
|
|
3
|
-
url
|
|
4
|
-
contentType
|
|
5
|
-
id
|
|
6
|
-
metadata
|
|
7
|
-
createdAt
|
|
8
|
-
|
|
9
|
-
static fromJson(jsonObject) {
|
|
10
|
-
if (jsonObject == null) return null
|
|
11
|
-
var result = new PersonImage()
|
|
12
|
-
|
|
13
|
-
result.path = jsonObject["path"]
|
|
14
|
-
result.url = jsonObject["url"]
|
|
15
|
-
result.contentType = jsonObject["contentType"]
|
|
16
|
-
result.id = jsonObject["id"]
|
|
17
|
-
result.metadata = jsonObject["metadata"]
|
|
18
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
19
|
-
|
|
20
|
-
return result
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { SearchPersonImage } from './search_person_image'
|
|
2
|
-
import { SearchPersonDetection } from './search_person_detection'
|
|
3
|
-
|
|
4
|
-
export class SearchPerson {
|
|
5
|
-
images = []
|
|
6
|
-
detection
|
|
7
|
-
name
|
|
8
|
-
updatedAt
|
|
9
|
-
groups
|
|
10
|
-
id
|
|
11
|
-
metadata
|
|
12
|
-
createdAt
|
|
13
|
-
|
|
14
|
-
static fromJson(jsonObject) {
|
|
15
|
-
if (jsonObject == null) return null
|
|
16
|
-
var result = new SearchPerson()
|
|
17
|
-
|
|
18
|
-
if (jsonObject["images"] != null)
|
|
19
|
-
for (var item of jsonObject["images"])
|
|
20
|
-
result.images.push(SearchPersonImage.fromJson(item))
|
|
21
|
-
result.detection = SearchPersonDetection.fromJson(jsonObject["detection"])
|
|
22
|
-
result.name = jsonObject["name"]
|
|
23
|
-
result.updatedAt = new Date(jsonObject["updatedAt"])
|
|
24
|
-
result.groups = jsonObject["groups"]
|
|
25
|
-
result.id = jsonObject["id"]
|
|
26
|
-
result.metadata = jsonObject["metadata"]
|
|
27
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
28
|
-
|
|
29
|
-
return result
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Point } from "../image_params/point"
|
|
2
|
-
import { Rect } from "../image_params/rect"
|
|
3
|
-
|
|
4
|
-
export class SearchPersonDetection {
|
|
5
|
-
landmarks = []
|
|
6
|
-
rect
|
|
7
|
-
crop
|
|
8
|
-
rotationAngle
|
|
9
|
-
|
|
10
|
-
static fromJson(jsonObject) {
|
|
11
|
-
if (jsonObject == null) return null
|
|
12
|
-
var result = new SearchPersonDetection()
|
|
13
|
-
|
|
14
|
-
for (var item of jsonObject["landmarks"])
|
|
15
|
-
result.landmarks.push(Point.fromJson(item))
|
|
16
|
-
result.rect = Rect.fromJson(jsonObject["rect"])
|
|
17
|
-
result.crop = jsonObject["crop"]
|
|
18
|
-
result.rotationAngle = jsonObject["rotationAngle"]
|
|
19
|
-
|
|
20
|
-
return result
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export class SearchPersonImage {
|
|
2
|
-
similarity
|
|
3
|
-
distance
|
|
4
|
-
path
|
|
5
|
-
url
|
|
6
|
-
contentType
|
|
7
|
-
id
|
|
8
|
-
metadata
|
|
9
|
-
createdAt
|
|
10
|
-
|
|
11
|
-
static fromJson(jsonObject) {
|
|
12
|
-
if (jsonObject == null) return null
|
|
13
|
-
var result = new SearchPersonImage()
|
|
14
|
-
|
|
15
|
-
result.similarity = jsonObject["similarity"]
|
|
16
|
-
result.distance = jsonObject["distance"]
|
|
17
|
-
result.path = jsonObject["path"]
|
|
18
|
-
result.url = jsonObject["url"]
|
|
19
|
-
result.contentType = jsonObject["contentType"]
|
|
20
|
-
result.id = jsonObject["id"]
|
|
21
|
-
result.metadata = jsonObject["metadata"]
|
|
22
|
-
result.createdAt = new Date(jsonObject["createdAt"])
|
|
23
|
-
|
|
24
|
-
return result
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class SearchPersonRequest {
|
|
2
|
-
imageUpload
|
|
3
|
-
groupIdsForSearch
|
|
4
|
-
threshold
|
|
5
|
-
limit
|
|
6
|
-
detectAll
|
|
7
|
-
outputImageParams
|
|
8
|
-
|
|
9
|
-
constructor(image, params) {
|
|
10
|
-
this.imageUpload = image
|
|
11
|
-
this.groupIdsForSearch = params?.groupIdsForSearch
|
|
12
|
-
this.threshold = params?.threshold
|
|
13
|
-
this.limit = params?.limit
|
|
14
|
-
this.detectAll = params?.detectAll ?? false
|
|
15
|
-
this.outputImageParams = params?.outputImageParams
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { CustomizationColors } from './customization_colors'
|
|
2
|
-
import { CustomizationFonts } from './customization_fonts'
|
|
3
|
-
import { CustomizationImages } from './customization_images'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Params that relate to the camera view controller customization and etc.
|
|
7
|
-
*/
|
|
8
|
-
export class Customization {
|
|
9
|
-
get colors(): CustomizationColors
|
|
10
|
-
set colors(val: CustomizationColors)
|
|
11
|
-
|
|
12
|
-
get fonts(): CustomizationFonts
|
|
13
|
-
set fonts(val: CustomizationFonts)
|
|
14
|
-
|
|
15
|
-
get images(): CustomizationImages
|
|
16
|
-
set images(val: CustomizationImages)
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Immutable property. Use setter instead of editing.
|
|
20
|
-
*/
|
|
21
|
-
get uiCustomizationLayer(): Record<string, any> | null
|
|
22
|
-
set uiCustomizationLayer(val: Record<string, any> | null)
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Set onClick listener for buttons from {@link uiCustomizationLayer}.
|
|
26
|
-
*/
|
|
27
|
-
set onCustomButtonTapped(completion: CustomButtonTappedCompletion)
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Allows you to deserialize object.
|
|
31
|
-
*/
|
|
32
|
-
static fromJson(jsonObject: Record<string, any>): Customization
|
|
33
|
-
/**
|
|
34
|
-
* Allows you to serialize object.
|
|
35
|
-
*/
|
|
36
|
-
toJson(): Record<string, any>
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Callback for receiving signal, when a custom button,
|
|
42
|
-
* configured in {@link Customization.uiCustomizationLayer}, is pressed.
|
|
43
|
-
*
|
|
44
|
-
* @param tag button id, indication which button was pressed.
|
|
45
|
-
*/
|
|
46
|
-
export type CustomButtonTappedCompletion = (tag: number) => void
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
export class CustomizationColors {
|
|
2
|
-
set onboardingScreenStartButtonBackground(val: number)
|
|
3
|
-
set onboardingScreenStartButtonTitle(val: number)
|
|
4
|
-
set onboardingScreenBackground(val: number)
|
|
5
|
-
set onboardingScreenTitleLabelText(val: number)
|
|
6
|
-
set onboardingScreenSubtitleLabelText(val: number)
|
|
7
|
-
set onboardingScreenMessageLabelsText(val: number)
|
|
8
|
-
set cameraScreenStrokeNormal(val: number)
|
|
9
|
-
set cameraScreenStrokeActive(val: number)
|
|
10
|
-
set cameraScreenSectorTarget(val: number)
|
|
11
|
-
set cameraScreenSectorActive(val: number)
|
|
12
|
-
set cameraScreenFrontHintLabelBackground(val: number)
|
|
13
|
-
set cameraScreenFrontHintLabelText(val: number)
|
|
14
|
-
set cameraScreenBackHintLabelBackground(val: number)
|
|
15
|
-
set cameraScreenBackHintLabelText(val: number)
|
|
16
|
-
set cameraScreenLightToolbarTint(val: number)
|
|
17
|
-
set cameraScreenDarkToolbarTint(val: number)
|
|
18
|
-
set retryScreenBackground(val: number)
|
|
19
|
-
set retryScreenRetryButtonBackground(val: number)
|
|
20
|
-
set retryScreenRetryButtonTitle(val: number)
|
|
21
|
-
set retryScreenTitleLabelText(val: number)
|
|
22
|
-
set retryScreenSubtitleLabelText(val: number)
|
|
23
|
-
set retryScreenHintLabelsText(val: number)
|
|
24
|
-
set processingScreenBackground(val: number)
|
|
25
|
-
set processingScreenProgress(val: number)
|
|
26
|
-
set processingScreenTitleLabel(val: number)
|
|
27
|
-
set successScreenBackground(val: number)
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Allows you to deserialize object.
|
|
31
|
-
*/
|
|
32
|
-
static fromJson(jsonObject: Record<string, number>): CustomizationColors
|
|
33
|
-
/**
|
|
34
|
-
* Allows you to serialize object.
|
|
35
|
-
*/
|
|
36
|
-
toJson(): Record<string, number>
|
|
37
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Font} from './font'
|
|
2
|
-
|
|
3
|
-
export class CustomizationFonts {
|
|
4
|
-
set onboardingScreenStartButton(val: Font | null)
|
|
5
|
-
set onboardingScreenTitleLabel(val: Font | null)
|
|
6
|
-
set onboardingScreenSubtitleLabel(val: Font | null)
|
|
7
|
-
set onboardingScreenMessageLabels(val: Font | null)
|
|
8
|
-
set cameraScreenHintLabel(val: Font | null)
|
|
9
|
-
set retryScreenRetryButton(val: Font | null)
|
|
10
|
-
set retryScreenTitleLabel(val: Font | null)
|
|
11
|
-
set retryScreenSubtitleLabel(val: Font | null)
|
|
12
|
-
set retryScreenHintLabels(val: Font | null)
|
|
13
|
-
set processingScreenLabel(val: Font | null)
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Allows you to deserialize object.
|
|
17
|
-
*/
|
|
18
|
-
static fromJson(jsonObject: Record<string, any>): CustomizationFonts
|
|
19
|
-
/**
|
|
20
|
-
* Allows you to serialize object.
|
|
21
|
-
*/
|
|
22
|
-
toJson(): Record<string, any>
|
|
23
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export class CustomizationImages {
|
|
2
|
-
set onboardingScreenCloseButton(val: string)
|
|
3
|
-
set onboardingScreenIllumination(val: string)
|
|
4
|
-
set onboardingScreenAccessories(val: string)
|
|
5
|
-
set onboardingScreenCameraLevel(val: string)
|
|
6
|
-
set cameraScreenCloseButton(val: string)
|
|
7
|
-
set cameraScreenLightOnButton(val: string)
|
|
8
|
-
set cameraScreenLightOffButton(val: string)
|
|
9
|
-
set cameraScreenSwitchButton(val: string)
|
|
10
|
-
set retryScreenCloseButton(val: string)
|
|
11
|
-
set retryScreenHintEnvironment(val: string)
|
|
12
|
-
set retryScreenHintSubject(val: string)
|
|
13
|
-
set processingScreenCloseButton(val: string)
|
|
14
|
-
set successScreenImage(val: string)
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Allows you to deserialize object.
|
|
18
|
-
*/
|
|
19
|
-
static fromJson(jsonObject: Record<string, string>): CustomizationImages
|
|
20
|
-
/**
|
|
21
|
-
* Allows you to serialize object.
|
|
22
|
-
*/
|
|
23
|
-
toJson(): Record<string, string>
|
|
24
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
export class Font {
|
|
2
|
-
/**
|
|
3
|
-
* Font family.
|
|
4
|
-
*
|
|
5
|
-
* Beware that Android and iOS have diffrent font names,
|
|
6
|
-
* so you will have to use if condition.
|
|
7
|
-
*/
|
|
8
|
-
get name(): string
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Font size.
|
|
12
|
-
*/
|
|
13
|
-
get size(): number | null
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Font style.
|
|
17
|
-
*
|
|
18
|
-
* Android only.
|
|
19
|
-
*/
|
|
20
|
-
get style(): FontStyle | null
|
|
21
|
-
|
|
22
|
-
constructor(
|
|
23
|
-
name: string,
|
|
24
|
-
params?: {
|
|
25
|
-
size?: number,
|
|
26
|
-
style?: FontStyle
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Allows you to deserialize object.
|
|
32
|
-
*/
|
|
33
|
-
static fromJson(jsonObject?: any): Font | null
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export enum FontStyle {
|
|
37
|
-
NORMAL,
|
|
38
|
-
BOLD,
|
|
39
|
-
ITALIC,
|
|
40
|
-
BOLD_ITALIC,
|
|
41
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DetectFacesAttributeResult } from './detect_faces_attribute_result'
|
|
2
|
-
import { ImageQualityResult } from '../image_quality/image_quality_result'
|
|
3
|
-
import { Rect } from '../image_params/rect'
|
|
4
|
-
import { Point } from '../image_params/point'
|
|
5
|
-
|
|
6
|
-
export class DetectFaceResult {
|
|
7
|
-
get quality(): Array<ImageQualityResult> | null
|
|
8
|
-
get attributes(): Array<DetectFacesAttributeResult> | null
|
|
9
|
-
get crop(): string | null
|
|
10
|
-
get faceRect(): Rect | null
|
|
11
|
-
get originalRect(): Rect | null
|
|
12
|
-
get landmarks(): Array<Point> | null
|
|
13
|
-
get isQualityCompliant(): boolean
|
|
14
|
-
|
|
15
|
-
private constructor()
|
|
16
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DetectFacesAttribute } from './detect_faces_attribute'
|
|
2
|
-
import { ImageQualityRange } from '../image_quality/image_quality_range'
|
|
3
|
-
|
|
4
|
-
export class DetectFacesAttributeResult {
|
|
5
|
-
get attribute(): DetectFacesAttribute
|
|
6
|
-
get confidence(): number | null
|
|
7
|
-
get value(): string | null
|
|
8
|
-
get range(): ImageQualityRange | null
|
|
9
|
-
|
|
10
|
-
private constructor()
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class DetectFacesBackendException {
|
|
2
|
-
get code(): DetectFacesBackendErrorCode
|
|
3
|
-
get message(): string
|
|
4
|
-
|
|
5
|
-
private constructor()
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export enum DetectFacesBackendErrorCode {
|
|
9
|
-
FR_FACE_NOT_DETECTED,
|
|
10
|
-
FACER_NO_LICENSE,
|
|
11
|
-
FACER_IS_NOT_INITIALIZED,
|
|
12
|
-
FACER_COMMAND_IS_NOT_SUPPORTED,
|
|
13
|
-
FACER_COMMAND_PARAMS_READ_ERROR,
|
|
14
|
-
UNDEFINED
|
|
15
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { DetectFacesAttribute } from './detect_faces_attribute'
|
|
2
|
-
import { ImageQualityCharacteristic } from '../image_quality/image_quality_characteristic'
|
|
3
|
-
import { OutputImageParams } from '../image_params/output_image_params'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Custom configuration
|
|
7
|
-
*/
|
|
8
|
-
export class DetectFacesConfig {
|
|
9
|
-
/**
|
|
10
|
-
* Current array for the face image detection attributes.
|
|
11
|
-
*/
|
|
12
|
-
attributes?: Array<DetectFacesAttribute>
|
|
13
|
-
/**
|
|
14
|
-
* Current array for the face image quality assessment rules.
|
|
15
|
-
*/
|
|
16
|
-
customQuality?: Array<ImageQualityCharacteristic>
|
|
17
|
-
/**
|
|
18
|
-
* If set the uploaded image is processed according to the indicated settings.
|
|
19
|
-
*/
|
|
20
|
-
outputImageParams?: OutputImageParams
|
|
21
|
-
/**
|
|
22
|
-
* Whether to process only the central face on the image or all the faces.
|
|
23
|
-
* If set to `true`, the SDK detects and processes only one—the most central face in the image.
|
|
24
|
-
* If set to `false`, the SDK processes all faces in the image.
|
|
25
|
-
* Default is `false`.
|
|
26
|
-
*/
|
|
27
|
-
onlyCentralFace: boolean
|
|
28
|
-
|
|
29
|
-
constructor(
|
|
30
|
-
params?: {
|
|
31
|
-
attributes?: Array<DetectFacesAttribute>,
|
|
32
|
-
customQuality?: Array<ImageQualityCharacteristic>,
|
|
33
|
-
outputImageParams?: OutputImageParams,
|
|
34
|
-
onlyCentralFace?: boolean
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DetectFacesBackendException } from "./detect_faces_backend_exception"
|
|
2
|
-
|
|
3
|
-
export class DetectFacesException {
|
|
4
|
-
get code(): DetectFacesErrorCode
|
|
5
|
-
get message(): string
|
|
6
|
-
get underlyingError(): DetectFacesBackendException | null
|
|
7
|
-
|
|
8
|
-
private constructor()
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Error codes for the {@link DetectFacesResponse} errors.
|
|
13
|
-
*/
|
|
14
|
-
export enum DetectFacesErrorCode {
|
|
15
|
-
IMAGE_EMPTY,
|
|
16
|
-
FR_FACE_NOT_DETECTED,
|
|
17
|
-
FACER_NO_LICENSE,
|
|
18
|
-
FACER_IS_NOT_INITIALIZED,
|
|
19
|
-
FACER_COMMAND_IS_NOT_SUPPORTED,
|
|
20
|
-
FACER_COMMAND_PARAMS_READ_ERROR,
|
|
21
|
-
PROCESSING_FAILED,
|
|
22
|
-
REQUEST_FAILED,
|
|
23
|
-
API_CALL_FAILED
|
|
24
|
-
}
|