Skip to content

Commit

Permalink
CognitiveServices Face (#21986)
Browse files Browse the repository at this point in the history
* Regenerate Face SDK.

* Code review feedback.

* Update changelog and make NonNullableNameAndNullableUserDataContract NOT public.
  • Loading branch information
tjprescott authored Dec 3, 2021
1 parent 40d60fc commit c9d7f11
Show file tree
Hide file tree
Showing 15 changed files with 259 additions and 72 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# Release History

## 0.5.0 (2020-03-12)
## 0.6.0 (2021-12-02)

**Features**

- Add support for Face Recognition Quality Score.

**Breaking changes**

- Various operations that previously accepted an optional name parameter
are now required.

## 0.5.0 (2021-03-12)

**Features**

Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def __init__(
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '1.0'
self._serialize = Serializer(client_models)
self._serialize.client_side_validation = False
self._deserialize = Deserializer(client_models)

self.face = FaceOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@
MaskType,
NoiseLevel,
OperationStatusType,
QualityForRecognition,
RecognitionModel,
SnapshotApplyMode,
SnapshotObjectType,
Expand Down Expand Up @@ -175,6 +176,7 @@
'ExposureLevel',
'NoiseLevel',
'MaskType',
'QualityForRecognition',
'FindSimilarMatchMode',
'TrainingStatusType',
'SnapshotApplyMode',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,13 @@ class MaskType(str, Enum):
uncertain = "uncertain"


class QualityForRecognition(str, Enum):

low = "Low"
medium = "Medium"
high = "High"


class FindSimilarMatchMode(str, Enum):

match_person = "matchPerson"
Expand Down Expand Up @@ -134,6 +141,7 @@ class FaceAttributeType(str, Enum):
exposure = "exposure"
noise = "noise"
mask = "mask"
quality_for_recognition = "qualityForRecognition"


class DetectionModel(str, Enum):
Expand Down
Loading

0 comments on commit c9d7f11

Please sign in to comment.