Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,26 @@
Release History
===============

0.4.0 (2019-06-27)
++++++++++++++++++

**Features**

- Add "detection_model" to operations when possible. This is a breaking change if you were using positional arguments on some scenarios

**Breaking changes**

- Operation FaceListOperations.add_face_from_stream has a new signature
- Operation FaceListOperations.add_face_from_url has a new signature
- Operation FaceOperations.detect_with_stream has a new signature
- Operation FaceOperations.detect_with_url has a new signature
- Operation LargeFaceListOperations.add_face_from_stream has a new signature
- Operation LargeFaceListOperations.add_face_from_url has a new signature
- Operation LargePersonGroupPersonOperations.add_face_from_stream has a new signature
- Operation LargePersonGroupPersonOperations.add_face_from_url has a new signature
- Operation PersonGroupPersonOperations.add_face_from_stream has a new signature
- Operation PersonGroupPersonOperations.add_face_from_url has a new signature

0.3.0 (2019-03-28)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Microsoft Azure SDK for Python

This is the Microsoft Azure Cognitive Services Face Client Library.

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .face_client import FaceClient
from .version import VERSION
from ._configuration import FaceClientConfiguration
from ._face_client import FaceClient
__all__ = ['FaceClient', 'FaceClientConfiguration']

__all__ = ['FaceClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest import Configuration

from .version import VERSION


class FaceClientConfiguration(Configuration):
"""Configuration for FaceClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param endpoint: Supported Cognitive Services endpoints (protocol and
hostname, for example: https://westus.api.cognitive.microsoft.com).
:type endpoint: str
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
"""

def __init__(
self, endpoint, credentials):

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
base_url = '{Endpoint}/face/v1.0'

super(FaceClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-cognitiveservices-vision-face/{}'.format(VERSION))

self.endpoint = endpoint
self.credentials = credentials
Original file line number Diff line number Diff line change
Expand Up @@ -10,49 +10,20 @@
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Configuration, Serializer, Deserializer
from .version import VERSION
from .operations.face_operations import FaceOperations
from .operations.person_group_person_operations import PersonGroupPersonOperations
from .operations.person_group_operations import PersonGroupOperations
from .operations.face_list_operations import FaceListOperations
from .operations.large_person_group_person_operations import LargePersonGroupPersonOperations
from .operations.large_person_group_operations import LargePersonGroupOperations
from .operations.large_face_list_operations import LargeFaceListOperations
from .operations.snapshot_operations import SnapshotOperations
from msrest import Serializer, Deserializer

from ._configuration import FaceClientConfiguration
from .operations import FaceOperations
from .operations import PersonGroupPersonOperations
from .operations import PersonGroupOperations
from .operations import FaceListOperations
from .operations import LargePersonGroupPersonOperations
from .operations import LargePersonGroupOperations
from .operations import LargeFaceListOperations
from .operations import SnapshotOperations
from . import models


class FaceClientConfiguration(Configuration):
"""Configuration for FaceClient
Note that all parameters used to create this instance are saved as instance
attributes.

:param endpoint: Supported Cognitive Services endpoints (protocol and
hostname, for example: https://westus.api.cognitive.microsoft.com).
:type endpoint: str
:param credentials: Subscription credentials which uniquely identify
client subscription.
:type credentials: None
"""

def __init__(
self, endpoint, credentials):

if endpoint is None:
raise ValueError("Parameter 'endpoint' must not be None.")
if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
base_url = '{Endpoint}/face/v1.0'

super(FaceClientConfiguration, self).__init__(base_url)

self.add_user_agent('azure-cognitiveservices-vision-face/{}'.format(VERSION))

self.endpoint = endpoint
self.credentials = credentials


class FaceClient(SDKClient):
"""An API for face detection, verification, and identification.

Expand Down
Loading